Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2009267rdb; Tue, 3 Oct 2023 07:46:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFC2Z3wY3OMif/O2u209K2zZ7+k1DTE97nUnoC//XiRDGE1JkH32RNXmO2WIXe+PPHa6/e1 X-Received: by 2002:a05:6a20:748c:b0:125:3445:8af0 with SMTP id p12-20020a056a20748c00b0012534458af0mr4483996pzd.7.1696344387017; Tue, 03 Oct 2023 07:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696344387; cv=none; d=google.com; s=arc-20160816; b=Q0kzfGlY8GhEnorAWkyIpvmd0DfQZcDGlGq/HeN3ms3Y25l0E5KOaKwpfDIW2J9+0T MwwU7NT3anpm1orscMc7uHA2n8m4wFa7txKmD53y3qJTvqtsMKNQ8HDX9pMPdYcb45kL ipY7Bsa64vg8pwJeqL9KB3+cYgGoys372z2HD3GFq7ZovvL2Y80HLEE+AlGUGEdJVmoD rmGxL9+4PJh1eL797MnwrSEXqJx8e9RoVU/dDg16SDTcrG0yA+yRLwa/E3fv1XHrAWwH 9AEC7cqtqAM6h7nr/KHQILKYvY4taaxnv4wvcX+haVuK0J7YW7H1ROUvlQG1ghIbXZ2z coyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :cc:to:subject:from:date:feedback-id:dkim-signature:dkim-signature; bh=cfLg0FTt870s90m6D5NuIv5XQXp/nmAmNe4tSouovjA=; fh=0//MYZf/xw1gIihDrlkhC+z6R2KRD5BknRTejlcQMOs=; b=QlmZmLYJxSo+Maq8nL5Bkik2DDo0iKmiIjWnuCqS0tGhX3PqWJiGb4jEflFea3IlEg tIbabkeFrXdKs1qIQyeahoL/fE8+1Iv9C8YnqylR8SBME+IcfLoqpK2pstW+Dtg0pdp5 5+eygXgo6EafBEdOnmGFoT5pYw3uRPrxqF0KURvBYNTVJKiwvmwq+RJOZCEkugO1hHA2 5LnRQ6yc+Ar3LPZitQezlGYFLLSkzCBPewh8HaLoNYEl24LtZYTrf4mhPlZlB7RSgVCI E5pOS6KyxLiFc5HhZm3ZytiomdIQOy+oZYfHaWvvfa0GgVgiYbNmI+Dsr8XSvU6hJyYE 4YIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=eZGA4ngR; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=EHEfnzl8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id f21-20020a056a00229500b0068fe12efae9si1689231pfe.15.2023.10.03.07.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:46:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=eZGA4ngR; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=EHEfnzl8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1645C80E762A; Tue, 3 Oct 2023 07:46:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240135AbjJCOqK (ORCPT + 99 others); Tue, 3 Oct 2023 10:46:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240106AbjJCOqJ (ORCPT ); Tue, 3 Oct 2023 10:46:09 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C0A0B0 for ; Tue, 3 Oct 2023 07:46:03 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id DE2AC5C0358; Tue, 3 Oct 2023 10:46:02 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 03 Oct 2023 10:46:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ljones.dev; h=cc :cc:content-type: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=1696344362; x=1696430762; bh=cf Lg0FTt870s90m6D5NuIv5XQXp/nmAmNe4tSouovjA=; b=eZGA4ngRNhIErLzsV+ HXf0v/3NAWge7/pxxpnYxZPncEJo/AQHoE6kDY1hGgtiy+AeDHg+6D4XvG4sQF0/ t812v+As9dan2YmvlfE1dlEeJG1KMfufOsBPc+0xTVddG69V/hhOn6hZysFk9ndv dkmGjuzeWJCj1UChoGXuocv1xuuJ4wKx34e41qVHEecCLtqOLcDCyvGX8i6q7GD7 y8O1F78DM/ePjldP3mxUDJYS4fWCpKcgUfTk+7PKpDxYSTwo20xX34NXGBCnmEM6 fjEy0rWGAlUXA2+d7oyKjQ9G3jKk9IeMctt3uv6jklEOc3pPbn9GybTYulZKpehV p/zw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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=1696344362; x=1696430762; bh=cfLg0FTt870s9 0m6D5NuIv5XQXp/nmAmNe4tSouovjA=; b=EHEfnzl8tlq/P4QeGBl5+lJnwmOAm LaMc4FAXeSOADDplXL2nGQWraiko89Gq3BNVX5E/xZd1NKLRmp72U+M+XTjfbYnY eng1tnSOGTKDmuV0GRJfRTHROHwKVp8Yk/UrJM9oXe6euREwVhNaMYDhO8m7Um34 1DiD0vlHC5k1E0Buii5WjEO6n3girOGj0H7Gfaoso0xleD4SI3Cb0PI5ZG/yM2gN o9mwejAaM5X5Hfn4vbjNP5Mv3xM4etDWmEkkvK1aVPEGnVcNzxn1cW6R1uz286Md qOGf1hfy0SOW8GkaGj7TP+IHgX+dS118qBsf5BB90tI9A6C0D8j0D0rEA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfeeigdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffuvfevkfgjfhfogggtsehttdertdertddvnecuhfhrohhmpefnuhhkvgcu lfhonhgvshcuoehluhhkvgeslhhjohhnvghsrdguvghvqeenucggtffrrghtthgvrhhnpe dvvdegledtheefieejgfevgeefiefhtdevteefteduhfevtdefleethfetgeeludenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehluhhkvgeslh hjohhnvghsrdguvghv X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Oct 2023 10:45:57 -0400 (EDT) Date: Tue, 03 Oct 2023 16:45:44 +0200 From: Luke Jones Subject: RE: [PATCH] ALSA: hda: cs35l41: Support ASUS 2023 laptops with missing DSD To: Stefan Binding Cc: 'Takashi Iwai' , tiwai@suse.com, james.schulman@cirrus.com, david.rhodes@cirrus.com, rf@opensource.cirrus.com, linux-kernel@vger.kernel.org, 'Jonathan LoBue' , patches@opensource.cirrus.com Message-Id: <8OJY1S.X7HJ24U4D5AG2@ljones.dev> In-Reply-To: References: <20230823011008.13146-1-luke@ljones.dev> <87v8d6cm30.wl-tiwai@suse.de> <87lee2ciqj.wl-tiwai@suse.de> <87il96cfnb.wl-tiwai@suse.de> <000601d9d5b0$8d6817f0$a83847d0$@opensource.cirrus.com> X-Mailer: geary/44.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 07:46:23 -0700 (PDT) On Thu, Aug 24 2023 at 08:31:06 AM +12:00:00, Luke Jones wrote: > >> >> The second member variable in cs35l41_prop_model_table is the SSID to >> match against. >> The Lenovo laptops in the initial patch didn't have different SSIDs >> so >> the entry was set to NULL for those. >> Future entries using CSC3551 MUST always have an accompanying SSID >> with this entry. >> Takashi was correct, the implementation is intended to also be used >> to >> patch incorrect DSD. >> >> We have a potential solution to workaround the SPI cs-gpios issue >> inside here, >> though the drawback for that is that it only works for laptops with 2 >> SPI amps. > > Can you provide me this so I can test? I have laptops with SPI 2 and > 4 speaker setups. Hi Stefan, Do you have any further information about the status of this in regards to the 2023 laptops? > >> I also took a look at the function for applying DSD properties for >> the >> 2023 ROG laptops. >> Unfortunately the one-size-fits-all approach will not work, some of >> these laptops are i2c >> and some are SPI, meaning the GPIO indexes are different for >> different >> laptops. > > Do you mean "spk-id-gpios"? For all the laptops I know of this seems > to be > Package () { "spk-id-gpios", Package () { > SPK1, 0x02, Zero, Zero, > SPK1, 0x02, Zero, Zero > } }, > > There is one laptop where it is One not 0x02 (the GA402N) > >> Some of the laptops do no have Speaker IDs. >> Also, no laptop other than the 2 I added already should ever use >> CS35L41_EXT_BOOST_NO_VSPK_SWITCH (in fact I believe all these laptops >> are internal >> boost anyway). > > Grazie. > >> >> We are currently working internally on adding support for the 2023 >> ROG >> laptops, so we >> ask for you guys to hold off on trying to upstream support for these >> laptops. > > Ah great. Thank you. I apologise for trying to rush things, but I do > have a discord server of over 4000 people, many of whom have laptops > with cirrus amps. > > For now I'm including a patch in my kernel builds with this mapping: > > const struct cs35l41_prop_model cs35l41_prop_model_table[] = { > { "CLSA0100", NULL, lenovo_legion_no_acpi }, > { "CLSA0101", NULL, lenovo_legion_no_acpi }, > { "CSC3551", "10431433", asus_rog_2023_no_acpi }, // ASUS GS650P - > i2c > { "CSC3551", "10431463", asus_rog_2023_no_acpi }, // ASUS GA402X - > i2c > { "CSC3551", "10431473", asus_rog_2023_no_acpi }, // ASUS GU604V - > spi > { "CSC3551", "10431483", asus_rog_2023_no_acpi }, // ASUS GU603V - > spi > { "CSC3551", "10431493", asus_rog_2023_no_acpi }, // ASUS GV601V - > spi > { "CSC3551", "10431573", asus_rog_2023_no_acpi }, // ASUS GZ301V - > spi > { "CSC3551", "104317F3", asus_rog_2023_no_acpi }, // ASUS ROG ALLY - > i2c > { "CSC3551", "10431B93", asus_rog_2023_no_acpi }, // ASUS G614J - spi > { "CSC3551", "10431CAF", asus_rog_2023_no_acpi }, // ASUS G634J - spi > { "CSC3551", "10431C9F", asus_rog_2023_no_acpi }, // ASUS G614JI -spi > { "CSC3551", "10431D1F", asus_rog_2023_no_acpi }, // ASUS G713P - i2c > { "CSC3551", "10431F1F", asus_rog_2023_no_acpi }, // ASUS H7604JV - > spi > {} > }; > > These are the machines I have verified the gpios and such for. I have a new version of this patch with all listed models confirmed as working, and with slightly different settings for some. The only thing missing in a solution to the gpio-cs issue. Can you please provide an update on where you are with ASUS support in particular so that I may consider if it is worth my time submitting the updated patch. > > Cheers, > Luke. > >