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)
committerTakashi Iwai <tiwai@suse.de>
Fri, 19 Jul 2013 05:58:02 +0000 (07:58 +0200)
commit1ea9a69d1a36a5b62bf281ba8bb304fcac656dad
tree8449e0ca65b2de44c1ffb88d023bca09c986fb0b
parent256ca9c3ad5013ff8a8f165e5a82fab437628c8e
ALSA: hda - Fix EAPD GPIO control for Sigmatel codecs

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