From patchwork Fri Sep 3 21:26:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rhodes, David" X-Patchwork-Id: 12475163 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C16FC433EF for ; Fri, 3 Sep 2021 21:29:56 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4E5ED60E93 for ; Fri, 3 Sep 2021 21:29:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4E5ED60E93 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 280AB18E9; Fri, 3 Sep 2021 23:29:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 280AB18E9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1630704593; bh=80CWatMJnDl4j8YByeyBLu+d8LT1e69+cBK3rtkg+KY=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Zi2tD6X9fI+F8bci0lnippIZzyWppD+EOB5uE7pAhV6wWVRE61hs17CsDxWOvS5KA zyiJF8ZsA92TFRVMbhlE0EvkO9KOybMab5LqoALtKkyzUhpnFMoVBOwGYTn85AHO18 xfT9w38bhpgiyNlKyH47GacFvVmh3YP+YcsX3zpg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 990DBF80088; Fri, 3 Sep 2021 23:29:02 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3844FF800B5; Fri, 3 Sep 2021 23:28:34 +0200 (CEST) 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 alsa1.perex.cz (Postfix) with ESMTPS id 415FDF800B5 for ; Fri, 3 Sep 2021 23:28:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 415FDF800B5 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="giW83shY" Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 183CeU7G021630; Fri, 3 Sep 2021 16:28:23 -0500 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=7GR8vWfF8Vj23srb/s0wK4/nAvxtIHwD9KLeLONvQr8=; b=giW83shY9E5ouo8O68O+UvphttX2eUuzJymzn0hN6vvTTxJgAMYUV6c+on6cMFJ8+7h8 TOwu/r9GXZTPvweXJEv/y0f0KULsq/8Ur44NCjHW8+nzpQ7K/9dHpCpPXvL2RYsRLuUs WOSyryW11rhffsx8KKa3mQAd/5XX6uFUAyjeugsF89n4oqPLcd9taUZ01tWVZ2ssoZI9 fKbU3MRFGvWNNkh+ioT4hj13O+nx5dbMV9u6tcuhfkAi0nltcnWT9KZrFlwO1h89KSb0 yMGJP1s4uTeusRXs9cd593XdyTMnvNJ0v4p3wFLBVzX604YPzpoT/KL++FrZatdx0Qlc Lg== Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 3au71jh9ay-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 03 Sep 2021 16:28:22 -0500 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_128_GCM_SHA256) id 15.1.2242.12; Fri, 3 Sep 2021 22:28:20 +0100 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.1.2242.12 via Frontend Transport; Fri, 3 Sep 2021 22:28:20 +0100 Received: from localhost.localdomain (macC02XQ1DJJG5K.ad.cirrus.com [141.131.64.124]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id BD1D6B13; Fri, 3 Sep 2021 21:28:11 +0000 (UTC) From: David Rhodes To: , , , , , , , Subject: [PATCH v6 0/2] Cirrus Logic CS35L41 Amplifier Date: Fri, 3 Sep 2021 16:26:57 -0500 Message-ID: <20210903212659.2011303-1-drhodes@opensource.cirrus.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: lv7VdIqZLPMyeBGYrfmeqfwSxLoQwI_r X-Proofpoint-ORIG-GUID: lv7VdIqZLPMyeBGYrfmeqfwSxLoQwI_r X-Proofpoint-Spam-Reason: safe Cc: David Rhodes X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" ASoC driver and devicetree documentation for a new Cirrus Logic amplifier CS35L41 v6 changes: Fix header comment style Remove some unsafe mixer controls Remove some fields in regmap readable_reg Remove unneccesssary regmap setup in component_probe Remove extra whitespace Reorder in probe: handle_pdata before regulator_enable Set initial analog gain to 0dB David Rhodes (2): ASoC: cs35l41: CS35L41 Boosted Smart Amplifier ASoC: cs35l41: Add bindings for CS35L41 .../devicetree/bindings/sound/cs35l41.yaml | 162 ++ include/sound/cs35l41.h | 35 + sound/soc/codecs/Kconfig | 12 + sound/soc/codecs/Makefile | 4 + sound/soc/codecs/cs35l41-i2c.c | 114 ++ sound/soc/codecs/cs35l41-spi.c | 143 ++ sound/soc/codecs/cs35l41-tables.c | 597 +++++++ sound/soc/codecs/cs35l41.c | 1561 +++++++++++++++++ sound/soc/codecs/cs35l41.h | 775 ++++++++ 9 files changed, 3403 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/cs35l41.yaml create mode 100644 include/sound/cs35l41.h create mode 100644 sound/soc/codecs/cs35l41-i2c.c create mode 100644 sound/soc/codecs/cs35l41-spi.c create mode 100644 sound/soc/codecs/cs35l41-tables.c create mode 100644 sound/soc/codecs/cs35l41.c create mode 100644 sound/soc/codecs/cs35l41.h