Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp409938imw; Wed, 13 Jul 2022 00:05:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uv9MYjea0uaD+8V8ZF+R8pQQdc20txR+bW1D4p94U30MuaNsP31fj5JRRqqKh9e7h4EAA+ X-Received: by 2002:a17:902:c14a:b0:16b:d07c:ad60 with SMTP id 10-20020a170902c14a00b0016bd07cad60mr1837335plj.141.1657695948648; Wed, 13 Jul 2022 00:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657695948; cv=none; d=google.com; s=arc-20160816; b=nj4UStnCJ1gTV+XE6BSGh3MZqp02Jlc+LaGUsUdM0aVTJsGY7xCY84fkKCPSVjdKjs hp5kYsgR/l12vP5ufjG3NmVVmD4H4j0iUWaaqWibVD2G2ZEoERtib1VbQcDMP6y1sG68 /TCZXDK70r4I5cscnINqsvogGnR1wdPXHyTi0YlaCG4zVQUdIIMwtAvCQiqkRoDVrVQF 2/R8hzgETah5+Oz02W7vfffTnBf6s/+diXrfe4PMr6NUUxiIGVNM1MWYpFeChpPikeeM Y886Mi5hQ4fhxt830mlXSpN/nl6Q18juoLyU4rolQ/h48iS45GgsETVNcI2dJhtfM4oF UYqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=RCSRuM7IP+kF1u3945gCUaBMnoOtxase2n73cEC2Iao=; b=vGd9WcLLu7xCaRmVM9exhTbyyxoPRAi9YpRMTux1qU+w36ZVYHnyzw7kTrDke6aUcF IbbhusqOr6bUXX4opirQMx+S4DcKzb8hC1Vozmox0KH59xOl86i2H225usWtjT0UzcAe UYxKV6WcL+3HxaPeXfcElpOAv6UvfMrwZsX+x1zkp4bWhVD1LDe5PspO76cuz7EwaR+V Z9j5o4IxtQD0FnmPlUtCiXtnKXKmWmSZIBcRUcrGpdtttXbz48m2Vns5AhZnwJaRkgcs O6zAyCMgEXn75KkJUFsb0b5yCTg+sVw9EqNnZ2NyIUeLxSBkxhp2w+NYxSyt1Vgg/AB2 kVzw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a639306000000b0040e64ef1bfcsi15518364pge.557.2022.07.13.00.05.35; Wed, 13 Jul 2022 00:05:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233435AbiGMGd4 (ORCPT + 99 others); Wed, 13 Jul 2022 02:33:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231516AbiGMGdy (ORCPT ); Wed, 13 Jul 2022 02:33:54 -0400 Received: from smtpbg151.qq.com (smtpbg151.qq.com [18.169.211.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E53B31DC8 for ; Tue, 12 Jul 2022 23:33:48 -0700 (PDT) X-QQ-mid: bizesmtp78t1657694019td8n9a41 Received: from localhost.localdomain ( [58.240.82.166]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 13 Jul 2022 14:33:33 +0800 (CST) X-QQ-SSF: 01400000002000G0T000B00A0000000 X-QQ-FEAT: UJd4nZbM1CcbWDiDvZVuAeNKZ7bGg0B+n4f0wn07NL2C/jEB4OOopWmu3Seqb ftMldvW00rffAuBGrbia6pDbhkPrwqkcbr1DSdl259b8Cd5id0VV6IiVkznXoWtHGgfBhqz R1+rvvs3cYyMwtVcxy9o59q35h1p5/8pojDzJkb+AjTm0YnPjuAiKGIGHcd1ZVcP1CqrULg DPY46ZbBhlRs7aHa3Td6lLbIevSiTSbDI32TQurgg+QeZbgyhpLIH3+kmhgIGqhcStC4rep /sWhZrK6afXr+/pee+cuYwui8JPD66S5aPgozP0wsMDx14mLcYXGcughcC05/IIDlPdvoww ht04ERtSCelSwpWPccu4luz53YYN8vk0AUqsikeCD3pl2VuQz9zieS2M19Ke2WWB3pRfBQL X-QQ-GoodBg: 2 From: Meng Tang To: perex@perex.cz, tiwai@suse.com, tcrawford@system76.com, wse@tuxedocomputers.com, kai.heng.feng@canonical.com, tanureal@opensource.cirrus.com, cam@neo-zeon.de, kailang@realtek.com, sbinding@opensource.cirrus.com, andy.chi@canonical.com, yong.wu@mediatek.com Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Meng Tang Subject: [PATCH] ALSA: hda/realtek - Fix headset mic problem for a HP machine with alc221 Date: Wed, 13 Jul 2022 14:33:32 +0800 Message-Id: <20220713063332.30095-1-tangmeng@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybgforeign:qybgforeign8 X-QQ-Bgrelay: 1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 On a HP 288 Pro G2 MT (X9W02AV), the front mic could not be detected. In order to get it working, the pin configuration needs to be set correctly, and the ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE fixup needs to be applied. Signed-off-by: Meng Tang --- sound/pci/hda/patch_realtek.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 34139c26795f..91cd58849ee8 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6901,6 +6901,7 @@ enum { ALC298_FIXUP_LENOVO_SPK_VOLUME, ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER, ALC269_FIXUP_ATIV_BOOK_8, + ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE, ALC221_FIXUP_HP_MIC_NO_PRESENCE, ALC256_FIXUP_ASUS_HEADSET_MODE, ALC256_FIXUP_ASUS_MIC, @@ -7837,6 +7838,16 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_NO_SHUTUP }, + [ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */ + { 0x1a, 0x01813030 }, /* use as headphone mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE + }, [ALC221_FIXUP_HP_MIC_NO_PRESENCE] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { @@ -9012,6 +9023,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x103c, 0x2335, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1), SND_PCI_QUIRK(0x103c, 0x2336, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1), SND_PCI_QUIRK(0x103c, 0x2337, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1), + SND_PCI_QUIRK(0x103c, 0x2b5e, "HP 288 Pro G2 MT", ALC221_FIXUP_HP_288PRO_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x802e, "HP Z240 SFF", ALC221_FIXUP_HP_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x802f, "HP Z240", ALC221_FIXUP_HP_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x8077, "HP", ALC256_FIXUP_HP_HEADSET_MIC), -- 2.20.1