diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-04-05 07:27:45 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-04-05 07:33:32 +0200 |
commit | 21229613eff5b6241d27e2588d10588d5656d500 (patch) | |
tree | 8caab8a0c5f8c70c52f21d05fb811a7fdf85b0e9 /sound/pci/hda/hda_codec.h | |
parent | 1dc669fed61a4ec4270a89e5fb3535802cc45668 (diff) |
ALSA: hda - Introduce get_delay codec PCM ops
Add a new codec PCM ops, get_delay(), to obtain the codec/stream-
specific PCM delay count. When it's NULL, nothing changes.
This new feature was requested for CA0132, which has significant
delays in the path depending on the running DSP code.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index 23ca1722aff..c93f9021f45 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h @@ -757,6 +757,9 @@ struct hda_pcm_ops { struct snd_pcm_substream *substream); int (*cleanup)(struct hda_pcm_stream *info, struct hda_codec *codec, struct snd_pcm_substream *substream); + unsigned int (*get_delay)(struct hda_pcm_stream *info, + struct hda_codec *codec, + struct snd_pcm_substream *substream); }; /* PCM information for each substream */ |