summaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorMatthew Ranostay <mranostay@embeddedalley.com>2008-02-21 07:49:31 +0100
committerTakashi Iwai <tiwai@suse.de>2008-04-24 12:00:13 +0200
commit4451089e2aafba87d7574e27c839895131a80293 (patch)
tree064667f10f260d4cbccdd630078c6307e7554aca /sound/pci
parent6876a5323f6169f9321354a398f7364b41ca82fa (diff)
downloadop-kernel-dev-4451089e2aafba87d7574e27c839895131a80293.zip
op-kernel-dev-4451089e2aafba87d7574e27c839895131a80293.tar.gz
[ALSA] hda: fix STAC927x power management
Fix issue on STAC927x codecs that first DAC was getting powered down even if was being used. Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.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, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 132d1e3..a31155d 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -2893,7 +2893,8 @@ static void stac92xx_power_down(struct hda_codec *codec)
/* power down inactive DACs */
hda_nid_t *dac;
for (dac = spec->dac_list; *dac; dac++)
- if (!is_in_dac_nids(spec, *dac))
+ if (!is_in_dac_nids(spec, *dac) &&
+ spec->multiout.hp_nid != *dac)
snd_hda_codec_write_cache(codec, *dac, 0,
AC_VERB_SET_POWER_STATE, AC_PWRST_D3);
}
OpenPOWER on IntegriCloud