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),