ALSA: hda - Fix EAPD GPIO control for Sigmatel codecs
authorTakashi Iwai <tiwai@suse.de>
Fri, 19 Jul 2013 05:58:02 +0000 (07:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2013 23:30:22 +0000 (16:30 -0700)
commit9c563a54c85bcd531cc671d9575d4dff64852124
tree5ab829f83f48be2376e7d3e904190e084f49bef4
parent5a0ecab6b7f55d7b2162e95c396ce778f2f2154c
ALSA: hda - Fix EAPD GPIO control for Sigmatel codecs

commit 1ea9a69d1a36a5b62bf281ba8bb304fcac656dad upstream.

The EAPD GPIO is dynamically turned on/off for some machines with
Sigmatel codecs, but this didn't work as expected, and it resulted in
spontaneous lost of speaker outputs per HP plugging or power-saving.

This patch fixes the bug by simply including spec->eapd_mask into
spec->gpio_mask and spec->gpio_data bits.

Reported-and-tested-by: Eric Shattow <lucent@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_sigmatel.c