ALSA: hda/realtek: fix static noise on ALC285 Lenovo laptops
authorSami Loone <sami@loone.fi>
Sun, 25 Apr 2021 20:37:12 +0000 (22:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 May 2021 12:47:33 +0000 (14:47 +0200)
commita9d0f7c147899b6e590bb8cb6ab3f54be282d5f8
treef210dbf6f9b6fb564cd8fa47833eca3c463c9fad
parent3c8a599bc9518a2079b63db91f04f762516c3702
ALSA: hda/realtek: fix static noise on ALC285 Lenovo laptops

commit 9bbb94e57df135ef61bef075d9c99b8d9e89e246 upstream.

Remove a duplicate vendor+subvendor pin fixup entry as one is masking
the other and making it unreachable. Consider the more specific newcomer
as a second chance instead.

The generic entry is made less strict to also match for laptops with
slightly different 0x12 pin configuration. Tested on Lenovo Yoga 6 (AMD)
where 0x12 is 0x40000000.

Fixes: 607184cb1635 ("ALSA: hda/realtek - Add supported for more Lenovo ALC285 Headset Button")
Signed-off-by: Sami Loone <sami@loone.fi>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/YIXS+GT/dGI/LtK6@yoga
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_realtek.c