From patchwork Tue Jul 4 04:46:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luke Jones X-Patchwork-Id: 115555 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp979834vqx; Mon, 3 Jul 2023 22:08:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlHHA439ZPu44LYUemn480IyUGP91z9/ZxKEfojzvEIV7TIQPawUI7eMDuGdO/ivYIjtMMCn X-Received: by 2002:a05:620a:4012:b0:767:6710:9636 with SMTP id h18-20020a05620a401200b0076767109636mr8737508qko.77.1688447295605; Mon, 03 Jul 2023 22:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688447295; cv=none; d=google.com; s=arc-20160816; b=akh6vRFQ7gsMrDMtrQfw3HCVKB57QZXNmxeUj1yYkkXqnvNijmqYY2TCg0oKFHXQaM x71p/msNaRVXF692stHRXW8CrRWIzgwV+0d9XK4WGKMShlh3zt0pEzfVtfW8ZXGcy+Da 7wsYM5jT/ftBUT1vvJapAUD63CU+uS4XxB0w8PqdNZMrbESsK+eisfm3boRqXu2hbx3Y K12/qjecP0+B2gWZkYtE5mfCZGhp8HrrVYwBXVVfTyhVbWeogqkP4473YAa5UB7eAQDg r5wFzj5kuXrpqU9FZxyxDL8Sjpk4PBpBd8Ifi5gZLiRPZuOfibEGIfKBNYbgvjcRucjt rExw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=QP/VA6mshWZb0nRbRHngozKWeUQwurv7rryVbtBvaJk=; fh=pYIOgdhDYYcmWnMevLmS4MkD6j+ECBwBJJXswa+pisM=; b=ICH7syIn8FK+o0nP6IHCjNnr0goO0fasXpnlMVXTOYtOQikQ8l1QCDnhx/ebdEWSC/ Rheaj46dpAhypjp8Kz32PjZrFmwEOIGqLPneXocrCrjLb69DFNCubiC7q7EK0Pdtw7pW cd39NVfADaNXoZqbWY2zMoyPL9aEtYwJMS1AxpqFKb5W8JXAleq4Zl+l1aG2UUhONNtx wtl6oAvnYFBMIqPlvXCEwBuJ28FhogCDQJ6alw9PzFEOPXqRMxsXFRytMMpU86AoMBYu KSim0QSdbI4oGYxj2ZInobZJ8qF3sX/gcwNhjYL6pqLnpxoAMEcvB3YvRsqY1jdiHVNc q64A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=ksdY+n9Y; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=mpfnWq1F; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce12-20020a056a002a0c00b0065b4e2b52c5si18606969pfb.196.2023.07.03.22.08.03; Mon, 03 Jul 2023 22:08:15 -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=@ljones.dev header.s=fm3 header.b=ksdY+n9Y; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=mpfnWq1F; 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 S230252AbjGDEqi (ORCPT + 99 others); Tue, 4 Jul 2023 00:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230172AbjGDEqh (ORCPT ); Tue, 4 Jul 2023 00:46:37 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DD76133 for ; Mon, 3 Jul 2023 21:46:36 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id CA80D5C017E; Tue, 4 Jul 2023 00:46:35 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 04 Jul 2023 00:46:35 -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=1688445995; x= 1688532395; bh=QP/VA6mshWZb0nRbRHngozKWeUQwurv7rryVbtBvaJk=; b=k sdY+n9YsdQfmyAMuzSRAanP523LZF0mkJll4HX3OtbUdpNmvtjy6/f3n929O4bgp jEPo/B86avWp0XZh4189KxQ9jyPcMET9xioVpnYBQbADybkK8gU2YJgL30wlacyi FiVVqepCB+trI9+4cA5xZbYDg0igE504+ZRYyTHKWGMZTau3OYhvV/wOHVUk8F4o 9gMBH5C+a8YzJKICf6KPHINZFdw3UlcEvwl1Cjh5vpqSEFTsb6rCQl6y+Mk0Olyk D1IuXLquZp77AJ9zj7tL77UmlHDKDLx1dawqkCmj69RZ4nMe4iy58khrxHHehoww 6/vdpWBInz9O2K41lY4Lw== 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=1688445995; x= 1688532395; bh=QP/VA6mshWZb0nRbRHngozKWeUQwurv7rryVbtBvaJk=; b=m pfnWq1Fck0yClA5YWbHivSIrmtsKVLh8XVKaNK7AU5YHv3XuGkP7m3uZow2H0gyf v1PmOvdTW0ZCf+b0am63/Ecqc4JTDSaBw1YcO1GFXkKDElAJZvJk5bS/1X/2MaTy PhHaSAcFkv9n1GhCD9ZyuxD3HtIwywGDZLbfK1SrVHGD7CJWgDsmqTjPLmVPUbR3 r/ftz04FCaW5ZeW3U9f/PJOAJyrIT9gJapA0QW6gSP8vfHFj7hPeJagylbiOVPTI Qy6ORclnMe5t9m+rQPhKAhTVEyWXIqCUcgquzLNQX5ufKIddgBDzK+ygHI2K1iJM bj9oZ/xYApsy+y2+EN3WA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudefgdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepfdfnuhhkvgcuffdrucflohhnvghsfdcuoehluhhkvgeslhhj ohhnvghsrdguvghvqeenucggtffrrghtthgvrhhnpefgteefudfgteduueehteejhfeugf fgleeltedvveethfeuueejfedvgeelveehgfenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehluhhkvgeslhhjohhnvghsrdguvghv X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Jul 2023 00:46:31 -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 1/5] ALSA: hda/realtek: Add quirk for ASUS ROG GX650P Date: Tue, 4 Jul 2023 16:46:15 +1200 Message-ID: <20230704044619.19343-2-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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770465311478168208?= X-GMAIL-MSGID: =?utf-8?q?1770465311478168208?= Adds the required quirk to enable the Cirrus amp and correct pins on the ASUS ROG GV601V series which uses an I2C connected Cirrus amp. While this works if the related _DSD properties are made available, these aren't included in the ACPI of these laptops (yet). Signed-off-by: Luke D. Jones --- sound/pci/hda/patch_realtek.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index afe8253f9a4f..b41fdf22157c 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7068,6 +7068,8 @@ enum { ALC285_FIXUP_SPEAKER2_TO_DAC1, ALC285_FIXUP_ASUS_SPEAKER2_TO_DAC1, ALC285_FIXUP_ASUS_HEADSET_MIC, + ALC285_FIXUP_ASUS_I2C_SPEAKER2_TO_DAC1, + ALC285_FIXUP_ASUS_I2C_HEADSET_MIC, ALC280_FIXUP_HP_HEADSET_MIC, ALC221_FIXUP_HP_FRONT_MIC, ALC292_FIXUP_TPT460, @@ -8058,6 +8060,22 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC285_FIXUP_ASUS_SPEAKER2_TO_DAC1 }, + [ALC285_FIXUP_ASUS_I2C_SPEAKER2_TO_DAC1] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc285_fixup_speaker2_to_dac1, + .chained = true, + .chain_id = ALC287_FIXUP_CS35L41_I2C_2 + }, + [ALC285_FIXUP_ASUS_I2C_HEADSET_MIC] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x03a11050 }, + { 0x1b, 0x03a11c30 }, + { } + }, + .chained = true, + .chain_id = ALC285_FIXUP_ASUS_I2C_SPEAKER2_TO_DAC1 + }, [ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { @@ -9573,6 +9591,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { 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, 0x1433, "ASUS GX650P", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x1473, "ASUS GU604V", ALC285_FIXUP_ASUS_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x1483, "ASUS GU603V", ALC285_FIXUP_ASUS_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x1493, "ASUS GV601V", ALC285_FIXUP_ASUS_HEADSET_MIC), From patchwork Tue Jul 4 04:46:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luke Jones X-Patchwork-Id: 115553 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp978280vqx; Mon, 3 Jul 2023 22:04:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlHVytYVTebGvwDD8g46fp5aQS2VLtBXMBSCwJfVhj79zDbGp9IsHbsHCV+cRQVzazEKpmEM X-Received: by 2002:a17:90b:230c:b0:263:4305:4e82 with SMTP id mt12-20020a17090b230c00b0026343054e82mr10366834pjb.6.1688447071875; Mon, 03 Jul 2023 22:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688447071; cv=none; d=google.com; s=arc-20160816; b=sO3E0nj3EJTyWnT5vcpanGKMNjuPfINSfYEHQHEUURHtasDXlFNW4bK7itt0gSK7Uj HEEA/+OKVf78uNJQm4jQm6y0F1sKgge7XBfVMbN1Um7aasGCpncyXAvFWwV0hicdL/vG bcbif+tZNn18/+g1t9ieHTEGLR2y+9a3Jl5RrrOb7i/cH8GiT0hkevh3PX2dp2T7OWUi eY836TWZEWWzwP/WUpPbsEP+8lwPlPOaNJ1INgt+qyTWlZEDMsLQXg8cXa4PsAW8VUr8 GojTmSWyLVKo9p2rweldrb2buXMk87yl6ZnZPDHit0Z1YLJ/y3vlXbwkq2rEXcwXgfLp YqMA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=lf7BG57d2imwAdxEp17ZgL+r8ob/5wcVGgce8xMXLs0=; fh=pYIOgdhDYYcmWnMevLmS4MkD6j+ECBwBJJXswa+pisM=; b=BEVBEHVBDJ8Punb8XTp7VJ9k5EMiHdJA+I2Ju9iiUe/GPBrIldvOhHY/nuRzmSVexQ DaDj6z4bobcFEz/OZ5vDsneDDF63omrnnmpCJNxWUDbp0azJC7kOUwStU26+7cEz4p4a q7Mv2S/5rZfdvvdFk2mt7M8rYMHaw40X109ad+zuGtxtq5R6pr0LFpBM7/d5+1g0/FqE l8rrPmgFRLuNapZ2aynK6QDMMlYVeGr6RxtbkmPR8hPVfZw+IK7AY1UF0F+ZSsWMXMyJ DuBC10yuC7vBCPdjptOtPNBvEuSEyGpJRBmrPd5ggM+eoTR2X3oQtvgnx1F7rM53EGCr 1asA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b="CV9MwZB/"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Q5OnB1sc; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k15-20020a17090a39cf00b0025960d035c6si19949714pjf.138.2023.07.03.22.04.19; Mon, 03 Jul 2023 22:04:31 -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=@ljones.dev header.s=fm3 header.b="CV9MwZB/"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Q5OnB1sc; 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 S230326AbjGDEqo (ORCPT + 99 others); Tue, 4 Jul 2023 00:46:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230301AbjGDEql (ORCPT ); Tue, 4 Jul 2023 00:46:41 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBE24134 for ; Mon, 3 Jul 2023 21:46:40 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 420E05C029C; Tue, 4 Jul 2023 00:46:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 04 Jul 2023 00:46:40 -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=1688446000; x= 1688532400; bh=lf7BG57d2imwAdxEp17ZgL+r8ob/5wcVGgce8xMXLs0=; b=C V9MwZB/AEmoEeVLMi1tWuoGUZARof18lBVyf93g0v/LRuXNudWh8om4HGPr530O1 1O194cS1QmVFQAW8rSPe9tHo3cpJHAqP4jKM9NKtZq3YzhcmTh5qnG0jB7QO8WjY zx0qza+4NLGxyv2pAj4I17TAylXSTWi285o0SkABS+AJAda6YbxhLdeWfDymnV9C xhRmjogf/VGSINvJcQXIwf6LkOrsfsTgMNAgNAt1DHwPPGyFqh7wYkNlAWUskCIY 5/0oC0qdSi6tJpPMv8B0kPFYe0y3k0B2YZrznRBdXh/A9LuNAI9lr96T91vIu8OA lmIFJKXbS2ZfLrbUi5XoA== 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=1688446000; x= 1688532400; bh=lf7BG57d2imwAdxEp17ZgL+r8ob/5wcVGgce8xMXLs0=; b=Q 5OnB1sczXB2csbLnAdMhz0lsvH/2oenF76iVgNODu7/T4PAgDU8Zfbx8JTdxkNDm x9SKQ8NlyG2Y2ZVLLW7/H93/6tUss+zwJkEsDl8pj2aiKztTBI2wPgy5v/MviRwz K18o5CYzikutqL67Y2h4wGZWq05CaA64l3Tw/qsRtvd5ZvbKvDjPyAdo3faF0HMS 4b7aKxapmoF71uccu3UhnTgDmVTv+VwJLTJULgLlE0fbtp82so+h83dK5QNRThtm BSzp2eCEGoe+3gzvGwxL9Omj4Yl7hflFxUOt45lpnMkUdyUlTXb8bCyGBICIPGMj HFSmRzwU8qEQuN++u2kuA== 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:36 -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 2/5] ALSA: hda/realtek: Add quirk for ASUS ROG GA402X Date: Tue, 4 Jul 2023 16:46:16 +1200 Message-ID: <20230704044619.19343-3-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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770465077007226105?= X-GMAIL-MSGID: =?utf-8?q?1770465077007226105?= Adds the required quirk to enable the Cirrus amp and correct pins on the ASUS ROG GA402X series which uses an I2C connected Cirrus amp. While this works if the related _DSD properties are made available, these aren't included in the ACPI of these laptops (yet). Signed-off-by: Luke D. Jones --- 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 b41fdf22157c..1fae8e8b1234 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9592,6 +9592,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { 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, 0x1433, "ASUS GX650P", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC), + SND_PCI_QUIRK(0x1043, 0x1463, "Asus GA402X", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x1473, "ASUS GU604V", ALC285_FIXUP_ASUS_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x1483, "ASUS GU603V", ALC285_FIXUP_ASUS_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x1493, "ASUS GV601V", ALC285_FIXUP_ASUS_HEADSET_MIC), 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: 115556 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp980055vqx; Mon, 3 Jul 2023 22:08:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJ3IN1JH4uqwz+Nx+/3XckFRIsYuJXzd3ez6DOn/3fW6aQ24i15F4R/i/71htvW7ArZQIa X-Received: by 2002:a17:903:2594:b0:1b8:6900:a368 with SMTP id jb20-20020a170903259400b001b86900a368mr12691895plb.66.1688447331477; Mon, 03 Jul 2023 22:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688447331; cv=none; d=google.com; s=arc-20160816; b=lxsLyV3ImRr71S9SnF7p0H+L6jQ+jddubBzYxsBu7iq3BVu7nuikJc7sYXPSoL6+Pi VPA++272ymq1oLDKohy2XfwYqBkJpnju9DhKUM56XAS0ItGpsb+TJZpXlSaY56J/nNLj 81wh3WtfdmjkqkAnnWUCAPJK2HlxczJQDN94n7+fpLfnbslAZ/Rk+YH6txCYSXzgQ6Zk aD+tCSWIaQux+zWvXpeFnD1WEdXZb5JFKan3s0TL0ojecdGFoEx9jIwx6+VJcwA5fV9j C5f9AexcWZv3i/Umy8Xc0IwhEruE1YSXwuyj8y5pK5QqH1c2AfVs8elptfZB2Qpveo2m 4Mcg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=jb2n+5UKA8F+ONcy+bqS08w50jdjpmZx/ZLehjCOwE4=; fh=pYIOgdhDYYcmWnMevLmS4MkD6j+ECBwBJJXswa+pisM=; b=1DuvDW1zDxworK0KoNyt7N6xO7yM+Qp+VexGedjuI455i24Ua6dZTEy8HtdJEcvTSm Zv4iQlBs6fSh/W8f4AytECAQ9gN24RzToFL+IvYxLPcRyzLE49kOlNSbdiVW5StK/fNC 9QmqlNY+B4FKnufSYGLKdvQimu3NH723hmuWhyTLOrCEqIE5E8pXk0Y67JbmcuW56ufC mmJqQP2CjUuZ5mHekTZagTYHHZzQHaccPMhcAHbdz0S3DIetSuYq5/x1T1e/7agZWD9D Fq/sorn2CX94EXAMDL+0/dz07pI20Sl9nosN+UxABAFOwLNt5xap9WNAT2TZ2yOq80zM 3Xxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=bur6XIeY; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ATgcIOiX; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a170902e80e00b001aadba392c1si20880770plg.464.2023.07.03.22.08.38; Mon, 03 Jul 2023 22:08:51 -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=@ljones.dev header.s=fm3 header.b=bur6XIeY; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=ATgcIOiX; 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 S230391AbjGDEqu (ORCPT + 99 others); Tue, 4 Jul 2023 00:46:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230334AbjGDEqq (ORCPT ); Tue, 4 Jul 2023 00:46:46 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75F39133 for ; Mon, 3 Jul 2023 21:46:45 -0700 (PDT) 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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770465348935235256?= X-GMAIL-MSGID: =?utf-8?q?1770465348935235256?= 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), From patchwork Tue Jul 4 04:46:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luke Jones X-Patchwork-Id: 115558 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp981345vqx; Mon, 3 Jul 2023 22:12:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHrBtcRgUAOcELYswCVrPLQyrNQp5RiZJ9rjjhqYxHH1qyYtUF/HXMzDAQ8dSKagT/ESY+J X-Received: by 2002:a05:6a00:18a0:b0:682:4c1c:a0fc with SMTP id x32-20020a056a0018a000b006824c1ca0fcmr17362517pfh.19.1688447550320; Mon, 03 Jul 2023 22:12:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688447550; cv=none; d=google.com; s=arc-20160816; b=H31fPRZqtMz6JaPCOHOizuLS65jY0FtS0pgl8h4uo7o7rnWxFz5hiUzO26cvnSILqc FFFM8/FwS2vFHyOfMsXBASsJyQNurZdbe3UU3jWIgW7QarG/94lD7Hr5S01jxqG6XC4I tlx/VLUZQI0M8vBTk+s7ZvrgthfyugEq13V/+U0tIQm+k8pqm8Ljr79/r+YG0gX/NfuJ e3wq5L1gO/SWL0ylYckFX0w67qhRoauNs3ur7kvD+1Ygihd2Xq801YJdizTLh4IsWHY8 tT4p11/CHnZpei1WaiYYLdHkDHaRChQtpenavPe+kfh7IZMt04UAKI2u/hpL9NveXnQn D9tQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=qtNU07zM4dIX81fMsjLGpYDh19Y5tjgNSmmLajH29Pg=; fh=pYIOgdhDYYcmWnMevLmS4MkD6j+ECBwBJJXswa+pisM=; b=S404byRUf8pQm8DOI+xBC8mkg4ebN9S+lQBiZuHXulrGaMtwZcCD56fg2cl+J8ULvK pw/UC3qk1/aJapflUdE3h/vQ6UWFhvo4FgJzCQfDwjCNYn9Ys3C43DmeOgmB93qODsOV 9uo6fOuDggz0xQPg9vf1cELjRBfY5USZcZDbFqbvDO4LCUNDpRiLgxPz2JTH7bFXiW4u JR/VKsiMnWLU1MxwYIwky2XEAGUCgRf0dhdf//eKoqNSp27r2qPpC0yzC/PCQmkfrom2 6I3IxEvsCu7zO249C/hJ0pJl6OH7BNbaiVoHDvHWUUZN1dbydl32PaC4r1fnFU/3T7he NX7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=Ql2fXgnd; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=fDVYWvV7; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bw27-20020a056a00409b00b0064d419dd566si18389343pfb.205.2023.07.03.22.12.18; Mon, 03 Jul 2023 22:12:30 -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=@ljones.dev header.s=fm3 header.b=Ql2fXgnd; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=fDVYWvV7; 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 S230360AbjGDErB (ORCPT + 99 others); Tue, 4 Jul 2023 00:47:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230367AbjGDEqw (ORCPT ); Tue, 4 Jul 2023 00:46:52 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAC8410C2 for ; Mon, 3 Jul 2023 21:46:49 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3CDC55C028C; Tue, 4 Jul 2023 00:46:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 04 Jul 2023 00:46:49 -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=1688446009; x= 1688532409; bh=qtNU07zM4dIX81fMsjLGpYDh19Y5tjgNSmmLajH29Pg=; b=Q l2fXgndMPIBD89DD8OgEBTDupan7Pswoh3VnLimZ8x9AWo4PcY4TZrZVZoBMnLTq FDC9R4Uy66HGBVJQD8OnNgC/EsxOTjQBz+8SXEmD5ylhM6oXMNfM5cKWdSpUa3TE kfEuWtPta+fPjUQW7vfRWJYC+AA7kMLiKxckua/vrI5G1yebZwcQQjEmIDFXU3vN 72QICvZdRcG/vsa/FtS1i/pChgXvB2LuCwhHB2ZBHGFk8NkR7hPoFIEXW5j5xQQ0 pAQ15DYaSQNIo36/JACfLMBFAPj8nTcEygtKSmZdWUhLyuTvlqFnosPTrwccgszy rDruiQNnPbuEFuWilnh+g== 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=1688446009; x= 1688532409; bh=qtNU07zM4dIX81fMsjLGpYDh19Y5tjgNSmmLajH29Pg=; b=f DVYWvV7j41dXVsOTcwihvIcVarkN0CDIXuzS2kQcLnlmI8RtSDh8MorF/CU9V4yg BZdI7sGMrd/WWx+SQ8qNvSgG4lUdYTJK5kqVE3an6qXQjHzrTRekKEvS60sxBSIP 8fXV+QFVnrCmQNdQWAaWyYdH3d95nFwOz+EiQ5LFWB22YVDoEWwcXkzexAKBOEPi HIWbKjbY+3QUu7hKD88lFMjvQlXKV2tmXNxQk6q1P0lL8lE6zfmutl2XLmEuyHYA d8QDljlt1lqUJXaETjyIfIe9ozz/hdOYrnOcUEAR7oGJZxmQuwvDHh9QoYJjwraj ZVXfAQaQlHC6WJDGTlqVQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudefgdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepfdfnuhhkvgcuffdrucflohhnvghsfdcuoehluhhkvgeslhhj ohhnvghsrdguvghvqeenucggtffrrghtthgvrhhnpefgteefudfgteduueehteejhfeugf fgleeltedvveethfeuueejfedvgeelveehgfenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehluhhkvgeslhhjohhnvghsrdguvghv X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Jul 2023 00:46:44 -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 4/5] ALSA: hda/realtek: Add quirk for ASUS ROG G614Jx Date: Tue, 4 Jul 2023 16:46:18 +1200 Message-ID: <20230704044619.19343-5-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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770465578322455974?= X-GMAIL-MSGID: =?utf-8?q?1770465578322455974?= Adds the required quirk to enable the Cirrus amp and correct pins on the ASUS ROG G614J series which uses an SPI connected Cirrus amp. While this works if the related _DSD properties are made available, these aren't included in the ACPI of these laptops (yet). Signed-off-by: Luke D. Jones --- 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 50becdc86daa..ba3c113f0be1 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9632,6 +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, 0x1c9f, "ASUS G614JI", 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), From patchwork Tue Jul 4 04:46:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luke Jones X-Patchwork-Id: 115559 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp982056vqx; Mon, 3 Jul 2023 22:14:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlFT1acgSCDVnCfBuIxfmha4ZBzonfuf1mPIFmU2nL1kJaPsg3s+mHRmrsl8SmVpW+P+VG7Z X-Received: by 2002:a17:902:c94d:b0:1b8:6980:c12e with SMTP id i13-20020a170902c94d00b001b86980c12emr13691433pla.51.1688447675891; Mon, 03 Jul 2023 22:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688447675; cv=none; d=google.com; s=arc-20160816; b=itTE8Xa5D/G8U9Par9oqvOlEIIj79OSX9IDq3tOsaProisCLe9l6q5jus8rp4+EBEH FjtWoEJs3p4tkyetNRxyeMsq8HZDiBPKcNS8E29qsEh+O6Zv/2lyLof1j7XkjYsxWdJy pVSbRtPEo9FfkvnqJ6ckbloGFnGuhYdowdbgM+dB1fQPmuM8fN6cR2x31BVqsm6gYy+B br5OGiqpLb2x0VKhClWe/140U0ue4qohb+GXZAFbJ4upB/qWMruNbLZ7wcIVfRe9nxHW KZ9K+tAq4XLt5b7/k8Iil1gv/xVLMhfg0HEC02lQY0iV906byrF2CrbwFidjbOyhYJwT PAAQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=I7hwEV3srjyCYS9t+KWnEQ73pm3PsV/kMvHeobjOFJQ=; fh=pYIOgdhDYYcmWnMevLmS4MkD6j+ECBwBJJXswa+pisM=; b=HxrRjtXQ7tn0/J/EsotW524Kj+VOTMHhI036gmw9ZGOrQ4oOMmyBY9Vv9t73zoVwNh CtLlzF8GK52WTS7/NwYIfFP4wHTlLGoovJkf2i0CdFhtWZUE2S9ol9UIloYDLf86/xKl e/TMPUUyz4f9HS8TJkDWwuiwQDpVwnPsbhN1qeNeW882vnWwcSc7UblBl42P7hK1UgYJ IdSL+cHCPmOaBsRB2ZW8CTmE1gsM45zEtBN8312Tg9hucgUxgXIlXRcridqDr1C+Ekho YTwORD/BXDZ3s5t2qXYBldWrIlwWEWpGAnp/BQR+bsTx64EFuLANthhM/DJwT+TbMeRX 1AZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=XlXegA7O; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=aoOR3VF9; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a170902e80e00b001aadba392c1si20880770plg.464.2023.07.03.22.14.11; Mon, 03 Jul 2023 22:14:35 -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=@ljones.dev header.s=fm3 header.b=XlXegA7O; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=aoOR3VF9; 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 S230492AbjGDErW (ORCPT + 99 others); Tue, 4 Jul 2023 00:47:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230375AbjGDErH (ORCPT ); Tue, 4 Jul 2023 00:47:07 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 071C510FA for ; Mon, 3 Jul 2023 21:46:54 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id BB80C5C017E; Tue, 4 Jul 2023 00:46:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 04 Jul 2023 00:46:53 -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=1688446013; x= 1688532413; bh=I7hwEV3srjyCYS9t+KWnEQ73pm3PsV/kMvHeobjOFJQ=; b=X lXegA7OjSwia35Cvwj9U6IIADHrmmE/GEUE0vKaLiZ0JqiestiZXqCnXi9Y3bmtX rfgoA6QhAz+rLufUskh2r1eaFNijxn3gj0J6I80KktDL9VpMukKz0G5EZhS85b6i IGjGLmBUyCRARx7YZn8RayU+x2WWN60ehsZ3jWKz7wY7YE7DBOTGDq60BWSc0X6H oyZU0o40l1B6RtH5DV3lsLRVlb1Uwf+Ch7zOadohJ5Dzy+T952kwXUrg298zGw1U cxwqYy9652mPrULRN9dC0qWMyM6g8+5qEXtUr+HHkjiqwkz9GxG3V6+5bdtvYaw0 vNUw9F/4UZkTBHnFLDcOw== 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=1688446013; x= 1688532413; bh=I7hwEV3srjyCYS9t+KWnEQ73pm3PsV/kMvHeobjOFJQ=; b=a oOR3VF9pK9LHYkU1GsLZh3MXRTx8UXEfnTFj11+Dg6w4X0pZmy1dKg/p26lZAP1n 4GkPdwSYSZkaCGnsE+eJVfqCDICLg0kVCStjwUROhC0pbAimyydLUibp890uUDwZ y05ds78HyFA4dhp6gsTZKmJZKoHybOuRQIzlBI9WH9v1LbgvAuKLh9Xcb1N00Fie Z0iIHBp8q4kWFNyOLq6MXrNyItNEIFIobvi84dRvUjRxGeWI2Yml/L7e+lwxirHb hC/8RQApkYmHOL3Bs2QKVdjU0gGMIivFXEOPumv2GJPO/+PmAZ1AkYA2Do+Pe8m7 cQZatJUPZMH/njO1UQ7qA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudefgdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepfdfnuhhkvgcuffdrucflohhnvghsfdcuoehluhhkvgeslhhj ohhnvghsrdguvghvqeenucggtffrrghtthgvrhhnpefgteefudfgteduueehteejhfeugf fgleeltedvveethfeuueejfedvgeelveehgfenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehluhhkvgeslhhjohhnvghsrdguvghv X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Jul 2023 00:46:49 -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 5/5] Fixes: 31278997add6 (ALSA: hda/realtek - Add headset quirk for Dell DT) Date: Tue, 4 Jul 2023 16:46:19 +1200 Message-ID: <20230704044619.19343-6-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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770465709997813698?= X-GMAIL-MSGID: =?utf-8?q?1770465709997813698?= Remove an erroneous whitespace. Signed-off-by: Luke D. Jones --- sound/pci/hda/patch_realtek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index ba3c113f0be1..1547c40dc7e9 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5883,7 +5883,7 @@ static void alc_fixup_headset_mode_alc255_no_hp_mic(struct hda_codec *codec, struct alc_spec *spec = codec->spec; spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; alc255_set_default_jack_type(codec); - } + } else alc_fixup_headset_mode(codec, fix, action); }