]> git.hungrycats.org Git - linux/commit
ALSA: hda - Fix unconditional GPIO toggle via automute
authorTakashi Iwai <tiwai@suse.de>
Tue, 15 Mar 2016 15:44:55 +0000 (16:44 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 18 Apr 2016 12:50:58 +0000 (08:50 -0400)
commit44a3704dbaf34034426db30963d453d1796693fe
tree877b34421a668fc5b0a7c8da7f0639aae22d6271
parent33184f68f4b527a6582e8fc5e94a7a7b6ba9c588
ALSA: hda - Fix unconditional GPIO toggle via automute

[ Upstream commit 1f7c6658962fa1260c1658d681bd6bb0c746b99a ]

Cirrus HD-audio driver may adjust GPIO pins for EAPD dynamically
depending on the jack plug state.  This works fine for the auto-mute
mode where the speaker gets muted upon the HP jack plug.   OTOH, when
the auto-mute mode is off, this turns off the EAPD unexpectedly
depending on the jack state, which results in the silent speaker
output.

This patch fixes the silent speaker output issue by setting GPIO bits
constantly when the auto-mute mode is off.

Reported-and-tested-by: moosotc@gmail.com
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/pci/hda/patch_cirrus.c