Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5620617rwd; Wed, 24 May 2023 04:41:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4vo2QCtPnfa6pRkpXLT8bbdaEofGR1Fsq4PLoyLZNpYcDv7AQPXYlJf4cwz5pOLoSsGWq4 X-Received: by 2002:a17:902:b7c5:b0:1ae:4013:986c with SMTP id v5-20020a170902b7c500b001ae4013986cmr16338518plz.63.1684928499328; Wed, 24 May 2023 04:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684928499; cv=none; d=google.com; s=arc-20160816; b=vkTXt+lPC0tymI6l6nwiUPdCMkV7+gkey+mU5pEjfA/1ZDHxjCKMllRTfpkgEXzsDs m2XOwx6iKbPnWYpKdKwa1/KZh9W21+GZ73Rt7fhmD331YXbvrEVROFmpMSG/T7FGBMyN oW6fJqododFMh3rvV41SPrZYH7fiuJy8K01v5ZfN+XOSeE1V6jNREgWct/d6Biks9fBc f0w9OFIaok+PtuG45VNThzreO9R95gNEZjLSvEOD2+sV4upklLt/8c45SXMGi9YZRz0r EQ22NhPeNEzG5IojznPfgaPvuXBrQzKwU3Kk5Qx2c+DshF/cMIboZj4PeS6Y1A/Ul4aE 44rg== 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=2jDYAyIQzR5LVpCJdbESJ5E/R1qgz1TuJsk+SSd1oFc=; b=r4lutX1xG64dw5m8Mpry6F2+WCSHqA4VZ3RhQCFd+AplKItvOQSrj72qNbfU/NdEkM V1vMe6Cg5nyvQ9gHk+P43mMvNQqeRRoez+JdmDab8xfS7Z5DY0mu9+POKWHVTz888uyF R3IusVh62FrS/05Vmm+Q5VZaB/c81ZzZKQ420U73S0KsADnvC0T0LKIYiUWH9BvR4f7g p9IT6+oUwJ+AQzGySbf4x7VzgDKfDi4vAXG/jY5wJT11zoXrl+jXWWZTPFwpRVIEieSH u73sIGK4dLbcPP4nLXpu5l+GvXY1QBY9odpdcSBBqnC941XoS8ysHLufTv74TFL0FJe6 Zc2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=SPhKXur9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a17090341cf00b001ae014d8d03si1179403ple.432.2023.05.24.04.41.23; Wed, 24 May 2023 04:41:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=SPhKXur9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232141AbjEXLiG (ORCPT + 99 others); Wed, 24 May 2023 07:38:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbjEXLiE (ORCPT ); Wed, 24 May 2023 07:38:04 -0400 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 58735C5 for ; Wed, 24 May 2023 04:38:03 -0700 (PDT) Received: from binli-ThinkPad-P17-Gen-1.. (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 B1E943F323; Wed, 24 May 2023 11:37:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1684928280; bh=2jDYAyIQzR5LVpCJdbESJ5E/R1qgz1TuJsk+SSd1oFc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SPhKXur9CnyyHsd2Ke8nhTj2sAK8pioz4xCxoxDlYUAcevPF5j5JoYRXi2cbXoJxY 0ZH+Ucf/w2FayA1ji3QIBtnSmTaE2lgifFISZo+BTQLDIYRebiEWSauRqVCOQTboCe 4ZgnauPyzsMTu5BOwRF/h8Ouc1QSgNa73W3HlYv4Mwl61xh8YsWh+f7K4E8eY4jBp6 8TbRsC+TXXuAS1DSZi/Lj1I4BmPlXhCpGVIMgzLtZpqMZIesX3Fh7SZ0P9LU32C+dV At5Ut5kkuZ1FcQKOmz8nYP1Yk8JY5G3QsRuSu4OY7qEIMxcKlp/95S5i2BwCNZ2hI3 nnSCLaMjEShjA== From: Bin Li To: tiwai@suse.com Cc: libin.charles@gmail.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, hui.wang@canonical.com, kailang@realtek.com Subject: [PATCH] ALSA: hda/realtek: Enable headset onLenovo M70/M90 Date: Wed, 24 May 2023 19:37:55 +0800 Message-Id: <20230524113755.1346928-1-bin.li@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Lenovo M70/M90 Gen4 are equipped with ALC897, and they need ALC897_FIXUP_HEADSET_MIC_PIN quirk to make its headset mic work. The previous quirk for M70/M90 is for Gen3. Signed-off-by: Bin Li --- sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index a7e4765eff80..7b5f194513c7 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -11719,6 +11719,8 @@ static const struct snd_pci_quirk alc662_fixup_tbl[] = { SND_PCI_QUIRK(0x17aa, 0x32cb, "Lenovo ThinkCentre M70", ALC897_FIXUP_HEADSET_MIC_PIN), SND_PCI_QUIRK(0x17aa, 0x32cf, "Lenovo ThinkCentre M950", ALC897_FIXUP_HEADSET_MIC_PIN), 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, 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.34.1