Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6141715iog; Thu, 23 Jun 2022 12:12:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uD/3YpwVORnX5QxiRJvssazRUr9hqDdJlpPn9N0qjuYMLKwmDAEiMh34pAk5UJ/3EJOwhN X-Received: by 2002:a17:907:961e:b0:722:c0bf:57b7 with SMTP id gb30-20020a170907961e00b00722c0bf57b7mr9699710ejc.525.1656011560066; 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=cSqu1YTiH6oCjobFI/ocHkSluB3YdVbl802ugZSyl3DamzqyD1SMYImyX+XxQOuuc1 Noc50JNuiC6U6e7yV4FaIAeOmDpGiSIonXuypjBUL8u8/LlnhXP/QiaJgzXHUAmh/XFD i8eeJXpBgTm0+9c/xCAaZ++rsguDwxDv7uFxvBaWFKqD+5mU0CnGeobJU6iF+HRdxe81 7PfCYzHTU5UlKlTjQSk07iCA91owV7IXvq1xc5sxUZhykBqlj7F5nrVSf+0QVij67XY+ n1Rf5tIF2DB7B3RYJt+LvMCz9/kw3i8j4j4CQqpOEnuflOP+Lt1N9dFuASmiAVyiXRFt Dc6A== 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=cukyy6QMUz6cYp2KKa19Q+CbKuBwCs3e0Yt2cMK5qBY=; b=Wj0ujXiIzzup4mi5tFQuwoRxrawRGPGMhqFILqiGs6LA0COnDxJq7cuJBbU+JyjTlf lgOU4+0S3ySv6sJjjPUk6jOatn26P4LH4fzGpwABLx3CsS74uAb66Vs+z77UM/OHJ4S4 QfXbNzPH+ql+GwZaMUhX9sKf3HsDFxqpxiZgqh7bVnB9A4fbzd6amPNlzLYTh0ElFk6r SBxKID/fy0OVu43hP1K/+JBLaWK4244Q3kZbEm6wqQziQ1+w7uO0P+TUKNKYz1IeS9Os yKNrZ5rIwmXgFYM/CS3OkSKLe8XIYwKV49IzZ03ltO7RSA2oKWHSWWt1vFvhdbIGM1oA Jfbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ROfEGPe+; 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 l11-20020a50d6cb000000b0042dd4c1954fsi405254edj.98.2022.06.23.12.12.14; 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=ROfEGPe+; 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 S231862AbiFWRK6 (ORCPT + 99 others); Thu, 23 Jun 2022 13:10:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233638AbiFWRH4 (ORCPT ); Thu, 23 Jun 2022 13:07:56 -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 B048452E43; Thu, 23 Jun 2022 09:56:41 -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 D6170B8248E; Thu, 23 Jun 2022 16:56:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED650C341C5; Thu, 23 Jun 2022 16:56:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656003397; bh=MpR0SB/MmLQF/RryVffiyjuOPkabL1lZxbZ2Q61hCY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ROfEGPe+73UkrN2VNK1bH80AexdHb6n33QcOxOnwHdhgLBQtHEFayU+W6v7a/pDbX QLCBQeKE/e/cijD8rOKe+tolRAhJyIYisKd8zp1OjgpBuY6LL9K5sliHp6hwQ6m83Q 1qaUw1zbJTZhEKz9Q8kOUmYROd0ecBOYkf52hWA0= 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.9 226/264] ASoC: cs53l30: Correct number of volume levels on SX controls Date: Thu, 23 Jun 2022 18:43:39 +0200 Message-Id: <20220623164350.473594865@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164344.053938039@linuxfoundation.org> References: <20220623164344.053938039@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 cb47fb595ff4..5a16020423fe 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