Received: by 2002:a05:7412:8d06:b0:f9:332d:97f1 with SMTP id bj6csp3211rdb; Mon, 18 Dec 2023 07:26:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0j+beQDz8/vBN2aIHqQ2tsUdsKL/JLItiKrHMbnnroZv4SaLY1IBTj/dfnU/141lyfZWv X-Received: by 2002:a17:902:e789:b0:1d0:6ffe:1e6a with SMTP id cp9-20020a170902e78900b001d06ffe1e6amr8803129plb.77.1702913187123; Mon, 18 Dec 2023 07:26:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702913187; cv=none; d=google.com; s=arc-20160816; b=x+aZYKnTIYcfnXn46rtOPxvHOxUa5+IeRvHeNjKGGq44m5uKG/QtpQwCiiC6AuCfad +k03rrXsWPgrsnq0/oDjkrFWDQunbNklv8RT9V+mkUf4LRFpsWQZgxFl2uUWBYGGvY9s TXeW10swnBU8O9Nnmkgq+h01R154BPG+vb+hkhzZXwZkCQMscj0xaJdUlj1YkQF6wFz8 kMlI1V+4EBzOmqgIrgJAU5NFupjrsbZYTjA8tXkn+pvUYHL53unkN2KX5BmOATUME3jQ QFNNGQko9yig12WYPOx7aPlnwL019pg6KnAa3Dznp172R1C/jVxXisZ0rsUG8ifSuyR1 Ze+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=dunokV4spakSd7d2fILB4jcGfewzshlj//5mWZatk7M=; fh=CIzheBTUL5fyGH3nbQHnzCXjO4Ty5MYCLcLsWbV53xg=; b=L8j5PXpURq6CLw9y/8BcJfXSYaLLHxRq23+Z71JUlt+yq/C9BtvEjRrwty4ydpyhfj S7iasLSddlZaqi9anT6eVzD00QZqPbB04eLC3lcAtGpHgY1iky8dR5felrgVxOd3uOl+ QEXrYSOkTUtv63vNQWIffY+6asnjoWzuK9S0/NX188pCq/gBfcCy9G0InBPCz6VTDxkW Xqm/2bcaLusVF69hRp/3HzwfeFtr4o6PUxizCIWahjEmCTv8yHKpmeDQ6Kkx0s286Dnj 6GQiBM3SBd789KFfODxGeMTvkxkmoqFQzLox7zX7GMwGMB60nJE//HNwbdJfew75esR6 Rwng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=Wm6IcXzh; spf=pass (google.com: domain of linux-kernel+bounces-3901-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3901-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x19-20020a1709027c1300b001d33a8a3df6si10876271pll.506.2023.12.18.07.26.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 07:26:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3901-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=Wm6IcXzh; spf=pass (google.com: domain of linux-kernel+bounces-3901-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3901-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 45BE9286E74 for ; Mon, 18 Dec 2023 15:14:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 115044FF7F; Mon, 18 Dec 2023 15:13:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="Wm6IcXzh" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1F9A3A1B6; Mon, 18 Dec 2023 15:13:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BI8qL59016655; Mon, 18 Dec 2023 09:12:48 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=d unokV4spakSd7d2fILB4jcGfewzshlj//5mWZatk7M=; b=Wm6IcXzhaol1k7S4B avshHTAzPuA76hwx7sT3P1kSLTONNHDHniT+rrul14emGe5Mp7/SlUu95MoG3bcu RT7/K59DyhU3YqZ+jul+hE14wRncxEgdJVg9zyr+Y+ae3f/Vzz9hcZEayurhfOvw 5ELOCVzGo2oQD1hGcc1jtiTf4ZJCncLHBT67z57vbSEWfYw/Qcn7KDDJyVLd/MGg lAJZ6ym9ytk18WOJpUfXnwNzXn00+kefq5O22sXkGA3yE8K2h8dcGjGKMMKnW+Xu CHMiDRimLoSvJz3NZzojwYyRHKByzGtuDiD7BPanVd0YwsHWnHWVEUt/LbGIME9U 1zpdg== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3v196natsr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Dec 2023 09:12:48 -0600 (CST) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 18 Dec 2023 15:12:47 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.40 via Frontend Transport; Mon, 18 Dec 2023 15:12:47 +0000 Received: from sbinding-cirrus-dsktp2.ad.cirrus.com (unknown [198.90.238.77]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id E471615A0; Mon, 18 Dec 2023 15:12:46 +0000 (UTC) From: Stefan Binding To: Jaroslav Kysela , Takashi Iwai CC: , , , , "Stefan Binding" Subject: [PATCH v1 0/7] Add support for various laptops using CS35L41 HDA without _DSD Date: Mon, 18 Dec 2023 15:12:14 +0000 Message-ID: <20231218151221.388745-1-sbinding@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: QpRVrcYfWWlre1f6BRHgOCDEVys8zboe X-Proofpoint-GUID: QpRVrcYfWWlre1f6BRHgOCDEVys8zboe X-Proofpoint-Spam-Reason: safe The CS35L41 HDA driver requires various system defined properties to configure the driver for an individual system. For some laptops, these properties are missing in the BIOS. To be able to support these laptops, there is a mechanism in the driver to get this configuration from a lookup table, to be able to add or patch _DSD as necessary. However this mechanism currently only allows for laptops to be patched one at a time, however, in the case where there are many laptops which need to be configured generically, a generic function has been added, with an additional lookup table to the individual laptops, indexed by SSID. To support laptops using SPI without _DSD, an additional workaround is needed to be able to support the SPI Chip Select GPIOs whose resources are defined inside the _CRS for the Speaker ACPI Node. This workaround only works for SPI laptops which contain up to 2 amps, since the SPI controller would not allow more than 2 amps to be instantiated without the cs-gpios entry in _DSD. These patches add support for various ASUS laptops without _DSD, but the framework added here allows for support for more laptops in the future for other manufacturers. Support for laptops without _DSD from other manufacturers is coming in the future. Note: for systems which use modified _DSD to emulate the missing _DSD, these patches are incompatible, and the modified _DSD must be removed in order for the support through this framework to work for those laptops. Stefan Binding (7): ALSA: hda: cs35l41: Add config table to support many laptops without _DSD ALSA: hda: cs35l41: Support additional ASUS ROG 2023 models ALSA: hda/realtek: Add quirks for ASUS ROG 2023 models ALSA: hda: cs35l41: Support additional ASUS Zenbook 2022 Models ALSA: hda/realtek: Add quirks for ASUS Zenbook 2022 Models ALSA: hda: cs35l41: Support additional ASUS Zenbook 2023 Models ALSA: hda/realtek: Add quirks for ASUS Zenbook 2023 Models sound/pci/hda/cs35l41_hda.c | 2 + sound/pci/hda/cs35l41_hda.h | 5 +- sound/pci/hda/cs35l41_hda_property.c | 362 ++++++++++++++++++++++++--- sound/pci/hda/patch_realtek.c | 39 ++- 4 files changed, 353 insertions(+), 55 deletions(-) -- 2.34.1