Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2931135iog; Mon, 20 Jun 2022 07:44:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uLuE+sHmYVrG64YjEYevAAiXd6hNtU4J9XKXFBIjrLxyjaQ1B2UZ6M6PuMJmaMQjN0Embw X-Received: by 2002:a05:6402:b48:b0:435:728c:d127 with SMTP id bx8-20020a0564020b4800b00435728cd127mr13170612edb.392.1655736253683; Mon, 20 Jun 2022 07:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655736253; cv=none; d=google.com; s=arc-20160816; b=X5/7k9bkVKMT640EfBV5nFlkTKj0kIy0cUMr98pkRDFPMZalSHRIN0Pq0oFRVGCPZb 8IwCqMkW+jUAacvhz43OICNstHtT2nPagx9QYu8dDahBzJA+/kLswk7+u8a98cgJIzym lMyHu4soqkupjms/fqplc3nUFnKKWwOlWOiBbvp5AD5hXCaMDW+6UbjNzJ/2uVPPv7Dr 6hUEcN/quVvcncIggH27GZzC9VPL+b/XpxJLep+3m9koGLCHQxIAvT/w+jlyMBEorsug jUieV8ASSV9lJm4OxFWdfv2huBMFyJl9e7FKqCk0O4Ey7CaB1Hqcg3VU1VyO81EdEW+3 Ci+g== 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=8lHsyaTlQFyiOYbKYHomsVtgxGc/PoZWrNS/pxGvGhM=; b=M/3BnDHFYGsKS6n5u1RK/Q31Q/1xK6MASLQK/SlTSAKoJgg5GRvOrATcY3/QRbwGOg lMQS6Qk9IFEs+ZG/r4DLObEEHfCS16RIax9cEFDlxfjGkzZkI674q8GGSO7k8DFzPAI7 QmU4sMN0c6PPfqBDYEv1tcxQprMux4+6eS0P8aDQMHk5dpC3NUPlWdIQxqmUYhPN3UZL ZlbHd90/cvCsdzJ1+H8ZwuOXsaTzv+ss4gWGbme2iU0i199ykZprcnNkp+ze4FT7U/S8 Sr99NAlT5a/Pp0QYztgxpZtCC2wr6MZmJ5IFSdF3eCr2Rj6YfmCzhr6GgnYX2xZM5uuR 2K1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ifUcpygr; 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 i15-20020a0564020f0f00b004355d509b08si10525287eda.78.2022.06.20.07.43.46; Mon, 20 Jun 2022 07:44:13 -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=ifUcpygr; 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 S242926AbiFTMxv (ORCPT + 99 others); Mon, 20 Jun 2022 08:53:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242672AbiFTMx0 (ORCPT ); Mon, 20 Jun 2022 08:53:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2424DB7F; Mon, 20 Jun 2022 05:53:26 -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 CB52DB811A9; Mon, 20 Jun 2022 12:53:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 043FCC3411B; Mon, 20 Jun 2022 12:53:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655729603; bh=+PYrvTFnip/gg9TheCSfPkipohp84RZ+kbpGq3MpCVQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ifUcpygrAomcG8s32c/pbrva2RoxrIpEC1nPRSFPedU85M5i9Q4y3a6FVunQNWopt 6y67EA9gxfSf6eg2Rxc5uBMcoFgEKGD30KTZ2ZTxYnwdza9BE3Fh0qbrEAHqsrqTWX T7ie12PYOTpkAUIiQhoTOeviRs2G/OXazNjLok90= 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.18 016/141] ASoC: cs42l52: Correct TLV for Bypass Volume Date: Mon, 20 Jun 2022 14:49:14 +0200 Message-Id: <20220620124729.999667573@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620124729.509745706@linuxfoundation.org> References: <20220620124729.509745706@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 785caba3f653..c19ad3c24702 100644 --- a/sound/soc/codecs/cs42l52.c +++ b/sound/soc/codecs/cs42l52.c @@ -137,6 +137,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); @@ -351,7 +353,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