aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_generic.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-01-17 15:57:10 +0100
committerTakashi Iwai <tiwai@suse.de>2013-01-17 15:57:10 +0100
commitac2e87366c18d49c6dc12e89ae4f4512f126eeb4 (patch)
treeed07a5404da71347cde1f14ff54933e44396eaca /sound/pci/hda/hda_generic.h
parentALSA: hda - Record all detected ADCs in hda_gen_spec (diff)
downloadlinux-dev-ac2e87366c18d49c6dc12e89ae4f4512f126eeb4.tar.xz
linux-dev-ac2e87366c18d49c6dc12e89ae4f4512f126eeb4.zip
ALSA: hda - Add PCM capture hook to hda_gen_spec
Not only PCM playback, a hook for PCM capture would be required for power controls in codec drivers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_generic.h')
-rw-r--r--sound/pci/hda/hda_generic.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_generic.h b/sound/pci/hda/hda_generic.h
index a0486b1b4da4..7b14e9ce7486 100644
--- a/sound/pci/hda/hda_generic.h
+++ b/sound/pci/hda/hda_generic.h
@@ -233,11 +233,15 @@ struct hda_gen_spec {
void (*automute_hook)(struct hda_codec *codec);
void (*cap_sync_hook)(struct hda_codec *codec);
- /* PCM playback hook */
+ /* PCM hooks */
void (*pcm_playback_hook)(struct hda_pcm_stream *hinfo,
struct hda_codec *codec,
struct snd_pcm_substream *substream,
int action);
+ void (*pcm_capture_hook)(struct hda_pcm_stream *hinfo,
+ struct hda_codec *codec,
+ struct snd_pcm_substream *substream,
+ int action);
/* automute / autoswitch hooks */
void (*hp_automute_hook)(struct hda_codec *codec,