Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2932720iog; Mon, 20 Jun 2022 07:46:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tOVW/en7NyCx+YvU8zMKEMxlKlg51Rn4UOJHo7P2bOU4d88sPR0nxSHbpVnU4RJ3GKTVfC X-Received: by 2002:a17:903:22c2:b0:16a:3039:adb1 with SMTP id y2-20020a17090322c200b0016a3039adb1mr1630082plg.28.1655736367219; Mon, 20 Jun 2022 07:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655736367; cv=none; d=google.com; s=arc-20160816; b=dENkWEj048imWv18PmPa0Rv21F45OGTPzUmdCdgd2+GkZ/ofTIIYTZim/d5Naq1tHE HVYQxi8GlwFEJvVd9glSybqJICDCFcl9NRx8dN3p5+fsfrEPiGlmrxHU9iKTCL7FQgSG pSn9UCkN3z7xPn+XbTKijuYSxJ7eA6MAxwjvIYo8B5b5YJeqV0KVKkqRGXaU1MamVD9b n47DvuOk2gdN3Uhtv1o3RUnVu02L8Ku4jc/IFE2SZp7JjYiTCYz+lZRuhpZ6Qq8J4UXR gubUdGbnTuD4I5oKEfui3ynRfGJLuJf8+v6E8NQlVUkqEl3HGWMPAlRar/hV8aNF3f3W fw9A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sUJiYrlLMiXDEdSVvhiG/b99yBUHJ3DFElWKp1pj/3s=; b=01B1fpgDvf3xFzXy/IWSo50AZ70qVkmyTyEwrtHakMBh8IeX9Qd9ilTYVujTBo24o8 gCp+Y5IG7SMBJJ+PONjcZAYKQyPIxaMobB0wqVoaoSvuTqKX2+GV4bMnN2ogMiIlqTfO MLsEsCHvIq26ngdutOH2fprExR/uTYsRrBlEAqlElRbFxMWKVc1kNHaQSTZvCWm3SN+/ xB0MJtJCSeSFRu9DWG8vcngi461GhUrIETY3VOOaAUNQHl4LiUK9zMRF/Q2CuonPzvb/ Dot+waUrdJsNIj+AM80uXsCuiqdiei00WGwbRtfr1EVICyn0Bm4/uBjJODBi1Odj8VYC /1Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o1bB8bTw; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a656209000000b00408b78ce298si16469335pgv.669.2022.06.20.07.45.53; Mon, 20 Jun 2022 07:46:07 -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=@linuxfoundation.org header.s=korg header.b=o1bB8bTw; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242245AbiFTOBr (ORCPT + 99 others); Mon, 20 Jun 2022 10:01:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350210AbiFTNxI (ORCPT ); Mon, 20 Jun 2022 09:53:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A549261D; Mon, 20 Jun 2022 06:19:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AC942614B0; Mon, 20 Jun 2022 13:01:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A033EC3411B; Mon, 20 Jun 2022 13:01:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655730075; bh=M/PmLiYH0Ua9Bu5eF2irbzC7kPy33zqk/fv4eFKMCWg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o1bB8bTwso4Hs/DQ0ARt46QS3JnusV+h1NZ334qGitJ2VuN5Jn0QjlrQE28MPb5xV vCM1QJCS7B30JonAntiq6xtHuJxyzHueTp3izbCiAXj+WSFmxFvOdLDxcHnkGvcgRC 1sqba2NLnfPHDjCkOV0RjeGjfHYeYrHEMsRHuvG4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Charles Keepax , Mark Brown , Sasha Levin Subject: [PATCH 5.10 08/84] ASoC: cs42l52: Fix TLV scales for mixer controls Date: Mon, 20 Jun 2022 14:50:31 +0200 Message-Id: <20220620124721.136317869@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620124720.882450983@linuxfoundation.org> References: <20220620124720.882450983@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Charles Keepax [ Upstream commit 8bf5aabf524eec61013e506f764a0b2652dc5665 ] The datasheet specifies the range of the mixer volumes as between -51.5dB and 12dB with a 0.5dB step. Update the TLVs for this. Signed-off-by: Charles Keepax Link: https://lore.kernel.org/r/20220602162119.3393857-2-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/cs42l52.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c index f772628f233e..750e6c923512 100644 --- a/sound/soc/codecs/cs42l52.c +++ b/sound/soc/codecs/cs42l52.c @@ -137,7 +137,7 @@ static DECLARE_TLV_DB_SCALE(mic_tlv, 1600, 100, 0); static DECLARE_TLV_DB_SCALE(pga_tlv, -600, 50, 0); -static DECLARE_TLV_DB_SCALE(mix_tlv, -50, 50, 0); +static DECLARE_TLV_DB_SCALE(mix_tlv, -5150, 50, 0); static DECLARE_TLV_DB_SCALE(beep_tlv, -56, 200, 0); @@ -364,7 +364,7 @@ static const struct snd_kcontrol_new cs42l52_snd_controls[] = { CS42L52_ADCB_VOL, 0, 0xA0, 0x78, ipd_tlv), SOC_DOUBLE_R_SX_TLV("ADC Mixer Volume", CS42L52_ADCA_MIXER_VOL, CS42L52_ADCB_MIXER_VOL, - 0, 0x19, 0x7F, ipd_tlv), + 0, 0x19, 0x7F, mix_tlv), SOC_DOUBLE("ADC Switch", CS42L52_ADC_MISC_CTL, 0, 1, 1, 0), -- 2.35.1