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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2013 21:07:23 +0000 (14:07 -0700)
commitc38217e1b806155493c9324345f0f1e6561e55db
treead57e6ad603ed13b4d77e20abbce84141e953cc0
parent79d295ce5b9c322ebb40b2d7fdb9da4eee83f893
ALSA: hda - Fix EAPD vmaster hook for AD1884 & co

commit 8f0b3b7e222383a21f7d58bd97d5552b3a5dbced upstream.

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.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_analog.c