summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_generic.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-01-16 18:18:00 +0100
committerTakashi Iwai <tiwai@suse.de>2013-01-16 18:19:50 +0100
commit47b9ddb83b719d35ca0a723410734951b04cf403 (patch)
tree46baba6e1999a3da0833f06d06474e1d5498e37e /sound/pci/hda/hda_generic.c
parentALSA: hda - Properly call automute/switch hooks at init (diff)
downloadlinux-47b9ddb83b719d35ca0a723410734951b04cf403.tar.xz
linux-47b9ddb83b719d35ca0a723410734951b04cf403.zip
ALSA: hda - Record the current speaker / LO mute status in hda_gen_spec
... to be referred by the codec driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_generic.c')
-rw-r--r--sound/pci/hda/hda_generic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c
index 0d6c4f7c1c85..186a5546fcb8 100644
--- a/sound/pci/hda/hda_generic.c
+++ b/sound/pci/hda/hda_generic.c
@@ -3047,6 +3047,7 @@ void snd_hda_gen_update_outputs(struct hda_codec *codec)
else
on = spec->hp_jack_present | spec->line_jack_present;
on |= spec->master_mute;
+ spec->speaker_muted = on;
do_automute(codec, ARRAY_SIZE(spec->autocfg.speaker_pins),
spec->autocfg.speaker_pins, on);
@@ -3060,6 +3061,7 @@ void snd_hda_gen_update_outputs(struct hda_codec *codec)
else
on = spec->hp_jack_present;
on |= spec->master_mute;
+ spec->line_out_muted = on;
do_automute(codec, ARRAY_SIZE(spec->autocfg.line_out_pins),
spec->autocfg.line_out_pins, on);
}