ALSA: hda/realtek - fix the pop noise on headphone for lenovo laptops
authorHui Wang <hui.wang@canonical.com>
Mon, 26 Nov 2018 06:17:16 +0000 (14:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 18:32:09 +0000 (19:32 +0100)
commitdcd51305cd41e77bf775992e6d6cee52f83426b7
treec7b8926235c6bbd2c7e24fa5da0fd5c4cdb52303
parent524841156bbe27435c95bc1090a8517008899229
ALSA: hda/realtek - fix the pop noise on headphone for lenovo laptops

commit c4cfcf6f4297c9256b53790bacbbbd6901fef468 upstream.

We have several Lenovo laptops with the codec alc285, when playing
sound via headphone, we can hear click/pop noise in the headphone,
if we let the headphone share the DAC of NID 0x2 with the speaker,
the noise disappears.

The Lenovo laptops here include P52, P72, X1 yoda2 and X1 carbon.

I have tried to set preferred_dacs and override_conn, but neither of
them worked. Thanks for Kailang, he told me to invalidate the NID 0x3
through override_wcaps.

BugLink: https://bugs.launchpad.net/bugs/1805079
Cc: <stable@vger.kernel.org>
Signed-off-by: Kailang Yang <kailang@realtek.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