Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp173449lqo; Tue, 7 May 2024 16:38:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVeesXfo/NFqfImAdGdbZKCqv9G43yxBi/kKrji0qIGrczp7OiJ5E1Y+ywhKogFdy35tM5JVqoXz2Q8WKkf2N5XT51ZOe1G1/pVVWqfEQ== X-Google-Smtp-Source: AGHT+IHkB2YuSWylRTpJtikjICVCIUwicRdkVkD4EWHUkNmyyIFVX7UILgkMA+hQ0hXkqYVK24r7 X-Received: by 2002:a17:902:cecb:b0:1eb:2fa0:fe22 with SMTP id d9443c01a7336-1eeb078ef84mr13151575ad.65.1715125096729; Tue, 07 May 2024 16:38:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715125096; cv=pass; d=google.com; s=arc-20160816; b=MUh99tGJSkLRPYUfF1xQlLQiroz0olCJelpSgSf7Oa94y5lnJGCduTiXWFviMAFcpP UjrQ5kFA/GhA/NFwHrpfGFDvLCETdgirzcp3fbqzqjQiSfAbNjy6oRnK4mEpB2hOAaxP y6j+C8BlONWvYgXR+//N2xV4rrtp35/sjs4PDSveMEAxjYBLgCWYNIf7Et2afDgQS0sF 9acglrQX9v+0AgyXJii51JGiotBKEBRgH2c8LO4nCPCjGg7vmP4a14nnUYrbMRuQ+uFn g+OL1J415QkRmWqYSABzpasCDA366iCWJseE3n7T1GZvQWTSAMf2VO1FYi1YacKJOUiZ od/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=qsWCB812gGOclS/4ZFHbuF+9MwccKJShQb1xZXZHKX8=; fh=CL9T5IU3cyk3BqPmaWbfpo3+d1IboHBgSMTrmJzto98=; b=fBLR1W7Mp+A3/WKEbjbRX8WQK/2IZlpcNfqN21Yx528bnDYPEqv6i7r70MiVsZmVy8 hgB0QHpB2AeFFufn9z3lJbx+2wG/QB5/TJ7zff0b7yg7WVDAmwg4c1hZIs2+zFgDRSdU MWliKjNYKbfEOfMi7NZIVkw/DvuEGGu6VCobsGYrwTyc371Td62QC8FrnKqIRTVcwX13 Br3njgGOhDr21yVR9AAeNBKEGQkJwyH/zRLrk5NubQ1eoe2QBJrPQ2DF+7P1+C4gsAuc hdpe2YGTfenUom4IvhTnfOpC5zgZr5P1A1oe0jqShFiTr6xGH6HallbRBrhIHaNr8Unh gjOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sg1Y9OPX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172409-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e6-20020a170902784600b001eb641fe96esi10656681pln.651.2024.05.07.16.38.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 16:38:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172409-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sg1Y9OPX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172409-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5A00028352D for ; Tue, 7 May 2024 23:38:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 576ED14A4C7; Tue, 7 May 2024 23:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sg1Y9OPX" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 765E314A0A7; Tue, 7 May 2024 23:10:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123459; cv=none; b=MSK4qF82SRMAGpYgKSvI+NfK3mSFRTtrrKy3rTrJ43HV/fS4z7IbEzy6QdGt5lpMAyiyd1EkLDakAuO0WxvpbGzSIq+ziAP2cR4BWP2W38JCoMVmMa9wy0Fs/OE9h17tv7mNo3CdHfpo/wXf9WVETCJsH5yj27lPFa0IB5KA71c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123459; c=relaxed/simple; bh=WLG9byGvgiCN8PrBzGxPQQ0QWNfge3aSyrmJQsr1glw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DsLEGVPsizvu3xeNykV6frCQ3C5Q4Yv7Wl0Egvo+74nqO3tg/HKvlzGbNIAL8VhgfJm2f/LAQgo8rA+pnV0Vb0EYswQz9ZEd6cOqPBw07LtW2wioWViPfJzK4Dw+7+o9qYHpwSO2eaQvRNRUVKIsGb83QujyOzI08+SfPSCeN48= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sg1Y9OPX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00A51C4AF63; Tue, 7 May 2024 23:10:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715123459; bh=WLG9byGvgiCN8PrBzGxPQQ0QWNfge3aSyrmJQsr1glw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sg1Y9OPXroaSJY4RqxO9nGDmmiovfrlelQfVYwl4n0tNFuFEE+sYWzpLI6DO0uGxq 2sgY5JACsVSIUQniiba76g1yEnI/A2/sAXgLbEBqOAmHyoRCGLoWkYcTDhiSdJQiJn sHJAwvjYDOnrkw7v+IG7W8dex13cyBQuRIB2nC5tNFqwnTbH6K+zA3n1J0v/xJ8kmT btorCYbo19TvKKE0noQAxSbf+RlYkL9TNOHoXnpJ7/p2TidMCsw5j/zIgXLETewdBV RuWnfVX9duQ2tNByQJzD1u+zjDEIhohlrlVevwxFU4pLW/aM6+R+ps/G1oEb1azgEZ JVkv/+BgUnVXQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jack Yu , Mark Brown , Sasha Levin , oder_chiou@realtek.com, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org Subject: [PATCH AUTOSEL 6.6 14/43] ASoC: rt715-sdca: volume step modification Date: Tue, 7 May 2024 19:09:35 -0400 Message-ID: <20240507231033.393285-14-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507231033.393285-1-sashal@kernel.org> References: <20240507231033.393285-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.6.30 Content-Transfer-Encoding: 8bit From: Jack Yu [ Upstream commit bda16500dd0b05e2e047093b36cbe0873c95aeae ] Volume step (dB/step) modification to fix format error which shown in amixer control. Signed-off-by: Jack Yu Link: https://lore.kernel.org/r/b1f546ad16dc4c7abb7daa7396e8345c@realtek.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/rt715-sdca.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/rt715-sdca.c b/sound/soc/codecs/rt715-sdca.c index 9fa96fd83d4aa..84f1dc453e971 100644 --- a/sound/soc/codecs/rt715-sdca.c +++ b/sound/soc/codecs/rt715-sdca.c @@ -316,7 +316,7 @@ static int rt715_sdca_set_amp_gain_8ch_get(struct snd_kcontrol *kcontrol, return 0; } -static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -17625, 375, 0); +static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -1725, 75, 0); static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, 0, 1000, 0); static int rt715_sdca_get_volsw(struct snd_kcontrol *kcontrol, @@ -477,7 +477,7 @@ static const struct snd_kcontrol_new rt715_sdca_snd_controls[] = { RT715_SDCA_FU_VOL_CTRL, CH_01), SDW_SDCA_CTL(FUN_MIC_ARRAY, RT715_SDCA_FU_ADC7_27_VOL, RT715_SDCA_FU_VOL_CTRL, CH_02), - 0x2f, 0x7f, 0, + 0x2f, 0x3f, 0, rt715_sdca_set_amp_gain_get, rt715_sdca_set_amp_gain_put, in_vol_tlv), RT715_SDCA_EXT_TLV("FU02 Capture Volume", @@ -485,13 +485,13 @@ static const struct snd_kcontrol_new rt715_sdca_snd_controls[] = { RT715_SDCA_FU_VOL_CTRL, CH_01), rt715_sdca_set_amp_gain_4ch_get, rt715_sdca_set_amp_gain_4ch_put, - in_vol_tlv, 4, 0x7f), + in_vol_tlv, 4, 0x3f), RT715_SDCA_EXT_TLV("FU06 Capture Volume", SDW_SDCA_CTL(FUN_MIC_ARRAY, RT715_SDCA_FU_ADC10_11_VOL, RT715_SDCA_FU_VOL_CTRL, CH_01), rt715_sdca_set_amp_gain_4ch_get, rt715_sdca_set_amp_gain_4ch_put, - in_vol_tlv, 4, 0x7f), + in_vol_tlv, 4, 0x3f), /* MIC Boost Control */ RT715_SDCA_BOOST_EXT_TLV("FU0E Boost", SDW_SDCA_CTL(FUN_MIC_ARRAY, RT715_SDCA_FU_DMIC_GAIN_EN, -- 2.43.0