Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2600273rdb; Mon, 4 Dec 2023 02:05:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhPdM9SHkpVBS3b1QtZTPo0CEqlK0ubEHtEbis77Anhq+/XFMoS7naQpIndNDGUZs0+zMZ X-Received: by 2002:a05:6a20:4413:b0:18b:fe45:90cb with SMTP id ce19-20020a056a20441300b0018bfe4590cbmr1703950pzb.54.1701684304050; Mon, 04 Dec 2023 02:05:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701684304; cv=none; d=google.com; s=arc-20160816; b=VPqN/R24gALc5POMVZrn5jZOm5pyUVn0MFJQkVkloUFd4aa+NDcaD658Y460JxCESR 224Ax6BrMLl880NBast5HF9h3VySLoJgYql5AvjB8E9jZQD97bRz8Q89NvzY7nXXYarB d9oHfW5bhUIknfdj/8aIR3DaeEIBAsJf3f/EPkWDm1Q8aU9CZAVRNN6S0BF4sZF01Gki 49eGaI355IlnpOiCDNy0lnbke9EHKC8gRPMSBoFoRP8vkjsz96kUYTVDaZj8TFP9Efd4 1imXZnQHINTS0cPDAfVcKe90CAUaehiwRtS+NWKwqXQ4TiEPU8EFathNWEkvYuMJWZUo /xtw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=gRcgEI7RGIHJ0Yu30p47NQQFOUT4LXqjIPSeJERS6Us=; fh=eOXguolkY3+BbJAQgfqJ880llkCudFTWfcdWow1c6RA=; b=lpy1u4g67PF9ZRYBDque3LuK0CC5LpfGEDLQfn31JIMSiAM3jqU5SxLF7uim3BMN1K LFgY3bsHKWpPFhN2AJP63hLF1nnyxUU++OQrAjPX4a6vO2zkPqTvp9QLtACO+QIqD16c i35mT6bEL5/q10UzExjOvV3L+/SBWS1RzU9h82IDO+3ck4ZuiUO5ZH2nKZnG6vhFdP9q gHWFfl3NtgymR9SuHVNoF2AjDUlQGEzTTzra3JaDklH4rBi2Tye7M5qFawgcCe2R5o3/ ypvEpfpa2X3vUkYcX4ZzpynZuzTZCE+yn3+e9i82Ew7GefbyTGcEMeohn5Ztfo4wh9je 9MjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=MjbGdsQd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b7-20020a636707000000b005c65ee2abaesi3613664pgc.219.2023.12.04.02.05.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 02:05:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=MjbGdsQd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D1012809D3DA; Mon, 4 Dec 2023 02:05:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229921AbjLDKEx (ORCPT + 99 others); Mon, 4 Dec 2023 05:04:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbjLDKEw (ORCPT ); Mon, 4 Dec 2023 05:04:52 -0500 Received: from smtp-relay-canonical-0.canonical.com (smtp-relay-canonical-0.canonical.com [185.125.188.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 250ADC4 for ; Mon, 4 Dec 2023 02:04:58 -0800 (PST) Received: from binli-P1G5.. (unknown [103.229.218.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 18D8E3F280; Mon, 4 Dec 2023 10:04:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1701684295; bh=gRcgEI7RGIHJ0Yu30p47NQQFOUT4LXqjIPSeJERS6Us=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=MjbGdsQdTZ3KeSHpFebs8fd9kAje64p2cWi3rQi2nKRAP46orKfWLvhZlhm2f0Yxq kzEWArjAc8cM/hn64olhf8MGcBKJKFL5clG4lh8fpCYyxgqpiLuBUi3zudVjraJgO7 rSKBZFMdyuBQmjD6Y09u+6WdXPVgCb3Y2MwC6Q+fSO1ZedfjQLmgdeVMBM9Jz79RQP JwsF/CpCt8GxwKQbKiLPdgHiMrgbYdWhYpGTNzE1m/wvYrp/oKtwT7z3UjzpLsFCmF dKx3cTxuv5PBkjiCGMK2Iig7plXQ0d/0rR8f1hbrZdHbxZPUX36pSoBM99qSW3BTA7 VG0VYCnDjbJtw== From: Bin Li To: tiwai@suse.com Cc: kailang@realtek.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, aaron.ma@canonical.com, libin.charles@gmail.com Subject: [PATCH] ALSA: hda/realtek: Enable headset on Lenovo M90 Gen5 Date: Mon, 4 Dec 2023 18:04:50 +0800 Message-Id: <20231204100450.642783-1-bin.li@canonical.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 04 Dec 2023 02:05:02 -0800 (PST) Lenovo M90 Gen5 is equipped with ALC897, and it needs ALC897_FIXUP_HEADSET_MIC_PIN quirk to make its headset mic work. Signed-off-by: Bin Li --- sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index f9ddacfd920e..08ed008a63a4 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -12196,6 +12196,7 @@ static const struct snd_pci_quirk alc662_fixup_tbl[] = { SND_PCI_QUIRK(0x17aa, 0x32f7, "Lenovo ThinkCentre M90", ALC897_FIXUP_HEADSET_MIC_PIN), SND_PCI_QUIRK(0x17aa, 0x3321, "Lenovo ThinkCentre M70 Gen4", ALC897_FIXUP_HEADSET_MIC_PIN), SND_PCI_QUIRK(0x17aa, 0x331b, "Lenovo ThinkCentre M90 Gen4", ALC897_FIXUP_HEADSET_MIC_PIN), + SND_PCI_QUIRK(0x17aa, 0x3364, "Lenovo ThinkCentre M90 Gen5", ALC897_FIXUP_HEADSET_MIC_PIN), SND_PCI_QUIRK(0x17aa, 0x3742, "Lenovo TianYi510Pro-14IOB", ALC897_FIXUP_HEADSET_MIC_PIN2), SND_PCI_QUIRK(0x17aa, 0x38af, "Lenovo Ideapad Y550P", ALC662_FIXUP_IDEAPAD), SND_PCI_QUIRK(0x17aa, 0x3a0d, "Lenovo Ideapad Y550", ALC662_FIXUP_IDEAPAD), -- 2.40.1