From patchwork Fri Apr 14 15:25:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Binding X-Patchwork-Id: 83494 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp475579vqo; Fri, 14 Apr 2023 08:42:39 -0700 (PDT) X-Google-Smtp-Source: AKy350aHwIWn1d5nYTw3edxZr94RBWKK65FSrKVyonHI2/0d6Or+7We/Rg3VfeMnI+pIPD5+53cF X-Received: by 2002:a05:6a00:14cc:b0:63b:6933:a30d with SMTP id w12-20020a056a0014cc00b0063b6933a30dmr3420120pfu.25.1681486959366; Fri, 14 Apr 2023 08:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681486959; cv=none; d=google.com; s=arc-20160816; b=PCwf6/rwJV61khrRAJy2RNqRY0DQT22NPeTmMKU0wMRTF2emaemQu6OD5XjPuRStRn 6xpL7BGdPo8R5cKnLluaTzQrdBzySYmPCZgfh0aYjoT7PHx/6799+djA1amj4f+utH4X KxNI+PF4c47PyiNhRJGXNoivVkN7NwT6ynxCVFZF2fyDRIoCMSWCyLDMt87paw1cu3us G8YGv0imwSb7/iyRLv2Q5vI95X67ego4Ze42HixvcCBoErwQrIAnsPIR6niPAXJqXIai 7o5pLKVjhT2zKuSA3YO5nWLC6Tj7ADltFdveYVi8s+uR2KreQrDRzr9nDnmnJmoPfprJ LOYw== 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=fjFs/7f3dFz2OTkn4kKsaTBEamc34d9Tzg4y7U6KXUM=; b=YO/oRk6wxulSeruoGxZk//EoUWzTjsSPkLST8TuDhK0BE5sM6lGgAxKPgEAO+ZWeCr IyFVOp3/SHoibslBzWe67M7cUzNjh/2AQ06WGRhRk8UI1D+wPVDNhlm3BjWzECXWmpSD X2eXyMDt5kae9XGABJJrF4AdtATamUqjcMcrQ4ru3HfX1xO4UJ5phS2OgDjng2iyPBwe 3SJHN0XEdGcAFRBsZYTmtUL9sIgZAdPoNI8LR/fgMlaHjcYafZHRjrkhbJpC4z+M0Qyx rzKqniR0ITLNKxuErRK3EUmRgFrENlDjiNQr0T47VRsS1s143b5ZIODH/eismFhIXUrf oucA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=VtmhZIrD; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y69-20020a626448000000b0063b5f88b7b7si2943400pfb.340.2023.04.14.08.42.24; Fri, 14 Apr 2023 08:42:39 -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=VtmhZIrD; 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 S231426AbjDNP1d (ORCPT + 99 others); Fri, 14 Apr 2023 11:27:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbjDNP1K (ORCPT ); Fri, 14 Apr 2023 11:27:10 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00719FF34 for ; Fri, 14 Apr 2023 08:26:37 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33E7k6Wl003961; Fri, 14 Apr 2023 10:26:02 -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=fjFs/7f3dFz2OTkn4kKsaTBEamc34d9Tzg4y7U6KXUM=; b=VtmhZIrD6mNr91Sr6u02L2CkY8drI77l1O/CeKzpMPLfJmBOtX37Q63ea6B8yMpPVo+s DjdSvpJM/s4ghTWL/gJmlDjNCJ0nnJB4jSHJPlRa9JwtMQHWt5gRayF8K9hP3DUXZS3n 7jxfpkdv42fsrHc03WHT7OlAysLx76ODc4Pp6iWn7eY6x66LZHn89rzA0GSqvGHf4dWn AI51zD14+CrBJlpvesyokbaJ4ga3d9YfFCYH7dr57malXyJyGf8O1EsWAk1gVuwfuEEH COWJl1D9HimtXUImDDvxtakmsf6js3U6l2X0BYy667NLd3edUqVHQW8itvdZ6wdaDVdp +Q== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3pxm3qa2sv-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Apr 2023 10:26:01 -0500 Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 14 Apr 2023 10:26:00 -0500 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 14 Apr 2023 10:26:00 -0500 Received: from sbinding-cirrus-dsktp2.ad.cirrus.com (unknown [198.90.238.135]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id C6B2511C6; Fri, 14 Apr 2023 15:25:59 +0000 (UTC) From: Stefan Binding To: Mark Brown , Jaroslav Kysela , Takashi Iwai CC: , , , Stefan Binding Subject: [PATCH v1 3/4] ALSA: cs35l41: Fix default regmap values for some registers Date: Fri, 14 Apr 2023 16:25:51 +0100 Message-ID: <20230414152552.574502-4-sbinding@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230414152552.574502-1-sbinding@opensource.cirrus.com> References: <20230414152552.574502-1-sbinding@opensource.cirrus.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: mmGkCZSi7rCS15raiHdKCPZq_Ps-Hxj1 X-Proofpoint-GUID: mmGkCZSi7rCS15raiHdKCPZq_Ps-Hxj1 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763166813888136663?= X-GMAIL-MSGID: =?utf-8?q?1763166869714172367?= Several values do not match the defaults of CS35L41, fix them. Signed-off-by: Stefan Binding --- sound/soc/codecs/cs35l41-lib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/cs35l41-lib.c b/sound/soc/codecs/cs35l41-lib.c index 8538e2871c5fa..1e4205295a0de 100644 --- a/sound/soc/codecs/cs35l41-lib.c +++ b/sound/soc/codecs/cs35l41-lib.c @@ -46,7 +46,7 @@ static const struct reg_default cs35l41_reg[] = { { CS35L41_DSP1_RX5_SRC, 0x00000020 }, { CS35L41_DSP1_RX6_SRC, 0x00000021 }, { CS35L41_DSP1_RX7_SRC, 0x0000003A }, - { CS35L41_DSP1_RX8_SRC, 0x00000001 }, + { CS35L41_DSP1_RX8_SRC, 0x0000003B }, { CS35L41_NGATE1_SRC, 0x00000008 }, { CS35L41_NGATE2_SRC, 0x00000009 }, { CS35L41_AMP_DIG_VOL_CTRL, 0x00008000 }, @@ -58,8 +58,8 @@ static const struct reg_default cs35l41_reg[] = { { CS35L41_IRQ1_MASK2, 0xFFFFFFFF }, { CS35L41_IRQ1_MASK3, 0xFFFF87FF }, { CS35L41_IRQ1_MASK4, 0xFEFFFFFF }, - { CS35L41_GPIO1_CTRL1, 0xE1000001 }, - { CS35L41_GPIO2_CTRL1, 0xE1000001 }, + { CS35L41_GPIO1_CTRL1, 0x81000001 }, + { CS35L41_GPIO2_CTRL1, 0x81000001 }, { CS35L41_MIXER_NGATE_CFG, 0x00000000 }, { CS35L41_MIXER_NGATE_CH1_CFG, 0x00000303 }, { CS35L41_MIXER_NGATE_CH2_CFG, 0x00000303 },