Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2491178pxj; Mon, 10 May 2021 04:23:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyx2jAKVfEXUeQ/zOojFL9d1KHoIR+Z1+KGiht1+IW70mWvbQnSjW+8qNcwRhlfiagG1b33 X-Received: by 2002:a05:6402:19b9:: with SMTP id o25mr24136337edz.192.1620645785736; Mon, 10 May 2021 04:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645785; cv=none; d=google.com; s=arc-20160816; b=NTkuSIdq5rDDwxwGBEHl0DhqZ9kM1Q1W2rpAYDlZEusYZpylG/Tv1rMkaSyLGXB8ia atuzJMOVtB4aP/0HK50Umku+USpd0KIlm7TkZHk+cPeezUNd8EjkqUgb6se9i6AmRxjq /LCC0jAJrNFVtvnQE6SqHxySRXhU5pPcWaQYOW+o9pnjdqPz1zgoWwwAuo2Gi0dFWLUS 0XoajElE1Sc6UfABuii9i2vOXo9Ami6KSL9hd8+WyqaejwRjvnQs43lQXaqS+zBKPmkd eU7FjI3mU0lP11LuMTpfbEHrH8iSHJUeCsm3kBFrRezTTCJKOD70gFEeiIo0vQ7e3xN6 s/mw== 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=u0PObSgyL9eV5qSXvChB286cAe3sPcwOcO+JymMP/ZU=; b=p07olSRxHB6yOBD9dBLBh88ETf8oOFzHuIlx4XfPHSXliYnXET2jV909a3IT0yKiYy erwaXEfQ9Nud7L39TI2nV6FMN0w+G009LVBN/0UY08KqY166B5swTb5Jd2DTpxC56XCh fLzPQQQaZLJgurl2N1F9kJYq9lADlp629hdOacpid3x2ZNUvnHfV8+AuEg51YMFaKUW4 OydGUxfdcUXXNdeYTAAw4aVxeQidCBRS9UOZJhfowMfA7FAvKQZJtAIhd2msM0C0rIQ8 2LZHExwh3mfaKo7IHZvoFm6C5iRhYB7ALFYBpr6dvlVC5HPj+szZCjGvqCo5UXDaoKzK UVhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dnJTHkMl; 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 de17si1551966ejc.336.2021.05.10.04.22.42; Mon, 10 May 2021 04:23:05 -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=dnJTHkMl; 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 S237547AbhEJLP3 (ORCPT + 99 others); Mon, 10 May 2021 07:15:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:41454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233733AbhEJKud (ORCPT ); Mon, 10 May 2021 06:50:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F01961874; Mon, 10 May 2021 10:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643200; bh=dRcBh40usbpUAMrJQwi6LYe34sL2xU+NSNEIES2cWn4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dnJTHkMlV1QWM5FQpnipRK6XEREogw5aYSFZEj3YIaO6hw7SDpb8e+o30HJQA/wjd 2Ez0utV5utx5i8L3Px44B0RyEveJ5UaVYxMKkQ7TuIP38MoDPUygCChuOtbWsKVZzE 4Zfy1+wnbpz5G1q5x7HNFQgz1sYE6Xpu77UCH5yM= 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 218/299] ALSA: hda/realtek: fix static noise on ALC285 Lenovo laptops Date: Mon, 10 May 2021 12:20:15 +0200 Message-Id: <20210510102012.140455715@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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 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 Cc: Link: https://lore.kernel.org/r/YIXS+GT/dGI/LtK6@yoga Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -8774,12 +8774,7 @@ static const struct snd_hda_pin_quirk al {0x12, 0x90a60130}, {0x19, 0x03a11020}, {0x21, 0x0321101f}), - SND_HDA_PIN_QUIRK(0x10ec0285, 0x17aa, "Lenovo", ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK, - {0x14, 0x90170110}, - {0x19, 0x04a11040}, - {0x21, 0x04211020}), SND_HDA_PIN_QUIRK(0x10ec0285, 0x17aa, "Lenovo", ALC285_FIXUP_LENOVO_PC_BEEP_IN_NOISE, - {0x12, 0x90a60130}, {0x14, 0x90170110}, {0x19, 0x04a11040}, {0x21, 0x04211020}), @@ -8950,6 +8945,10 @@ 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}), {} };