ALSA: hda - automute via amp instead of pinctl on some AIO models
authorHui Wang <hui.wang@canonical.com>
Tue, 14 Jan 2014 06:07:36 +0000 (14:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Feb 2014 19:34:03 +0000 (11:34 -0800)
commit7d947f8cfb5c4e18c6772721b324cc97d4affa46
tree33d9b7554bc7a4d2e33b0f6af6e82fc3b4b79fc6
parent25cb36334e92312684f5cc18bfcf1eb96eb00485
ALSA: hda - automute via amp instead of pinctl on some AIO models

commit 493a52a9b6645f61954580c7d4bd52fa62110934 upstream.

On some AIO (All In One) models with the codec alc668
(Vendor ID: 0x10ec0668) on it, when we plug a headphone into the jack,
the system will switch the output to headphone and set the speaker to
automute as well as change the speaker Pin-ctls from 0x40 to 0x00,
this will bring loud noise to the headphone.

I tried to disable the corresponding EAPD, but it did not help to
eliminate the noise.

According to Takashi's suggestion, we use amp operation to replace the
pinctl modification for the automute, this really eliminate the noise.

BugLink: https://bugs.launchpad.net/bugs/1268468
Cc: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_realtek.c