• Sami Loone's avatar
    ALSA: hda/realtek: ALC285 Thinkpad jack pin quirk is unreachable · 266fd994
    Sami Loone authored
    In 9bbb94e5 ("ALSA: hda/realtek: fix static noise on ALC285 Lenovo
    laptops") an existing Lenovo quirk was made more generic by removing a
    0x12 pin requirement from the entry. This made the second chance table
    Thinkpad jack entry unreachable as the pin configurations became
    identical.
    
    Revert the 0x12 pin requirement removal and move Thinkpad jack pin quirk
    back to the primary pin table as they can co-exist when more specific
    configurations come first.
    
    Add a more targeted pin quirk for Lenovo devices that have 0x12 as
    0x40000000.
    
    Tested on Yoga 6 (AMD) laptop.
    
    [ Corrected the commit ID -- tiwai ]
    
    Fixes: 9bbb94e5 ("ALSA: hda/realtek: fix static noise on ALC285 Lenovo laptops")
    Signed-off-by: default avatarSami Loone <sami@loone.fi>
    Cc: <stable@vger.kernel.org>
    Link: https://lore.kernel.org/r/YI0oefvTYn8URYDb@yogaSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    266fd994
patch_realtek.c 324 KB