summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_generic.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-01-14 12:13:06 +0100
committerTakashi Iwai <tiwai@suse.de>2013-01-14 12:13:06 +0100
commitae177c3fd0667df21b60bc8e031607de257e58e4 (patch)
tree8ad4b7163899a2f317b7647b3060af6de1d9790d /sound/pci/hda/hda_generic.h
parentALSA: hda - Use generic parser for CA0110 codec (diff)
downloadlinux-ae177c3fd0667df21b60bc8e031607de257e58e4.tar.xz
linux-ae177c3fd0667df21b60bc8e031607de257e58e4.zip
ALSA: hda - Add capture_switch_hook to generic parser
Add a hook for the capture mixer switch. This will be used by IDT codecs for controlling the mic-mute LED. 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_generic.h b/sound/pci/hda/hda_generic.h
index bfa2d973268b..1ceaacd1b775 100644
--- a/sound/pci/hda/hda_generic.h
+++ b/sound/pci/hda/hda_generic.h
@@ -227,6 +227,9 @@ struct hda_gen_spec {
struct hda_jack_tbl *tbl);
void (*mic_autoswitch_hook)(struct hda_codec *codec,
struct hda_jack_tbl *tbl);
+
+ /* capture switch hook (for mic-mute LED) */
+ void (*capture_switch_hook)(struct hda_codec *codec, bool enable);
};
int snd_hda_gen_spec_init(struct hda_gen_spec *spec);