Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6144488iog; Thu, 23 Jun 2022 12:16:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t0erWpEA/CUTx3oVU3mNM9AXZR8Rz6+PmMr7aYF0V4k3PuNKvIUy1a+kT/MgLbfDW0bHve X-Received: by 2002:a05:6a00:1501:b0:525:5d78:ed69 with SMTP id q1-20020a056a00150100b005255d78ed69mr3635641pfu.27.1656011761352; Thu, 23 Jun 2022 12:16:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011761; cv=none; d=google.com; s=arc-20160816; b=jMADLO0xHzz4Szsv1nDJ5qUyO2p24r0Qqtrd96c1MzO5e/TALMafRuD7jC5wUcFlYQ OUF7VCkxFDXjNRGC4fyJ79B80CcdH63MprowgW5CPK3JHwz2+ZPubeKGqn8izZQVu58O +miPIrgsnBdxKx9y4UTHzSJ+1O0CEEHtCsyLkT+n/IeD2zZ6BPEHIAeHIWYQEZN88hsz dSg/dhQzD+dODidOZWW2D+JfnemKPkyp5JkZXr/AsJD/XJYLwWn56N2rzKukuIEyJq3n +fk+zK3rkFju+1OTLklTvrmZN0plY+ie12xTpLi74gH5atV0I6I+wAxKoFofM6C9Ud4t VY9Q== 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=imkKvr6lWfqlFtStNltbyEV2PNQ8KCP0P3vG5Ju7CL8=; b=WiHR+NbZ0ohwTrT6xQi/VFcLGD545ctd5pZWSaC6DA0PCSKxMWyEkxL6YIRrd7pU8L cLIM+cgfheV0C3MJm+1zxOFiHGNE21aAT0q2aQvw9kqWdtwHZbCb/+P7OLCELFuCZOhd ayZoumOYQ5+OTgC5CcV4iVrLh+EspSUV2thUYK1I2EmbcCU/oNsXwA6/3/JbKMtlPafg 19mCSGBXipUDE+Kx2BVxMa/iYCftZxSlNEbX2goZZRlYn58swQPW/eB+7cUcVOrSmwaz 7UPCvKkoOypOlQ2mhT9ZSg1M0tCwGIvIWsoXLCGgr0z7o/GZOQUEWemb/4WdlMS/dFBO pOpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BhVBcLGN; 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 q4-20020a17090a938400b001ec73deb914si234835pjo.111.2022.06.23.12.15.49; Thu, 23 Jun 2022 12:16:01 -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=BhVBcLGN; 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 S232403AbiFWSP0 (ORCPT + 99 others); Thu, 23 Jun 2022 14:15:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236621AbiFWSOv (ORCPT ); Thu, 23 Jun 2022 14:14:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAF5DCD911; Thu, 23 Jun 2022 10:21:30 -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 ams.source.kernel.org (Postfix) with ESMTPS id 788BEB824B8; Thu, 23 Jun 2022 17:21:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95D0BC3411B; Thu, 23 Jun 2022 17:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004888; bh=ST8QgW476vRIAxziPWnTuvbMvC4hTE4Oh/zXMWuQBsY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BhVBcLGNbI3RvHjPiMjjBbxbz8MgFFK0KvPZkpCO4FPgeAOh0r1FcESfBbt1iYLUY MIcIfcGazp5DYCSTwhtLOA60G7v+jwX7RL5LkTs8+PncYek4DSLWRzU5GdYmUhf3jy XifXFLw9OO9JjNcm1IsUt3jU9hZD/OyrGrbcb1e4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Rhodes , Charles Keepax , Mark Brown , Sasha Levin Subject: [PATCH 4.19 183/234] ASoC: cs53l30: Correct number of volume levels on SX controls Date: Thu, 23 Jun 2022 18:44:10 +0200 Message-Id: <20220623164348.228281902@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 7fbd6dd68127927e844912a16741016d432a0737 ] This driver specified the maximum value rather than the number of volume levels on the SX controls, this is incorrect, so correct them. Reported-by: David Rhodes Signed-off-by: Charles Keepax Link: https://lore.kernel.org/r/20220602162119.3393857-4-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/cs53l30.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c index 8995ea45b4ca..86e93904b001 100644 --- a/sound/soc/codecs/cs53l30.c +++ b/sound/soc/codecs/cs53l30.c @@ -351,22 +351,22 @@ static const struct snd_kcontrol_new cs53l30_snd_controls[] = { SOC_ENUM("ADC2 NG Delay", adc2_ng_delay_enum), SOC_SINGLE_SX_TLV("ADC1A PGA Volume", - CS53L30_ADC1A_AFE_CTL, 0, 0x34, 0x18, pga_tlv), + CS53L30_ADC1A_AFE_CTL, 0, 0x34, 0x24, pga_tlv), SOC_SINGLE_SX_TLV("ADC1B PGA Volume", - CS53L30_ADC1B_AFE_CTL, 0, 0x34, 0x18, pga_tlv), + CS53L30_ADC1B_AFE_CTL, 0, 0x34, 0x24, pga_tlv), SOC_SINGLE_SX_TLV("ADC2A PGA Volume", - CS53L30_ADC2A_AFE_CTL, 0, 0x34, 0x18, pga_tlv), + CS53L30_ADC2A_AFE_CTL, 0, 0x34, 0x24, pga_tlv), SOC_SINGLE_SX_TLV("ADC2B PGA Volume", - CS53L30_ADC2B_AFE_CTL, 0, 0x34, 0x18, pga_tlv), + CS53L30_ADC2B_AFE_CTL, 0, 0x34, 0x24, pga_tlv), SOC_SINGLE_SX_TLV("ADC1A Digital Volume", - CS53L30_ADC1A_DIG_VOL, 0, 0xA0, 0x0C, dig_tlv), + CS53L30_ADC1A_DIG_VOL, 0, 0xA0, 0x6C, dig_tlv), SOC_SINGLE_SX_TLV("ADC1B Digital Volume", - CS53L30_ADC1B_DIG_VOL, 0, 0xA0, 0x0C, dig_tlv), + CS53L30_ADC1B_DIG_VOL, 0, 0xA0, 0x6C, dig_tlv), SOC_SINGLE_SX_TLV("ADC2A Digital Volume", - CS53L30_ADC2A_DIG_VOL, 0, 0xA0, 0x0C, dig_tlv), + CS53L30_ADC2A_DIG_VOL, 0, 0xA0, 0x6C, dig_tlv), SOC_SINGLE_SX_TLV("ADC2B Digital Volume", - CS53L30_ADC2B_DIG_VOL, 0, 0xA0, 0x0C, dig_tlv), + CS53L30_ADC2B_DIG_VOL, 0, 0xA0, 0x6C, dig_tlv), }; static const struct snd_soc_dapm_widget cs53l30_dapm_widgets[] = { -- 2.35.1