From patchwork Fri Aug 5 07:03:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meng Tang X-Patchwork-Id: 595802 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33F70C00140 for ; Fri, 5 Aug 2022 07:04:49 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E7627851; Fri, 5 Aug 2022 09:03:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E7627851 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1659683087; bh=nVndcvc8mtTNb8rdudVSh5th9r3QeTux+nM4UsP17eE=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=SdWgLU4K7Y4+t3Rn3mETsNxBa3Mbwhhj4PfLfQXjafp49QYgyET8R/hD7Ry8F2PfS Y45XTo9W8J1LxBYqUxMectjr9YayVuV40JB52PX1jvxkDUYS2dk3TNPZ87h8/KtmwI lFvj7v7NxlpMi1K7+YuWFJUTejwXCADxHnj/dFLY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 99E06F8012F; Fri, 5 Aug 2022 09:03:56 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 917A9F8025A; Fri, 5 Aug 2022 09:03:55 +0200 (CEST) Received: from smtpbguseast1.qq.com (smtpbguseast1.qq.com [54.204.34.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B9B1EF8013D for ; Fri, 5 Aug 2022 09:03:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B9B1EF8013D X-QQ-mid: bizesmtp89t1659683019t5llqh8r Received: from localhost.localdomain ( [58.240.82.166]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 05 Aug 2022 15:03:33 +0800 (CST) X-QQ-SSF: 01400000002000G0T000B00A0000000 X-QQ-FEAT: CR3LFp2JE4nvt+CFfh6xyx180K17RHFc6YiAjlUGcQVRQd6OEQSQ+oqEsYYlF BzHsAs2Y2sGZMguYibGNtUqXHkEOGrnwcXB0iTL0cRlzFd2BLtt1ciXkFS8yZrj9ETx3v6g 8SQMTT/n1h+UgtiDnu0+Tj11Fh+pVmie8sLgWtWIqD79AE5nDdzFHzCtSALrIWJX1XaSQ6j 0rd7kE4uPjhLnSxacTklwDrkpoIw6g5JMSMTHAfdKVk/OLuTzz/KTAsrw3nHXE2QA0b0tiA dZi5SpqCwaqU20iWKfLyolYGBqZftUIr+sHaJbIyME+u0LbkBrRmdOl8+ToK6H8sU2y3Muy x+29St9cUFt82bMVEQPloywbXe/UoI8HpSo4LN4QCvopB9UF+75LDSwU6MGOhMjELASJ1fT X-QQ-GoodBg: 2 From: Meng Tang To: perex@perex.cz, tiwai@suse.com Subject: [PATCH] ALSA: hda/realtek: Add quirk for another Asus K42JZ model Date: Fri, 5 Aug 2022 15:03:31 +0800 Message-Id: <20220805070331.13743-1-tangmeng@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybglogicsvr:qybglogicsvr7 Cc: sbinding@opensource.cirrus.com, kailang@realtek.com, tanureal@opensource.cirrus.com, tcrawford@system76.com, alsa-devel@alsa-project.org, wse@tuxedocomputers.com, linux-kernel@vger.kernel.org, kai.heng.feng@canonical.com, andy.chi@canonical.com, Meng Tang , cam@neo-zeon.de, yong.wu@mediatek.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" There is another Asus K42JZ model with the PCI SSID 1043:1313 that requires the quirk ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE. Add the corresponding entry to the quirk table. Signed-off-by: Meng Tang --- sound/pci/hda/patch_realtek.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 383a814b8539..4461237a3474 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6842,6 +6842,7 @@ enum { ALC269_FIXUP_LIMIT_INT_MIC_BOOST, ALC269VB_FIXUP_ASUS_ZENBOOK, ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A, + ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE, ALC269_FIXUP_LIMIT_INT_MIC_BOOST_MUTE_LED, ALC269VB_FIXUP_ORDISSIMO_EVE2, ALC283_FIXUP_CHROME_BOOK, @@ -7427,6 +7428,15 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269VB_FIXUP_ASUS_ZENBOOK, }, + [ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x18, 0x01a110f0 }, /* use as headset mic */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MIC + } [ALC269_FIXUP_LIMIT_INT_MIC_BOOST_MUTE_LED] = { .type = HDA_FIXUP_FUNC, .v.func = alc269_fixup_limit_int_mic_boost, @@ -9124,6 +9134,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1043, 0x12a0, "ASUS X441UV", ALC233_FIXUP_EAPD_COEF_AND_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1043, 0x12e0, "ASUS X541SA", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x12f0, "ASUS X541UV", ALC256_FIXUP_ASUS_MIC), + SND_PCI_QUIRK(0x1043, 0x1313, "Asus K42JZ", ALC269VB_FIXUP_ASUS_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK), SND_PCI_QUIRK(0x1043, 0x1517, "Asus Zenbook UX31A", ALC269VB_FIXUP_ASUS_ZENBOOK_UX31A),