Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1152273pxm; Thu, 3 Mar 2022 11:20:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUVLKQRBe8eh6yDRgZnyMkV75yIqqQdVWH+aI637rjMfEOsQg3HjTYPN2wbCkdcwU/jkTp X-Received: by 2002:a17:906:8616:b0:6ce:36ab:a289 with SMTP id o22-20020a170906861600b006ce36aba289mr27790269ejx.127.1646335202212; Thu, 03 Mar 2022 11:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646335202; cv=none; d=google.com; s=arc-20160816; b=AEOwwsIFlI8D1lQ9QqjgiL25dmdTC9oRqmYkfGUb4hR6zwo49UYKKat+k6hfMd5Llx ry+4cywaqmXdknnC+aEtPSKqwxdyudLC2oE1vDH34iQAzW2Yo0sIWlQO55rHw9dFckcx XQ6dnBVFY4/7x+VaaDWidLQVeSqzpZSnz/b6ZfMMtgexLgR66jcQg7kHJVC/6PUPiONf aJCwexoKS1onE91guya9X9Sjwdb3gHQtK0ceiy54wpU3S2Udmq65aVuhO/b5cmXCagVM OQ5BTpUeo9ijXP8YxH4R+yVnmtqjf6rYq4osjvUXOygI0r3ab1HT/wDX/L455BqKBVha cktg== 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=cnANgRnNMxthB+Az/dRLrs4+S0q0VAMFd2idCCcyUx8=; b=xZXbm8iD5CNPDGaFJdnpzHQnAKMgqQPMNvUuPipN4cekQdJ4VP088rNG8Rydi56Lwn 5XB5Gql21gS8KOc/BXEdHdkS9r3Vw7CA7WYJcUW5DZK8jtPVqBtFXyBHigXH09P11vr8 TvGN6jDcKFF6G6zGBMEh+voAxn8gTM/C6aPyaiGTSXdlb04/KpytZLR7TTDPvpSIl881 dq+4eNCQMBOVoJdzAy2W3zoGz0B1TKFU7O3GW2+bdeJZoDGBQpBntYfZiy9Vd10XkteF HI0P0/lF3KALagpvRQy9R+57UgwC6Mu+ouL4Idg6Rl/W3sZyrI09YXxe6E+ojNG9+3yH yLOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=SbrtGi9j; 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 g4-20020a17090669c400b006cfea60027bsi1727668ejs.903.2022.03.03.11.19.39; Thu, 03 Mar 2022 11:20:02 -0800 (PST) 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=SbrtGi9j; 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 S235534AbiCCRcq (ORCPT + 99 others); Thu, 3 Mar 2022 12:32:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235430AbiCCRcK (ORCPT ); Thu, 3 Mar 2022 12:32:10 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83E4219E0AB; Thu, 3 Mar 2022 09:31:20 -0800 (PST) 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 2234AADw028599; Thu, 3 Mar 2022 11:31:08 -0600 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=cnANgRnNMxthB+Az/dRLrs4+S0q0VAMFd2idCCcyUx8=; b=SbrtGi9jspS/LEHsQnK5k/SqWDU0/GbrU1zCBvCbOiDdBnoH/S9P+kSq7mS9x712fCoy 6RkAttrWIHmvVjBx5ucGCt1B0wGI+rHZF3nuEZbOhD1CkLoudQvtS6Ase7ZYgcoOKeRa 08JfhVXTdwlv4A+jeBbFVTOZGsEU4Wh0+GuM3e6jDwX2nwDC7NAyfP9HUKeIAHzEzRQf y3ijhju/ApAJLjB7l+eGI8oTn0OYQRDZ5oH4/hk906oLYogclie2rseGo53y+m5/0wD2 FOHNC1Hv+6T28M4zTgSuVgd3IEjNw4nP0qLaEN7tPbIzZ/gmRjwPa7HXK5LG2coerTXJ rg== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3ejncq8ybk-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 03 Mar 2022 11:31:08 -0600 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; Thu, 3 Mar 2022 17:31:07 +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, 3 Mar 2022 17:31:07 +0000 Received: from aryzen.ad.cirrus.com (unknown [198.61.65.198]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id ECF3AB1A; Thu, 3 Mar 2022 17:31:06 +0000 (UTC) From: Lucas Tanure To: Liam Girdwood , Mark Brown , Rob Herring , Jaroslav Kysela , Takashi Iwai CC: , , , , Lucas Tanure Subject: [PATCH 13/20] sound: cs35l41: Enable Internal Boost in shared lib Date: Thu, 3 Mar 2022 17:30:52 +0000 Message-ID: <20220303173059.269657-14-tanureal@opensource.cirrus.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303173059.269657-1-tanureal@opensource.cirrus.com> References: <20220303173059.269657-1-tanureal@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 60vMfnR0GnMQSWeoaeHXc0Rk7eZROQIh X-Proofpoint-GUID: 60vMfnR0GnMQSWeoaeHXc0Rk7eZROQIh 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 Boost enable is the default option from reset, but with external boost support, internal boost must be disabled. Add the enable of boost in cs35l41_boost_config to centralize the internal boost configuration. Signed-off-by: Lucas Tanure --- 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 3fae34a232cd..34ba163874a6 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