Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1239141pxp; Thu, 17 Mar 2022 05:58:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+z/nHsSe7du3tXgT3BmjAlD1r1yH21XhEy/a6gBfPOk7t80wyUCTIqPxO266HQe8yJg07 X-Received: by 2002:aa7:8432:0:b0:4f6:6dcd:4f19 with SMTP id q18-20020aa78432000000b004f66dcd4f19mr4741521pfn.53.1647521894272; Thu, 17 Mar 2022 05:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647521894; cv=none; d=google.com; s=arc-20160816; b=USOFTAEORskFrex0lgtBjUfRFLWlRtDkfodRKC3QjdzcQUMUlbMrnJkMqkbbeAWhnS S88g07hWQJAELM+CmFgUpbC+RX8Pr95sIu/oTWxYNj0v2Mo+I86YhkxfiDE8dmOh+ODa vmMk53MtXEmC/qdLQ4AsXaqw8tH3HYaDpAQWOtXlMZbWDYLPnEYXe5ceRxees43iTCKG fiH0iCSt0MLE3trzMYFeL79j4QlPP5/ifWtRQkpMwb0eZGByjxx0uwa/MTtv6uVN6C5g 4U9aSq7PAMBa5kEN4MIoZoNw4np9L82PMEeL3RiFZJW80ViqsmhiOFV6TNP2CdolzoIB c40w== 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 :dkim-signature; bh=pAESqVmG+wUGs5ZQth8dL+0iG0WS7AgiO/N1TkpwKJY=; b=IZP8qxMcFJCjoz7WHc6VKt8asdZu5HxIOk1v/X1RLBTYsVaZTUNxJ68ZVqevFYKWCS d13y63jnIu4YVoWA8XlTpjhP63uEYo6kbIEgbTxfiNon1moxyPdLsvWvXFcCb/KLYug2 Wr8DS0Zp7n2uguIgh5Xkle6Ms+ZkCFD1gxRyX3Ni0Hc5jjDVaOiDYxS4TvdGJTAjLgZ/ F8fogGcHB7rRmM/q8YUBungquXyOrMyi5W7EW18ogBzYRfPAw5+NUdjalUOJrd5vtJug gQwyKmVKonNZcecAUFA1bldSanOelLqK6hbhfYl1DooOBl3ltnMXE28JytQAP3YyEAhz 37ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=A7KURNvR; 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 q12-20020a656a8c000000b003816043ef3dsi2106961pgu.306.2022.03.17.05.58.01; Thu, 17 Mar 2022 05:58:14 -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=A7KURNvR; 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 S231950AbiCQJd0 (ORCPT + 99 others); Thu, 17 Mar 2022 05:33:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231879AbiCQJdH (ORCPT ); Thu, 17 Mar 2022 05:33:07 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDDF31D4C2C; Thu, 17 Mar 2022 02:31:51 -0700 (PDT) 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 ESMTP id 22H7ecZq022935; Thu, 17 Mar 2022 04:31:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=pAESqVmG+wUGs5ZQth8dL+0iG0WS7AgiO/N1TkpwKJY=; b=A7KURNvRYWuEeHgj17//PyT8pZHkQP9SW6O55H43pMyzKt+a9Q+qdfB54AMuRiHut1xI ZkysmvHBdP/rkJISD7OmP4URrXCjiGmK3emNWejdAGBBHwz13s4/q9jeUFsjmAh9gYpm Z5TsOMqZkBKRzRHRqtJlZRApcTvlfTrzlRkjQ3lDh2fy3Q9KFfKm/OD5Ha8Ox87uxeym rdov829WRbv4hZiwLrlSt/EwYsZ057+MWnNkIBNIf7X7p+G/ZrFVHtz/HUxE17QM/3eV 1F+QVVhNGcNxYY3bRF8kyfl/UnzdyThH726q6gZjyqOePJvY/J5ojFULR1gpt5/AWwwC Og== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3et5yp475f-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 17 Mar 2022 04:31:34 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 17 Mar 2022 09:31:32 +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; Thu, 17 Mar 2022 09:31:32 +0000 Received: from aryzen.ad.cirrus.com (unknown [198.61.64.95]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 9EBDD459; Thu, 17 Mar 2022 09:31:32 +0000 (UTC) From: Lucas Tanure To: Liam Girdwood , Mark Brown , Rob Herring , Jaroslav Kysela , Takashi Iwai CC: , , , , Lucas Tanure , Charles Keepax Subject: [PATCH v4 09/16] sound: cs35l41: Enable Internal Boost in shared lib Date: Thu, 17 Mar 2022 09:31:13 +0000 Message-ID: <20220317093120.168534-10-tanureal@opensource.cirrus.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220317093120.168534-1-tanureal@opensource.cirrus.com> References: <20220317093120.168534-1-tanureal@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: rSJATEnocgMyCmFI3RYCJNxSg9VdCgKT X-Proofpoint-GUID: rSJATEnocgMyCmFI3RYCJNxSg9VdCgKT X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Internal Boost enable is the default option from reset, but with external boost support, internal boost must be disabled. Add the enable of internal boost in cs35l41_boost_config to centralize the internal boost configuration. Signed-off-by: Lucas Tanure Acked-by: Charles Keepax --- sound/soc/codecs/cs35l41-lib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/cs35l41-lib.c b/sound/soc/codecs/cs35l41-lib.c index eeeaeaa0db82..03039d8488b9 100644 --- a/sound/soc/codecs/cs35l41-lib.c +++ b/sound/soc/codecs/cs35l41-lib.c @@ -1036,6 +1036,9 @@ int cs35l41_boost_config(struct device *dev, struct regmap *regmap, int boost_in return ret; } + regmap_update_bits(regmap, CS35L41_PWR_CTRL2, CS35L41_BST_EN_MASK, + CS35L41_BST_EN_DEFAULT << CS35L41_BST_EN_SHIFT); + return 0; } EXPORT_SYMBOL_GPL(cs35l41_boost_config); -- 2.35.1