Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3505319pxp; Tue, 8 Mar 2022 16:09:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwr6p5bjmEWh/m684OeTSOGk/8evpN+TrpHAAhV3OxpK9fmfIKOvMXs4NiWrGNbbnNTWvt5 X-Received: by 2002:a17:902:da85:b0:151:ac97:4f74 with SMTP id j5-20020a170902da8500b00151ac974f74mr20409674plx.73.1646784594351; Tue, 08 Mar 2022 16:09:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646784594; cv=none; d=google.com; s=arc-20160816; b=JZYkXNpQFGlOg74et2R9Lm4xVbqcMz490Nosw8/2eYrg/6WU3AoIw367SaP9zAJvLY pcnMihuq4EeAgjyiS7ty408mpsxs4H9uHUVfPesDCD0iY66ZH0JmJ+ggXP4wkL9XzbGa vyi+tUYXjEAM4MfcOisPiEo95RnVyqKruyKxbYIxObJXV6Vb6I8YpGehuH0/5zScOViv lJ5wjBNgc2vOgztqBCihuIuXmKvXyZGzCjDPPzJBnEbePkX/Y3tpNmEyypjWTI8Osmr9 EpGDnHjbkXr76z+Pi1lk9uYAdlPGrY7p21WptU6fMm3DFpcoRNOjSwEiBjP2KnbJtuvc WfNw== 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=Jd1vlA3TW5CNvswqK6WskP41SKlJfCd++CPAv5V93os=; b=LJAb1I2shot8H8eM/oJ6/n+HlZJx1W1gcxFkxl51KjoUe33lvH3rwHtz9efteStmAR uhptmXRJwqop8twz6O12cXLqWVHLgEU2KCkbYTAwHuCFJI2a+D4x76H0Fgt9t0/CQo0H wrnrQbnXPMv1rmQWgN1t4VI07k+l1HvWFiAo8ep6kCBgMjyLZzo/nkUzax12snbsaLOs OJ9Q40xWwm69LugjiccQa+OYlouawnkGi6pwjR//siuRn9u1CqiO2HaYUTem5L/fmnE9 9IxD2li5gOpOYvwfM1vOsMTWWebDeYs1U1rkQXrehs58wG6MSr3+zrmIIsYs4T9WwTjN OFKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=SZ4FXPSK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d7-20020aa78e47000000b004f3d8bf00a8si239845pfr.365.2022.03.08.16.09.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:09:54 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=SZ4FXPSK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0EFE5EBACF; Tue, 8 Mar 2022 15:39:58 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348842AbiCHRUJ (ORCPT + 99 others); Tue, 8 Mar 2022 12:20:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348819AbiCHRUD (ORCPT ); Tue, 8 Mar 2022 12:20:03 -0500 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 732B253E3A; Tue, 8 Mar 2022 09:18:44 -0800 (PST) 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 228FxhGY010224; Tue, 8 Mar 2022 11:17:46 -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=Jd1vlA3TW5CNvswqK6WskP41SKlJfCd++CPAv5V93os=; b=SZ4FXPSKiWOtMm8+TvoNWPYQ+rVexUv11WQie3RYrqdpE+ADkt6nOfwrVvffFx/LSCnV voHqDHdUondrUPbdRZNop1GhtZPCH0lj3Gh77QOwrg6QrphIB/tPmJfOIEJgwHlCrsoR j427JnOhq9r42jay7JmzH6JorlTW5lESoMSq+OOqQUMLs2j+tgC/O8q6ZK7BAIssaihg sUTg/5zv2CiU+tg/J1ZwtfbxuxfUP/+SVLRLgNlZID6rO8CbQTN8mMKuRaGp23r1t52B kP2DSuq34EIZhpsNkUdfq+e+3VS5gOvZnk6bSi+XLqd6y0ARxLnUkEeVqcMVyPC+IMR0 Kg== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3em656mh5v-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 08 Mar 2022 11:17:45 -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; Tue, 8 Mar 2022 17:17:34 +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, 8 Mar 2022 17:17:34 +0000 Received: from aryzen.ad.cirrus.com (unknown [198.61.65.38]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 6FF0C2A1; Tue, 8 Mar 2022 17:17:34 +0000 (UTC) From: Lucas Tanure To: Liam Girdwood , Mark Brown , Rob Herring , Jaroslav Kysela , Takashi Iwai CC: , , , , Lucas Tanure , Charles Keepax Subject: [PATCH v3 09/16] sound: cs35l41: Enable Internal Boost in shared lib Date: Tue, 8 Mar 2022 17:17:23 +0000 Message-ID: <20220308171730.454587-10-tanureal@opensource.cirrus.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220308171730.454587-1-tanureal@opensource.cirrus.com> References: <20220308171730.454587-1-tanureal@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: L02au7dSh5HFZHcJXrInoVYjbNT35htJ X-Proofpoint-GUID: L02au7dSh5HFZHcJXrInoVYjbNT35htJ X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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