From patchwork Tue Jul 4 04:46:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luke Jones X-Patchwork-Id: 13300659 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 1B7ABEB64D9 for ; Tue, 4 Jul 2023 04:49:49 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0A760851; Tue, 4 Jul 2023 06:48:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0A760851 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1688446187; bh=/iHM+90/pGqxz/fKyWzXrBhN8Cqw4CH0+B6g+CioLM0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=JgnSizx1WaV/P/r68tO/+h5L/QkW1TW8lUEYXj5YNdFI8qEeqMw7ZYEFjbBs9vp5x 74fecaKV+tA15ApNWxNxL8PIHgDN2enBmXFhkEZHdw+YGL51/+SGW28WIPbonbPJ0b Z3F7eYTLllncu01dfnmECEHLlKwFOMn0RPsYJHHY= Received: by alsa1.perex.cz (Postfix, from userid 50401) id AEBF4F80563; Tue, 4 Jul 2023 06:48:02 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id A47C7F80564; Tue, 4 Jul 2023 06:48:01 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4F99AF80125; Tue, 4 Jul 2023 06:46:51 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 727F4F800E4 for ; Tue, 4 Jul 2023 06:46:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 727F4F800E4 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=ljones.dev header.i=@ljones.dev header.a=rsa-sha256 header.s=fm3 header.b=bur6XIeY; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=ATgcIOiX Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id B4F715C0299; Tue, 4 Jul 2023 00:46:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 04 Jul 2023 00:46:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ljones.dev; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1688446004; x= 1688532404; bh=jb2n+5UKA8F+ONcy+bqS08w50jdjpmZx/ZLehjCOwE4=; b=b ur6XIeY1sGZCXS69ZsSeNBI87TlDUvM9ZXxRPYxBdgugYyQFwUcBMs5nCCo7RObw ZZJBAfhtcmlyStyNu7zLSqwbRujD+HI7Wzp3W22qwZTKl+CKXYUnPpufjIrunDmt ryRFf2Kb7C8zZZYjRI+6bctpHKiwYBIiQ+wgt82XUJFyPRP6e2zYMfpp5VvV9zt5 +pNwKjmKxkqLty5AardfEnb4ixe7W5F5YDgwH7z/NjfZyp1wcIwD37Jt+pnRsbPn r1EOflvaClwW5Irxldft0/eTQ7c0Z9sKVwoIEhTzgzqDHbg4ARaO90qCD9MKcyZB ofgKVPIfWHSdrOASRazKA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1688446004; x= 1688532404; bh=jb2n+5UKA8F+ONcy+bqS08w50jdjpmZx/ZLehjCOwE4=; b=A TgcIOiXtRssanSmuBSlGT0ksYPxZ69PdhcBw4/ZFtLrKjO5u3z+KIZP07R/F7lF+ klPeK24qDv7JvPJR+vdlVKBy+N99jIgnUyORowipH/q4xzhsK221Ik0/nW87glh8 gfn1NxshqNWUV3TIJAQNVl/kB7DF+N1r9pRjLFUkbcpJ9ezRg5PYFlSYBh/SbV2R p+VLDa1e9FJOHVlhPMoJNB5zPH1HND7DFeDPvGJIMRyx2uu+Zna7n+WrKuni1StY jWGttR2CwPANpHpqy7bSmAFeiIg/rpeBvQjn/PNitCyCPIY7JR0nD8KICBeJaCF4 GHyB2K8vg7PnmWBYcjVvg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudefgdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepfdfnuhhkvgcuffdrucflohhnvghsfdcuoehluhhkvgeslhhj ohhnvghsrdguvghvqeenucggtffrrghtthgvrhhnpefgteefudfgteduueehteejhfeugf fgleeltedvveethfeuueejfedvgeelveehgfenucevlhhushhtvghrufhiiigvpedunecu rfgrrhgrmhepmhgrihhlfhhrohhmpehluhhkvgeslhhjohhnvghsrdguvghv X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Jul 2023 00:46:40 -0400 (EDT) From: "Luke D. Jones" To: tiwai@suse.com Cc: perex@perex.cz, sbinding@opensource.cirrus.com, andy.chi@canonical.com, tcrawford@system76.com, tangmeng@uniontech.com, p.jungkamp@gmx.net, kasper93@gmail.com, ruinairas1992@gmail.com, yangyuchi66@gmail.com, yangyingliang@huawei.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, "Luke D. Jones" Subject: [PATCH v2 3/5] ALSA: hda/realtek: Amend G634 quirk to enable rear speakers Date: Tue, 4 Jul 2023 16:46:17 +1200 Message-ID: <20230704044619.19343-4-luke@ljones.dev> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230704044619.19343-1-luke@ljones.dev> References: <20230704044619.19343-1-luke@ljones.dev> MIME-Version: 1.0 Message-ID-Hash: GAC37APFALTNOAZLSUL7RY7OT2U3RBGA X-Message-ID-Hash: GAC37APFALTNOAZLSUL7RY7OT2U3RBGA X-MailFrom: luke@ljones.dev X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Amends the last quirk for the G634 with 0x1caf subsys to enable the rear speakers via pincfg. Signed-off-by: Luke D. Jones --- sound/pci/hda/patch_realtek.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 1fae8e8b1234..50becdc86daa 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7068,6 +7068,7 @@ enum { ALC285_FIXUP_SPEAKER2_TO_DAC1, ALC285_FIXUP_ASUS_SPEAKER2_TO_DAC1, ALC285_FIXUP_ASUS_HEADSET_MIC, + ALC285_FIXUP_ASUS_SPI_REAR_SPEAKERS, ALC285_FIXUP_ASUS_I2C_SPEAKER2_TO_DAC1, ALC285_FIXUP_ASUS_I2C_HEADSET_MIC, ALC280_FIXUP_HP_HEADSET_MIC, @@ -8060,6 +8061,15 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC285_FIXUP_ASUS_SPEAKER2_TO_DAC1 }, + [ALC285_FIXUP_ASUS_SPI_REAR_SPEAKERS] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x14, 0x90170120 }, + { } + }, + .chained = true, + .chain_id = ALC285_FIXUP_ASUS_HEADSET_MIC + }, [ALC285_FIXUP_ASUS_I2C_SPEAKER2_TO_DAC1] = { .type = HDA_FIXUP_FUNC, .v.func = alc285_fixup_speaker2_to_dac1, @@ -9622,7 +9632,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1043, 0x1c23, "Asus X55U", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), SND_PCI_QUIRK(0x1043, 0x1c62, "ASUS GU603", ALC289_FIXUP_ASUS_GA401), SND_PCI_QUIRK(0x1043, 0x1c92, "ASUS ROG Strix G15", ALC285_FIXUP_ASUS_G533Z_PINS), - SND_PCI_QUIRK(0x1043, 0x1caf, "ASUS G634JYR/JZR", ALC285_FIXUP_ASUS_HEADSET_MIC), + SND_PCI_QUIRK(0x1043, 0x1caf, "ASUS G634JYR/JZR", ALC285_FIXUP_ASUS_SPI_REAR_SPEAKERS), SND_PCI_QUIRK(0x1043, 0x1ccd, "ASUS X555UB", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x1d42, "ASUS Zephyrus G14 2022", ALC289_FIXUP_ASUS_GA401), SND_PCI_QUIRK(0x1043, 0x1d4e, "ASUS TM420", ALC256_FIXUP_ASUS_HPE),