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)
committerTakashi Iwai <tiwai@suse.de>
Tue, 14 Jan 2014 09:42:29 +0000 (10:42 +0100)
commit493a52a9b6645f61954580c7d4bd52fa62110934
treeceda9a03afdc3de188a3ed5194fc056daf28e94f
parentdfc6e469b6d1ee5e8c71fa398b7b58fbb600dad8
ALSA: hda - automute via amp instead of pinctl on some AIO models

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>
Cc: stable@vger.kernel.org
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c