ALSA: hda - Check keep_eapd_on before inv_eapd
authorTakashi Iwai <tiwai@suse.de>
Tue, 12 Nov 2013 10:36:00 +0000 (11:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Nov 2013 10:36:00 +0000 (11:36 +0100)
commit468ac413045af1e0e4d1272291bed6878f248a69
treeeab18048889c10fe971a8ead5ffcbaece17e9af6
parent5959a6bc1124211a359525d209005abc07b0197b
ALSA: hda - Check keep_eapd_on before inv_eapd

We don't change the EAPD bit in set_pin_eapd() if keep_eapd_on flag is
set by the codec driver and enable is false.  But, we also apply the
flipping of enable value according to inv_eapd flag in the same
function, and this confused the former check, handled as if it's
turned ON.  The inverted EAPD check must be applied after keep_eapd_on
check, instead.

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c