Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2932189iog; Mon, 20 Jun 2022 07:45:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjv/+lilnGf/SUpogOoXSibDInDoDGaG5knGdMS3QwtzIaB1rcBFf6PgejYFWeL39XDsPF X-Received: by 2002:a17:902:e745:b0:168:e68e:fab8 with SMTP id p5-20020a170902e74500b00168e68efab8mr23981322plf.23.1655736329444; Mon, 20 Jun 2022 07:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655736329; cv=none; d=google.com; s=arc-20160816; b=ec6pGZYLRt63Sm2IWBWXk61LmsLFhM0z9KH415vLByl71z/6JLT1v0qDH1zQuPj8Tf Fj9R8bC6FLbO9Yv5Kmmd/5yu816LBHKHoZhVs7onmPIXYTsi/f0qiKKK12p1Ls914ONG Docp83UjFHMLDsfuLZapPEj34atgtuMceDO+WdWqNXsJrCyC1XHEI963N4KTCSkzvCXA fKlzVKW0h5Wc1lmG1H/VSCpca5Q2Esmv+4C8s3f50tWWORHQNNhcDUa3VUy404VJAA35 eO9beE36j9JgS76tuHbAtlEq5L63armK3h+70zowOM8KLsnd3fdnYhIOnVOqy/fNewFH RB4w== 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=s5J1LETr93U+RTYqndczZBsB1ppuu236NTMC7+quzfk=; b=bHYlgeSYKvicPsUl//1puOO+LZdDih7F97h6ygO14Af1+0hDhVTwgVfumuJWT5ZeBp YVKii4eW8YnoO7GBJmHSO6KbOjR2Ybkx8iX/991kl5gWsv1nYOXo6w7PQjy0KDvxFoii lysL6QqIXN/jkyUgen6Goz1J4gywLa3LY2Rqq439L4e0ctx8m+JC+iuZvEEftDGuRJNk BddXrzbX4TAl15Ad5uG3Ckr3uWSc4sJfvMArqvAKC5ujqPgepvdbdHP/qV1yAbCOrvAJ n0NIrxtRLV9BzFB/bE50YnisgMmrUQ4eUu6FZCt3P6zrojrT66bPyP00BILs6Qs0EYMi OF5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xbKP62y0; 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 d34-20020a634f22000000b003fbcd6ecc16si16395114pgb.18.2022.06.20.07.45.16; Mon, 20 Jun 2022 07:45:29 -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=xbKP62y0; 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 S1343866AbiFTNRA (ORCPT + 99 others); Mon, 20 Jun 2022 09:17:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344502AbiFTNKT (ORCPT ); Mon, 20 Jun 2022 09:10:19 -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 D16F31CB21; Mon, 20 Jun 2022 06:05:18 -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 256A96158C; Mon, 20 Jun 2022 13:05:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11399C3411B; Mon, 20 Jun 2022 13:05:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655730302; bh=4seMafuumCFqNw+bDTbGN5XERJrkspwfxmcEylUX7QY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xbKP62y0XKyWVtxeUTIE5drGk057HjbuYUf1RIM8P4c9TJEuOtRVmcYzXb/JxAXX9 EI1RCfAX1kQGre/9BJSj6ymJ7UNmt/t/SOY5fAcWcRgfQORBSb/t97G0g2cM8i98lP tDoCtGhrY/cwggcYKmHyp4cZ1cKmV+wYUpK+zl/w= 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 5.15 011/106] ASoC: cs35l36: Update digital volume TLV Date: Mon, 20 Jun 2022 14:50:30 +0200 Message-Id: <20220620124724.723758864@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620124724.380838401@linuxfoundation.org> References: <20220620124724.380838401@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 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 d83c1b318c1c..0accdb45ed72 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