From: Matthew Ranostay Date: Thu, 21 Feb 2008 06:49:31 +0000 (+0100) Subject: [ALSA] hda: fix STAC927x power management X-Git-Tag: v2.6.26-rc1~1087^2~199 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4451089e2aafba87d7574e27c839895131a80293;p=linux-2.6 [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 Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 132d1e3eaf..a31155d414 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); }