Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4584883pxj; Wed, 12 May 2021 08:42:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw05VV1M4VP8psoqGzS8qn2nD2qgpcskvYZDp48skum8pPyqFCoATnFnwKMuL7/DUjy+Cf2 X-Received: by 2002:a17:906:d7a2:: with SMTP id pk2mr38616918ejb.551.1620834119813; Wed, 12 May 2021 08:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620834119; cv=none; d=google.com; s=arc-20160816; b=MA7ObgQUe6FEhTZpfUlJRVIxM6mtISmT4PhtCtEhwQWsDKsEBf0Cn+Tguiwp7pInIP 1MDZTIXdT87yCbcc3IKNIa0MH92xffK1pCw1LyMZ5o40nd4VKUoD2QCk5ASSowqxogbE eUdHQ2lm1zfPZYFTvFDnNczBdbbLq807z3Nix70+u/ZN63JMt3McAGjuTsrSHq3BGTUK HfpQw4v0Mm41HjriVikLZwloEMCgSRvZPCQ8yM1a9RsTMm7WZfrJw557J1AtDmD6sPTq du52Jl80HrJQZmky14sIzphrbaG0a3MsnBc64TCrSocdaUlJ3qLKm1ryBZDnEuJmG2sm FpCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SDhub+ANuBU4zxQ62x/7bcwBKX1rjXoc5xYY9S8KwXA=; b=is4CsjgeShl55IP8GihO61pPXVgO7jWirQDw1ap58IBEX/m+f0YZ5mE/WggjbnyCmx rqa2oSCp8T32RXiuEbMywPy3+SXypuaEyRLDOODfZcpXO+INE21Ger3vtFA0y4pdpRQj gaCUIk7VNxk84BGD1fS/QuAQgV8zcSrwdtn1eMiXfKEmyETUfc5q9epfNJEDvqxG2jx2 Fpf5qZQK/TgVvvMTIG/EoBQucsVW/S8qmjkI+Ls+sEIcLKPAJWAK1za3drVTwZrb3QCL mbnE747EcWVduvIEv9Myzo/uQYsuOhp8kRpLevu7/92S70xSaDcauYUHm7ZgWA8TisXp FNpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zT3IXZey; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ji21si212335ejc.740.2021.05.12.08.41.34; Wed, 12 May 2021 08:41:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zT3IXZey; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235405AbhELPfr (ORCPT + 99 others); Wed, 12 May 2021 11:35:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:50484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234226AbhELPQQ (ORCPT ); Wed, 12 May 2021 11:16:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D3D3161973; Wed, 12 May 2021 15:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620831952; bh=YSA7hg98ZF8IfWKfHDwI/Pt5T9A9a4gvHlQZXdHQIqw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zT3IXZeyZJF9+GxImux5rnEMr+D4wo4szov2Fvxk5MqSzgPM51xmOK7cG8J1Wt9PT m+qDYs6RGOYiJk0MLfnLNEcVr2R4je4bMzQjRJozFvumTtutqAJdUhwWpWr3yYDrDG aiJ/s+wJZM+Ee3doH+989aSKijabokdVSH8wjZb0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sami Loone , Takashi Iwai Subject: [PATCH 5.10 082/530] ALSA: hda/realtek: ALC285 Thinkpad jack pin quirk is unreachable Date: Wed, 12 May 2021 16:43:12 +0200 Message-Id: <20210512144822.472554273@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sami Loone commit 266fd994b2b0ab7ba3e5541868838ce30775964b upstream. In 9bbb94e57df1 ("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: 9bbb94e57df1 ("ALSA: hda/realtek: fix static noise on ALC285 Lenovo laptops") Signed-off-by: Sami Loone Cc: Link: https://lore.kernel.org/r/YI0oefvTYn8URYDb@yoga Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -8775,6 +8775,16 @@ static const struct snd_hda_pin_quirk al {0x19, 0x03a11020}, {0x21, 0x0321101f}), SND_HDA_PIN_QUIRK(0x10ec0285, 0x17aa, "Lenovo", ALC285_FIXUP_LENOVO_PC_BEEP_IN_NOISE, + {0x12, 0x90a60130}, + {0x14, 0x90170110}, + {0x19, 0x04a11040}, + {0x21, 0x04211020}), + SND_HDA_PIN_QUIRK(0x10ec0285, 0x17aa, "Lenovo", ALC285_FIXUP_LENOVO_PC_BEEP_IN_NOISE, + {0x14, 0x90170110}, + {0x19, 0x04a11040}, + {0x1d, 0x40600001}, + {0x21, 0x04211020}), + SND_HDA_PIN_QUIRK(0x10ec0285, 0x17aa, "Lenovo", ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK, {0x14, 0x90170110}, {0x19, 0x04a11040}, {0x21, 0x04211020}), @@ -8945,10 +8955,6 @@ static const struct snd_hda_pin_quirk al SND_HDA_PIN_QUIRK(0x10ec0274, 0x1028, "Dell", ALC274_FIXUP_DELL_AIO_LINEOUT_VERB, {0x19, 0x40000000}, {0x1a, 0x40000000}), - SND_HDA_PIN_QUIRK(0x10ec0285, 0x17aa, "Lenovo", ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK, - {0x14, 0x90170110}, - {0x19, 0x04a11040}, - {0x21, 0x04211020}), {} };