Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7716546ioo; Fri, 3 Jun 2022 11:56:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywPCbCWZnJECH88xQyAMHychTBPFo9hgGTYliH1MlEUdHrIl3qJ1RY4D3VoFLb6+cQWTz1 X-Received: by 2002:a63:8741:0:b0:3fd:3d75:79d2 with SMTP id i62-20020a638741000000b003fd3d7579d2mr1982487pge.115.1654282575232; Fri, 03 Jun 2022 11:56:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654282575; cv=none; d=google.com; s=arc-20160816; b=c0/UZHbvbW4l4MpJhrkkMakVnGRY78Faz900zcWfF/Lu7Q78MabaT3bB94KmPaX6gW IRwNv2YTDCSEOUSbvvQ+G0BYTyc40OnzghGqhAI1jKXUSsaTy4RrNMX5INyTtn0KY8Xb 9exn///h7O8EYSHIfLrunlnH1tFfLo6Ylq+e43utp9P3XG2MU1r/Q9FbCaxg0hv9YczU lbi0qD/WkqESz99uLZkD70h4jCROIB9dkjNVKotPthJ/gCYeEdLvUWSpeEOsUSKJlAPz HihXsgftX2kasIWQ4HNkyOuaQRFfd12VKIZDE1kEDDbCM37h0KiW9zY7HRFIpuoE3LYj dHdA== 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=0IeA4yIE6WcG+qW9hTFM5cHREHoUthyn64w2bgHrobo=; b=TotMcduVOHl3HNvFeYOK96OZeun2/8SLM9FNByMk0nvHNCnz1ixGDP+jxlEnLdiQZy Wdd7O3NWgtHo/QWHJNYr5FnvUhOoikBhMZNoEcjAVeZ9abQZ5dx+5ocXFBl6XUjZcnP8 gPxtjTrRQskXiaCC7ZaYl3ohAvRiERn0jlUDX68r2ydLRsl7A6a1/g25SsQOx9MlBoRO 3VsrGjwOJbdHoEeTehnBMLGmyk/NIld7febPw72rA8E8fL8NSsOnKFzc/K+IFGC/ABri 5n8ohGZtScLyVAck/l2r4zfQ2nmmwyvLmHT9k0lzwqxuFdGkBkMlC6r5ARBvvP+KE2uk 6f9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=ewDv9Vs0; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r5-20020a654985000000b003c626c711a8si11827170pgs.108.2022.06.03.11.56.02; Fri, 03 Jun 2022 11:56:15 -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=ewDv9Vs0; 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 S232503AbiFBQVv (ORCPT + 99 others); Thu, 2 Jun 2022 12:21:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236890AbiFBQV3 (ORCPT ); Thu, 2 Jun 2022 12:21:29 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDE1968997 for ; Thu, 2 Jun 2022 09:21:28 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 252Ao5gD026091; Thu, 2 Jun 2022 11:21:22 -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=0IeA4yIE6WcG+qW9hTFM5cHREHoUthyn64w2bgHrobo=; b=ewDv9Vs0LvLo1B4jhhvAkazO6kvDYjz4kzUQ6Msu8Z8YzHMCDF+LVXTGi1BbRZ68Y6jZ x7s+bkjWpUDtFlw8lfY6lG4wMsY4pg7dF+fR8NOsCmjo2EswIxKgprg2zRZjtkD7OTgm LhvbqeoVX3CCdyPgq+mah5huqM2h96iZaec7qZ/CS7W0DGgYtjaNMBQolp9q5+6L515o lCC5PimI/+QCILn+ApYFRTpUIErFQ9LEhr6M+HC3TBXdosppOr0UNlf+XuPPxyZz+Q6F gGWupm9ml0NX36Ghaq5HuyC43TCYhUICQWPR8HjoSSisZieuDi7aQ4lOzvs2cFXDm4cm bg== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3gbh51nq0d-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 02 Jun 2022 11:21:22 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 2 Jun 2022 17:21:19 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.28 via Frontend Transport; Thu, 2 Jun 2022 17:21:19 +0100 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 3C72D11D3; Thu, 2 Jun 2022 16:21:19 +0000 (UTC) From: Charles Keepax To: CC: , , , , , Subject: [PATCH 3/6] ASoC: cs53l30: Correct number of volume levels on SX controls Date: Thu, 2 Jun 2022 17:21:16 +0100 Message-ID: <20220602162119.3393857-4-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220602162119.3393857-1-ckeepax@opensource.cirrus.com> References: <20220602162119.3393857-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 0eGjFAiCPLPWlT9YKPozGF5ZOyEEII_w X-Proofpoint-ORIG-GUID: 0eGjFAiCPLPWlT9YKPozGF5ZOyEEII_w 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 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 --- 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 703545273900f..360ca2ffd5069 100644 --- a/sound/soc/codecs/cs53l30.c +++ b/sound/soc/codecs/cs53l30.c @@ -348,22 +348,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.30.2