From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B3BA5C433EF for ; Tue, 14 Jun 2022 02:16:28 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 139BA18D9; Tue, 14 Jun 2022 04:15:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 139BA18D9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1655172987; bh=4syYMxPkzIJ/qkZf+faSQz3RfpeaARsghA50qhraB/I=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=GajmB1e0LrQMIWaP9PfVpJWqPTP5wDwg0Sd2gAIeCndzCTNwqnABKqrSLVNrh0OXl cxx+F4wW65YzKcXVmz7HFJoIlRnWnLHZ15iCxRM3i0E0+Laem05RHlbzqPg5AI901D 6aj7hS4xoOYpuAe2WLHHevxA5SJyzLlhrRWXHEx4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 28346F80607; Tue, 14 Jun 2022 04:08:36 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 75BFBF80609; Tue, 14 Jun 2022 04:08:34 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B4DF8F80564 for ; Tue, 14 Jun 2022 04:08:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B4DF8F80564 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sepHc+aF" 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 960BD61012; Tue, 14 Jun 2022 02:08:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA1BDC385A5; Tue, 14 Jun 2022 02:08:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655172505; bh=4syYMxPkzIJ/qkZf+faSQz3RfpeaARsghA50qhraB/I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sepHc+aFHCtbAb8iJMmisBGFriXw5QWW5NRAFZ1oxm8IgdWuzivoGBV04DhWc/4OD RQCUr3a7IoI/4LEqUopqnX21aUR0Q0t279rKXrBojgR6zTtOmnYJ5T+E2KLbopfcGk ovMTsFTgt+8n7KH6sJaKDa5jAhfkJa3gPma8CC43gFZAq3I7lNHaCU9DA7oODgRYpu f/kdC6o2A6nlP8Sf8dPD0oOEKd3kLZOqhJEmxKOuOTJJn9SfSqzLxymFfgwtfNctg6 BUcllE2nh39T8AgSD/xcWOhHesqYGsISnt+VT8nrFGsikOkw5eSDIq8HpOWGAD55VD m9GzM41asNxYA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH AUTOSEL 5.10 05/29] ASoC: cs35l36: Update digital volume TLV Date: Mon, 13 Jun 2022 22:07:51 -0400 Message-Id: <20220614020815.1099999-5-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220614020815.1099999-1-sashal@kernel.org> References: <20220614020815.1099999-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Cc: Sasha Levin , brian.austin@cirrus.com, Charles Keepax , alsa-devel@alsa-project.org, tiwai@suse.com, lgirdwood@gmail.com, Paul.Handrigan@cirrus.com, Mark Brown X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Charles Keepax [ Upstream commit 5005a2345825eb8346546d99bfe669f73111b5c5 ] The digital volume TLV specifies the step as 0.25dB but the actual step of the control is 0.125dB. Update the TLV to correct this. Signed-off-by: Charles Keepax Link: https://lore.kernel.org/r/20220602162119.3393857-3-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/cs35l36.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs35l36.c b/sound/soc/codecs/cs35l36.c index e9b5f76f27a8..aa32b8c26578 100644 --- a/sound/soc/codecs/cs35l36.c +++ b/sound/soc/codecs/cs35l36.c @@ -444,7 +444,8 @@ static bool cs35l36_volatile_reg(struct device *dev, unsigned int reg) } } -static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10200, 25, 0); +static const DECLARE_TLV_DB_RANGE(dig_vol_tlv, 0, 912, + TLV_DB_MINMAX_ITEM(-10200, 1200)); static DECLARE_TLV_DB_SCALE(amp_gain_tlv, 0, 1, 1); static const char * const cs35l36_pcm_sftramp_text[] = { -- 2.35.1