Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6141728iog; Thu, 23 Jun 2022 12:12:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vyDx6TvsJxrOX7QvsZ2DdW7OYtaE5OpX1ms10guX3TA0HxZnw7mN6gRToKaYDhmvVDAIwC X-Received: by 2002:a17:903:120c:b0:167:8847:21f2 with SMTP id l12-20020a170903120c00b00167884721f2mr41296486plh.11.1656011560763; Thu, 23 Jun 2022 12:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011560; cv=none; d=google.com; s=arc-20160816; b=Aq61ZzIyt2gwFBIaBgprgUEt9HaWTxQsUUGtu3I/PewCl1BfGKkehT+qa7q0RCgKIQ 9TZKZjLgJYNoeAC+3U+pmaE0KiCr7p7mmrMSBIoZzdOhNbBm4zmMXdkQnKZ0tTUEAj61 1ngac2nppxHFWzYDOhUhfLQRYW5mh4U5/ZI64BxQfl2kk/9pNbu4o3f43OpTgMT9hRmk kNispbrV9WKPwI9HYSO0Pl+L1poB35mbmVh18mP0qf15f3VXIlfBCFG7rf0SDrufElzv xfxYb2cW68Mj3LE/c7VfH+lsMRFIfzD8xiSB7sw4NWELoGQEuJEWWqF/0Ac5czVcA31F h4Cg== 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=mdH9O0hZqsvBvJAgdJiMSCDyEX21pa7Gta974WWDaUk=; b=WdQQOdhBA+R8uRL/1pUBgFnIr+dBuHvZxF+0Egbo/vQ46iCCDqeAiZ70AwcLfukjRX kV+WgFTe7eTsXTTg20ipDVsf+WwIRsMLsJuwckeIIaTD4WGEWunzlS7ulYS4a81E/K7Y RJQxau33yeipTOMceHEfdm5E3cYPVKiSBPFO5RWwOdsYQTHGGCqPqSmBpUnUXu4aVC4l H84tfvHswbJCZVggskctuENHM0pzQ833ZS+gfCks18WERVP0j0+DORI5MVxdikNk7+GM cAA2OTR7NAaqc5hd4LbmdKeK1EzEalI/h5TxvtWZzCt8UqnVUITtDBDqSz/UByMGreQh Gupw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SRDw3aCT; 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 j8-20020a056a00174800b005255f483957si2730234pfc.210.2022.06.23.12.12.28; Thu, 23 Jun 2022 12:12:40 -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=SRDw3aCT; 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 S236620AbiFWSPX (ORCPT + 99 others); Thu, 23 Jun 2022 14:15:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236611AbiFWSOt (ORCPT ); Thu, 23 Jun 2022 14:14:49 -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 78801CD90A; Thu, 23 Jun 2022 10:21:26 -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 0203761E0D; Thu, 23 Jun 2022 17:21:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85D23C3411B; Thu, 23 Jun 2022 17:21:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004885; bh=c3ud9S4vhjy1BsuMLPZWl1hEAv4mc5Zqf23XgggN7A0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SRDw3aCT/Ra9KDT8nPu/csjND1GJ4xix1GKYUTVoYV4xsYJK9mU6jhj/p3vkty3vd 5BHi5xR18DF5rjKlFrl1+v1qKHWEipguc2/CmDMfGLnLUUOuCdfRY43XDeQm093pLl qT+dzDbvS8o084muWmDrQIFUuexwcmt0guZjtI+s= 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 4.19 182/234] ASoC: cs42l52: Fix TLV scales for mixer controls Date: Thu, 23 Jun 2022 18:44:09 +0200 Message-Id: <20220623164348.200551932@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164343.042598055@linuxfoundation.org> References: <20220623164343.042598055@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 3d83c1be1292..9a3180e71bd8 100644 --- a/sound/soc/codecs/cs42l52.c +++ b/sound/soc/codecs/cs42l52.c @@ -141,7 +141,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); @@ -368,7 +368,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