Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp830413pxu; Mon, 23 Nov 2020 05:24:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLztG5ypVgI+6GerYD8W0MjZ3j5HTL2Yt/0ohqSVpTcCkOqVcOKe2TKpmok3FU2iPPbFLF X-Received: by 2002:a05:6402:1644:: with SMTP id s4mr29643652edx.221.1606137848625; Mon, 23 Nov 2020 05:24:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606137848; cv=none; d=google.com; s=arc-20160816; b=fIB/zucJpmbwlPCl3mISe7Ph+5imB/kbtUT2n5dt+vw+GYR8XqcJ9cngEpepoUph5C Z5yQwAgW3Z1RUQF5QGgsm88RkeDVv/5TbQSMucbKjLiM1KNxW+gDQ/W1yfqSQ339wKky LiupTc8PHcC0It9Gx/KeD0NRYuFzsQd8/5NAdLRjet5Qn7U3kkLA+eaxgGenjIs+c6n4 U65UPttaX03wora7hGSLtv7fiRB4vMqnr7nJMCxqXKjLS/QlZl/wzgFdy9aSxuQSRbaF GPVZ19PqhT0Ygz8ufmYh/1CxYJI3OL4RK6tIBpcqJongVAYsZLyzt3/lRH3XLhLlB+Pz EyzQ== 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=HZNkV/xWRQoTgPXbZVoVP8QDPpcD6377jeeXxr+Irvs=; b=ATQ0qSsBkpGQzMqGCfbxTuqBKnvOevrJbRlWrwr4wDsWxfWSrXKOz7tPmOJpBcBXD2 4GkZoigFx5twdYSJVlea++Bc2xvEAWJETegVQiAuW42YBx7/gh3NzKr0tLXVZWMVHlT5 1n5A6ouJhWYMXpTAchjRHd5NVNDo6AqaaIagBuNleEDrtQ/k1IsGbjo/DkCb8ltigM5/ u84L7Z8bcDrwEDQsvQAjQQNQat3sWHx0eRmQn60naA4gAmAuUUn1D7pdGE4OdwzdlG2D aVCsvcUY76DuPZAVoslERC0D0ljgsnF19xRgW2sa+KZTgwC+m3Zgi3YMxT4/U+a/YUKH dVGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G5bDNbUP; 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 c3si6106677ejb.695.2020.11.23.05.23.44; Mon, 23 Nov 2020 05:24:08 -0800 (PST) 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=G5bDNbUP; 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 S1732380AbgKWMj4 (ORCPT + 99 others); Mon, 23 Nov 2020 07:39:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:52706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732365AbgKWMjy (ORCPT ); Mon, 23 Nov 2020 07:39:54 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DB19520888; Mon, 23 Nov 2020 12:39:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606135193; bh=YblPOiWNlZKIFPZ31mCM0qXmc86Rfof1Fkeip12KcQY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G5bDNbUP3n9Vs+vc0wUneeD+uT1mPsMI85ar0vI0O7l2Py/tLwEW+3DVW0q64jyPK eQN/n2CFxLpJlaynaOrkTDjHcL5ajWX3SN+QBIgvdtXGK/S2IJISWc/C6r6y1DaJyu gCKA3a4859YQNZ1x+7zLCasS2odW8Sf2AZTt1/hY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kailang Yang , Takashi Iwai Subject: [PATCH 5.4 121/158] ALSA: hda/realtek - Add supported for Lenovo ThinkPad Headset Button Date: Mon, 23 Nov 2020 13:22:29 +0100 Message-Id: <20201123121825.772057976@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123121819.943135899@linuxfoundation.org> References: <20201123121819.943135899@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: Kailang Yang commit 446b8185f0c39ac3faadbcd8ac156c50f2fd4ffe upstream. Add supported for Lenovo ThinkPad Headset Button. Thinkpad P1 Gen 3 (0x22c1) Thinkpad X1 Extreme Gen 3 (0x22c2) Signed-off-by: Kailang Yang Cc: Link: https://lore.kernel.org/r/f39b11d00340408ca2ed2df9b4fc2a09@realtek.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6283,6 +6283,7 @@ enum { ALC274_FIXUP_HP_MIC, ALC274_FIXUP_HP_HEADSET_MIC, ALC256_FIXUP_ASUS_HPE, + ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK, }; static const struct hda_fixup alc269_fixups[] = { @@ -7687,6 +7688,12 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC294_FIXUP_ASUS_HEADSET_MIC }, + [ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc_fixup_headset_jack, + .chained = true, + .chain_id = ALC269_FIXUP_THINKPAD_ACPI + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7948,6 +7955,8 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x17aa, 0x225d, "Thinkpad T480", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), SND_PCI_QUIRK(0x17aa, 0x2292, "Thinkpad X1 Carbon 7th", ALC285_FIXUP_THINKPAD_HEADSET_JACK), SND_PCI_QUIRK(0x17aa, 0x22be, "Thinkpad X1 Carbon 8th", ALC285_FIXUP_THINKPAD_HEADSET_JACK), + SND_PCI_QUIRK(0x17aa, 0x22c1, "Thinkpad P1 Gen 3", ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK), + SND_PCI_QUIRK(0x17aa, 0x22c2, "Thinkpad X1 Extreme Gen 3", ALC285_FIXUP_THINKPAD_NO_BASS_SPK_HEADSET_JACK), SND_PCI_QUIRK(0x17aa, 0x30bb, "ThinkCentre AIO", ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY), SND_PCI_QUIRK(0x17aa, 0x30e2, "ThinkCentre AIO", ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY), SND_PCI_QUIRK(0x17aa, 0x310c, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),