diff options
author | Matthew Ranostay <mranostay@embeddedalley.com> | 2008-02-21 01:49:31 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:13 -0400 |
commit | 4451089e2aafba87d7574e27c839895131a80293 (patch) | |
tree | 064667f10f260d4cbccdd630078c6307e7554aca /sound/pci | |
parent | 6876a5323f6169f9321354a398f7364b41ca82fa (diff) |
[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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 132d1e3eafa5..a31155d41405 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) | |||
2893 | /* power down inactive DACs */ | 2893 | /* power down inactive DACs */ |
2894 | hda_nid_t *dac; | 2894 | hda_nid_t *dac; |
2895 | for (dac = spec->dac_list; *dac; dac++) | 2895 | for (dac = spec->dac_list; *dac; dac++) |
2896 | if (!is_in_dac_nids(spec, *dac)) | 2896 | if (!is_in_dac_nids(spec, *dac) && |
2897 | spec->multiout.hp_nid != *dac) | ||
2897 | snd_hda_codec_write_cache(codec, *dac, 0, | 2898 | snd_hda_codec_write_cache(codec, *dac, 0, |
2898 | AC_VERB_SET_POWER_STATE, AC_PWRST_D3); | 2899 | AC_VERB_SET_POWER_STATE, AC_PWRST_D3); |
2899 | } | 2900 | } |