Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4449040imw; Tue, 19 Jul 2022 06:52:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sRjd3xAy3yl57kzkT2MVVp1EdHl0//5bywJJaZrbjExEJa9TyiQs49tev7y3bBs/5EhOf7 X-Received: by 2002:a05:6402:27c8:b0:43a:f392:8fdd with SMTP id c8-20020a05640227c800b0043af3928fddmr43917539ede.328.1658238722992; Tue, 19 Jul 2022 06:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238722; cv=none; d=google.com; s=arc-20160816; b=uQ/h12PS55BwwEbf1YebeWIUVD8ekD/lvPpPFXv36Px3/91xI4Gw4VVZi/OX13kHRm 6hr3UHPa/bm6z23p1npRYhEJdzn8lupVeNJ2FH689AOpP+wtovkJOA3SZH+YCBHpmNso ILVG24wB6DRJfcoTxAb93ZKKk/B1XkP+NtSGiLQmsNnBzGwTv5ynkniSmaV6QpIHZ77j KC2mC0BKKff6jJWCynPYto790PXNQyoc4bgIWFla2iz75BFN6VrZ4e6ArmiVq9ag0l3q /3UuuLnCE5F6Irr5s6rVDGEUqgZB4+YtvbfhD95SVCJkMxyJOW/b+eWozgHIVTvGlz1p mKSA== 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=+mlazYY1MxzOArN9E6hPRiWumS9vs8JEych/g6LDJDA=; b=dzw5huAms36Mb1mo4boXG5go3evh/47m/zWjnRh64S2AyHN1vWMfEtQsYXAYEibfSc v6RUprXsuieaK17FjB/jizUXF/kCE+1++ytwAHrUKFB+Y8BHldQviPvslpDsl/l2XxnK AbwKINop8Uv4s6NteQ7RNN9CF4HBEcFbs/S3OYfa8zkocZ26Wr5PyRgCErfLr3DpzD1q DbTcak19hLDql5HlUAvIMi+H9lP+pH+Rzf4haMeyvL30vgLvpACFCUgcmOE6GkReCwmY EmRZ3Tuz0HTCRgtYqD0UdK3h3enqMupWYool0Hg5YlY6cUaDTAtyclIBQwijCkt1kPFt AIpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ziiJW6yo; 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 js20-20020a17090797d400b00712e4774584si22460054ejc.690.2022.07.19.06.51.38; Tue, 19 Jul 2022 06:52:02 -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=ziiJW6yo; 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 S239397AbiGSMSR (ORCPT + 99 others); Tue, 19 Jul 2022 08:18:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239195AbiGSMQ2 (ORCPT ); Tue, 19 Jul 2022 08:16:28 -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 A6B49558FB; Tue, 19 Jul 2022 05:06:29 -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 56C246171F; Tue, 19 Jul 2022 12:06:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19B37C341C6; Tue, 19 Jul 2022 12:06:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232380; bh=K3+3I8AuxXsfpmIxT07yrpNeLwvQNN67D7m8sUQncCM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ziiJW6yoB68ezjtiXTqVK4qN4fVk2bS71yra6+tVJOUxl22WIWZqYIyBXTgVdSkDM 6R+ktqdWsqY5OivF86FHtjNYdkWT1fSQE8nE9FCQKooWZ+FSEaqcq+1NyFIseNQmOu xJ/EfWZnbQyGaZtJB1wASlVu5ZL2puHzFXP/mLzM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hector Martin , =?UTF-8?q?Martin=20Povi=C5=A1er?= , Mark Brown , Sasha Levin Subject: [PATCH 5.10 037/112] ASoC: tas2764: Correct playback volume range Date: Tue, 19 Jul 2022 13:53:30 +0200 Message-Id: <20220719114629.834912558@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114626.156073229@linuxfoundation.org> References: <20220719114626.156073229@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.8 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 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: Hector Martin [ Upstream commit 3e99e5697e1f7120b5abc755e8a560b22612d6ed ] DVC value 0xc8 is -100dB and 0xc9 is mute; this needs to map to -100.5dB as far as the dB scale is concerned. Fix that and enable the mute flag, so alsamixer correctly shows the control as <0 dB .. -100 dB, mute>. Signed-off-by: Hector Martin Fixes: 827ed8a0fa50 ("ASoC: tas2764: Add the driver for the TAS2764") Signed-off-by: Martin PoviĊĦer Link: https://lore.kernel.org/r/20220630075135.2221-3-povik+lin@cutebit.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/tas2764.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tas2764.c b/sound/soc/codecs/tas2764.c index b93e593788f2..33d7ce78aced 100644 --- a/sound/soc/codecs/tas2764.c +++ b/sound/soc/codecs/tas2764.c @@ -536,7 +536,7 @@ static int tas2764_codec_probe(struct snd_soc_component *component) } static DECLARE_TLV_DB_SCALE(tas2764_digital_tlv, 1100, 50, 0); -static DECLARE_TLV_DB_SCALE(tas2764_playback_volume, -10000, 50, 0); +static DECLARE_TLV_DB_SCALE(tas2764_playback_volume, -10050, 50, 1); static const struct snd_kcontrol_new tas2764_snd_controls[] = { SOC_SINGLE_TLV("Speaker Volume", TAS2764_DVC, 0, -- 2.35.1