]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix EAPD vmaster hook for AD1884 & co
authorTakashi Iwai <tiwai@suse.de>
Thu, 4 Jul 2013 10:54:22 +0000 (12:54 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 4 Jul 2013 10:54:22 +0000 (12:54 +0200)
commit2ed24e4325d24be4dde982cf4dfaa6fe17bec00e
treeec71467915de475a3d049989f3dc483b6073381d
parentc5f1f5e7d88e6d3d595860487099acdc2464fad2
ALSA: hda - Fix EAPD vmaster hook for AD1884 & co

ad1884_fixup_hp_eapd() tries to set the NID for controlling the
speaker EAPD from the pin configuration.  But the current code can't
work expectedly since it sets spec->eapd_nid before calling the
generic parser where the autocfg pins are set up.

This patch changes the function to set spec->eapd_nid after the
generic parser call while it sets vmaster hook unconditionally.  The
spec->eapd_nid check is moved in the hook function itself instead.

Cc: <stable@vger.kernel.org> [v3.9+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_analog.c