Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6138517iog; Thu, 23 Jun 2022 12:08:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v4GNEdY58D8p6mLLLvzkafzVl1696a6NIXHFs0PAEA1mMTl7gxpPWvW6Kge312QwT0ds+C X-Received: by 2002:a17:90b:35ce:b0:1ec:b764:36ce with SMTP id nb14-20020a17090b35ce00b001ecb76436cemr5476058pjb.143.1656011337312; Thu, 23 Jun 2022 12:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011337; cv=none; d=google.com; s=arc-20160816; b=CYZgWrTmZE94ZsfuYS3Ak0Dlp3yac/xDE8fpe9bP3HYkiXA+whEdiIwgKymSiG8ecY uNED+hkrl4c1OHS/M9sS8XWBFVN2n2wo5l+AZflVYTM5XXDcSEkJOqQFN5DTLXI8dSWt 3kFnp5RsG9GdAaVNKmyyoGAq7G52UE5kA3Q4zgNJacxn7J6EHwBcd4geHayDS/wKhenZ rdfl8ASA/iWv1+vJi/6wUwZUBXwWb00NEroKkp4vziT/ft3PBW3yAwTR0dTt90FEy6R+ jNxLLYn0wmAGCDVeVlHA+4G1gk/K9noflqvwqvkfBSvtpX1q7Sa+7BFAdUDMR+7CBjjp ZGyw== 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=q4/4v3CyhXS13RUJL3/I3uCmlu/I40emoDqWubiAPTI=; b=ygjvBkswPyyfQJx4X6teNPyPxWKXmNAzJTK8za2QK90gfapVc22EyXzlgS+SsMD6T6 PrLX6DIMsKjygbYqgWOcn4NS5rSYz4u4UOL4EpG6dg+XAxjZH0XZZE00oz/AZoSXVbWV RDMVr0oot7ultmrkTXPcXSIKic64Bric9m+F1sWhFHOxO6rsbN+D48e0ubSVX/lBofa7 2raK/ERW3ku7Bx0J4u6eMdQDKehVyXfW0OC6XabGSLIgqCVErHncHq/+3oZdL338eiwg Alb75twNN4C7AufrNmZosncaLESCPi3L6lQbT8+7Jo5is/GEI2SoV2TwruPSkbcKWn3V 9NwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kALaBK8d; 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 g14-20020a63e60e000000b003fb23692294si5960986pgh.218.2022.06.23.12.08.45; Thu, 23 Jun 2022 12:08:57 -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=kALaBK8d; 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 S230358AbiFWRKd (ORCPT + 99 others); Thu, 23 Jun 2022 13:10:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233669AbiFWRH6 (ORCPT ); Thu, 23 Jun 2022 13:07:58 -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 8C7EA532F1; Thu, 23 Jun 2022 09:56:42 -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 A06AC60AE7; Thu, 23 Jun 2022 16:56:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E48CC341C4; Thu, 23 Jun 2022 16:56:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656003400; bh=qIYgr84JW2wfwskmNEvNzTtO/Z+QttXhLdhRIbSR53E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kALaBK8dKTe5xIArMyJd3GI+VM2+H4WUuUicmuppyT43tCU8h5yAsBo9RzKi762M9 ueZAZJPmthsD1zC5VdyigSlLLoyzRKYD5qyYrzDU/ZroGMI2YiwsvQTXoS+S9lZKxt OyyD8UX6jOZLpfQniVWhQThBfu2/QTM77sP1//OM= 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 4.9 227/264] ASoC: cs42l52: Correct TLV for Bypass Volume Date: Thu, 23 Jun 2022 18:43:40 +0200 Message-Id: <20220623164350.502353844@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 91e90c712fade0b69cdff7cc6512f6099bd18ae5 ] The Bypass Volume is accidentally using a -6dB minimum TLV rather than the correct -60dB minimum. Add a new TLV to correct this. Signed-off-by: Charles Keepax Link: https://lore.kernel.org/r/20220602162119.3393857-5-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/cs42l52.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c index f733f6b42b53..47f2439fd7b0 100644 --- a/sound/soc/codecs/cs42l52.c +++ b/sound/soc/codecs/cs42l52.c @@ -141,6 +141,8 @@ static DECLARE_TLV_DB_SCALE(mic_tlv, 1600, 100, 0); static DECLARE_TLV_DB_SCALE(pga_tlv, -600, 50, 0); +static DECLARE_TLV_DB_SCALE(pass_tlv, -6000, 50, 0); + static DECLARE_TLV_DB_SCALE(mix_tlv, -5150, 50, 0); static DECLARE_TLV_DB_SCALE(beep_tlv, -56, 200, 0); @@ -355,7 +357,7 @@ static const struct snd_kcontrol_new cs42l52_snd_controls[] = { CS42L52_SPKB_VOL, 0, 0x40, 0xC0, hl_tlv), SOC_DOUBLE_R_SX_TLV("Bypass Volume", CS42L52_PASSTHRUA_VOL, - CS42L52_PASSTHRUB_VOL, 0, 0x88, 0x90, pga_tlv), + CS42L52_PASSTHRUB_VOL, 0, 0x88, 0x90, pass_tlv), SOC_DOUBLE("Bypass Mute", CS42L52_MISC_CTL, 4, 5, 1, 0), -- 2.35.1