aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorCharles <charles@Test-PC.(none)>2010-10-18 04:22:00 -0400
committerTakashi Iwai <tiwai@suse.de>2010-10-19 05:14:44 -0400
commit1cc9e8f4c45999e6069f41521d9d391eeeccc3b3 (patch)
tree6dba3d6be7b205c7ab0ad6b764e1976ad95cf8d9 /sound/pci
parentc08d91695b2a3349254a62b60f03f7971bd90fa0 (diff)
ALSA: hda - Fix codec muted after rebooting from Windows
Windows may leave pin power-down registers set after reboot, and this resulted in muted output on Linux. Reset these registers at initialization properly. Signed-off-by: Charles Chin <Charles.Chin@idt.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/patch_sigmatel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 1a563a2fbbec..7d70f8ca3742 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -5334,6 +5334,9 @@ static int patch_stac92hd83xxx(struct hda_codec *codec)
5334 if (spec == NULL) 5334 if (spec == NULL)
5335 return -ENOMEM; 5335 return -ENOMEM;
5336 5336
5337 /* reset pin power-down; Windows may leave these bits after reboot */
5338 snd_hda_codec_write_cache(codec, codec->afg, 0, 0x7EC, 0);
5339 snd_hda_codec_write_cache(codec, codec->afg, 0, 0x7ED, 0);
5337 codec->no_trigger_sense = 1; 5340 codec->no_trigger_sense = 1;
5338 codec->spec = spec; 5341 codec->spec = spec;
5339 spec->linear_tone_beep = 1; 5342 spec->linear_tone_beep = 1;