Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3999909pxp; Wed, 23 Mar 2022 09:29:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv1BRVJkVPmcNzMgszmXMwgSxZ4Z53JzYpVsKP9ZVo0dOrdMmW1w1NKYH2j2sI07Uw/LXD X-Received: by 2002:a17:906:53c7:b0:6ce:6f32:ce53 with SMTP id p7-20020a17090653c700b006ce6f32ce53mr927614ejo.352.1648052972657; Wed, 23 Mar 2022 09:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648052972; cv=none; d=google.com; s=arc-20160816; b=XSSVG4LEWNQgkOmVe5TOb15J2W2gRpRxwtowdEaviPJdwzrkStR9GhQvBctidgIjx2 geganNXRF4SaN3ZcASLl72hfgoAhOTgckuzkwNQc/e2G1oLM69YxD4JDlSjcW7/cbPk0 LNdaxd5bkv6DWqEnb2PT15RiZ6t7NN/zFlFZ99Odo7EOajWGHtWlsV/S50AEHmaPi5/A qU8LEJkO+puTDPseDKpaqLvtS8DjGFOMmvFJP2GVXQbbxn7gx46/kRxiBwv8XI1zWcAk 8XmV96FrOsxyRPWv4026AAxE6Uw/R3zd4k6reFdLToxTNmHg78NIUZzb0r0wnfUCG0DH nOOg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=t/gIWbrFIeUs9lIXPjB+8KVuHGKfVEEHJnT4Li9xa8I=; b=eY+Ci9hSMF60Fqt0BhIOyOFCsPrd35QXbKSQoW4DFjzrTCtudhsJno89uTNoH8k6V0 T+RkV0PrJvrk4zPphGuppqE2jGPw9f0HyUfyFg9L1rIWBk7CxnxeLkZ9EJfClOh9CTzi eF5KcuS7/aUZ/uhcNzlJ26OgPo+WKX/HAiou8sjMyxf5wyHciEX8XyP5qx1HSfJCfNUo PeMxo8iq3CANoce6IeHlgXlI7M+Pf0rhhr77gHn68m4GI/iTmmcQ4Sf47LnJOhpqS4pZ I2GPRUvj3FDwfH1mubFkqo64SorIzoeDRie/r3IJXBq8O1YRmkOn3EgI4oeZblATnx+h C8ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=SBS2lIuO; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f21-20020a50a6d5000000b00418c2b5bddcsi16204230edc.190.2022.03.23.09.29.06; Wed, 23 Mar 2022 09:29:32 -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=@cirrus.com header.s=PODMain02222019 header.b=SBS2lIuO; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238514AbiCVPUm (ORCPT + 99 others); Tue, 22 Mar 2022 11:20:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238384AbiCVPUW (ORCPT ); Tue, 22 Mar 2022 11:20:22 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 933895BD18; Tue, 22 Mar 2022 08:18:55 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 22MAwx97011964; Tue, 22 Mar 2022 10:18:33 -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=t/gIWbrFIeUs9lIXPjB+8KVuHGKfVEEHJnT4Li9xa8I=; b=SBS2lIuO9N+/MJGmp4DGKT+md5CDYkGHdaeA6XJMkj/b5DbKwnq7H/Cf7mTav3TjxxC8 43aO9iTgfkopOiOf3tJ8yOFLpSrj1E+3kr7UvH6WuFrB3u0mzi46oz85/Mto30j0mvk2 QUWFY2HM2DOHTdgVnIlRLo1ClAluITfb4nLnfm/y5palFt6DdjPoAlp9Pz/DPsaZ1IuJ rlTbmCTON7H/mlhCTyt6bat2QGusyGK0MMT/y7sB8AcJaa5d9jaKQbyOqkq4RYoezsHu hGDX2jgLqRo+HcQOtDEmAEyul+ejAixhDhs8IccaGgdeBTTvqpdp+EaLm7Q3n32llQwA iw== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3ewck1cb46-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 22 Mar 2022 10:18:33 -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.2375.18; Tue, 22 Mar 2022 15:18:31 +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.1.2375.18 via Frontend Transport; Tue, 22 Mar 2022 15:18:31 +0000 Received: from aryzen.ad.cirrus.com (unknown [198.61.65.125]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 2F3E0477; Tue, 22 Mar 2022 15:18:30 +0000 (UTC) From: Lucas Tanure To: Liam Girdwood , Mark Brown , Rob Herring , Jaroslav Kysela , Takashi Iwai CC: , , , , Lucas Tanure Subject: [PATCH v5 00/16] Support external boost at CS35l41 ASoC driver Date: Tue, 22 Mar 2022 15:18:03 +0000 Message-ID: <20220322151819.4299-1-tanureal@opensource.cirrus.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: QSUQrxhAm6eOeHid3RiILi13Lrg6IOn7 X-Proofpoint-GUID: QSUQrxhAm6eOeHid3RiILi13Lrg6IOn7 X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Move the support for CS35L41 external boost to its shared library for ASoC use. This move resulted in cs35l41_hda_reg_sequence being removed, and its steps were broken down into regmap writes or functions from the library. And hardware configuration struct was unified for its use in the shared lib. While at it, some minor bugs were found and fixed it. v5 changelog: - Fixed wrong indentation at Documentation patch - Use of consistent prefix v4 changelog: - Separated GPIO 1 and 2 function enums v3 changelog: - Remove patches already accepted - Improved logic in documentation patch - Documentation patch goes before its code - Fixed missing Signed-off-by - Fixed subject for HDA patches v2 changelog: - Instead of removing the log, playback actions will log the last regmap access. - Documentation patch with the correct subject line and fixed bug reported by Rob Herring on the provided example. Previous versions: v1: https://lkml.org/lkml/2022/3/3/759 v2: https://lkml.org/lkml/2022/3/4/743 v3: https://lkml.org/lkml/2022/3/8/975 v4: https://lkml.org/lkml/2022/3/17/267 David Rhodes (1): ASoC: cs35l41: Document CS35l41 External Boost Lucas Tanure (15): ALSA: cs35l41: Unify hardware configuration ALSA: cs35l41: Check hw_config before using it ALSA: cs35l41: Move cs35l41_gpio_config to shared lib ALSA: hda: cs35l41: Fix I2S params comments ALSA: hda: cs35l41: Always configure the DAI ALSA: hda: cs35l41: Add Boost type flag ALSA: hda: cs35l41: Put the device into safe mode for external boost ALSA: hda: cs35l41: Mute the device before shutdown ALSA: cs35l41: Enable Internal Boost in shared lib ALSA: hda: cs35l41: Move boost config to initialization code ALSA: hda: cs35l41: Remove cs35l41_hda_reg_sequence struct ALSA: hda: cs35l41: Reorganize log for playback actions ALSA: hda: cs35l41: Handle all external boost setups the same way ALSA: hda: cs35l41: Move external boost handling to lib for ASoC use ASoC: cs35l41: Support external boost .../bindings/sound/cirrus,cs35l41.yaml | 44 ++- include/sound/cs35l41.h | 59 +++- sound/pci/hda/cs35l41_hda.c | 295 ++++++------------ sound/pci/hda/cs35l41_hda.h | 27 +- sound/soc/codecs/cs35l41-i2c.c | 4 +- sound/soc/codecs/cs35l41-lib.c | 190 ++++++++++- sound/soc/codecs/cs35l41-spi.c | 4 +- sound/soc/codecs/cs35l41.c | 166 +++++----- sound/soc/codecs/cs35l41.h | 5 +- 9 files changed, 443 insertions(+), 351 deletions(-) -- 2.35.1