Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp168978lqo; Tue, 7 May 2024 16:25:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXuSY1cUVsuUt9ac7is3ODT0TN0aFBDuaCu/ElM1o58J8z6rqG3klBU+WS8SWp4qq5RmmMk0K5efdV67Y5dBoZhcyfNb9cqXjSFaKC7yg== X-Google-Smtp-Source: AGHT+IHaon/XXFbRaKHFe0OxvMGxFfXst++8Dx9dJVWU5erZouhl5UfVhI4BfWT6lu56O/h0DEEA X-Received: by 2002:ac2:44cb:0:b0:51d:1c56:b0f1 with SMTP id 2adb3069b0e04-5217c56715fmr647964e87.17.1715124354965; Tue, 07 May 2024 16:25:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715124354; cv=pass; d=google.com; s=arc-20160816; b=DEwcRjSIpMFPCjok3nxHPqXyaXZb1LhEM2kVtOwNerFmOCsJ+DDNdwxjLwp6cPGvRT iFWUl2JAbGD2UdsQ1dK5Y92LtVax+FWvr56kTxnzm3YGd7cXR2qLdMYfQaqDJhwfSHFl rRj7TmhkGoLbn4b9iSuLfxoSzs3t/kgSzgr2NB7Stsl73k59Fh2rxWJApqLYt3OtnHUf Tb/+eznRkgBRXUDtO/cpXcK3CHJOumszRr9fvsWy7To1+c+HAxmCREpEjKSROinnh0XR mvqeOaiAVdEIwGdPeK5Fdvhzo1i7lB0HviypqrYDhh5OutUYhBqS+Dx0MfBOEuM0QvIK OfQA== 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=zByb8foSadjpSRoNbLDWguNKkf8i0SGrGHgmvzwsZBk=; fh=CL9T5IU3cyk3BqPmaWbfpo3+d1IboHBgSMTrmJzto98=; b=UBMVYsmCRCjo0jANONZlbQcKQ/WiQ9erSfhQufx04mub341QWnjFKAJar+vqL0XPXa h/m6oeGurvJrWu9ZnfwEdbroqdGjgES86ZBo499FB/DaY1XqMC58VvViL+30aJnZenRT CKv/Dh10ABnnVDxX3MXi1GNdd+A7baUONixKuTEBUW8ylAw1LD/V+oHpMVBhxUfRIwGy uOti5E5eBcJKIgOHUDINWjazdKNdPH1G5BCmh4I7BYNLvDquS3P6gDHRbI6CZstTFGRS tTJ06Bgqod1NKZ3yMcLvsy0zG3mmnJWIZwoYSs9gXS/+620HyYbSxlm5qgoijCXkkrpn E1aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IUNi8rlT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172359-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172359-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x17-20020a1709060a5100b00a59afce5a36si4163608ejf.909.2024.05.07.16.25.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 16:25:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172359-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IUNi8rlT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172359-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172359-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AE5F11F21F1A for ; Tue, 7 May 2024 23:25:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A2427C0B7; Tue, 7 May 2024 23:08:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IUNi8rlT" 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 BC8F41339BD; Tue, 7 May 2024 23:08:32 +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=1715123312; cv=none; b=Bh3w4bMgF6CjMM0k3gg9j0NXgfDsutSumn8PDkm+3jAemDpnrvkLYbfSe7VgPNI/vcTWm5VxfEuG2pW8+tjNa0/kCeMHzYvh6iKP+Gu7BBIoyfdDoJkcWRb7Aq9ZZQLsFy8GjB7+uf4D6a/dKGJZa0xOmNbcIlI4tkvpE0S2zbQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123312; c=relaxed/simple; bh=nfxRABvEcL9s3ufxhtofz0OYiIBR07Oe7SLJj7ZZ1YM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cjcd+Q5wk4bsg+RQFVoCz4HAKdd2BYduC3tdiGaUcyRx5MbZmWaLzTTMPEN6kS57TVW+4gbRJA8ew6eHxwlqFQNFm9SBeXufNDNXyqzitNKqVTvE2WALWk6ty539TeMWpfG3DfOfD4rSqObpoQG0umCWcKZMoOmf0sgP8LPdPA0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IUNi8rlT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8587AC4AF67; Tue, 7 May 2024 23:08:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715123312; bh=nfxRABvEcL9s3ufxhtofz0OYiIBR07Oe7SLJj7ZZ1YM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IUNi8rlTjpsU6gSxi27UwN1B2t6YgmHiEPS2zrallYBR3c/pEdomG1tZHPC7tl99e i7pHcJyEvI8Wm3SOmZ9Aw9DFN/eCyPp0XUfQ1z65yIZ0yTK5ilJxQh1iiDH1lDCspA BVRZKcSjogBPPeEVwKUDfvNmVVgcF7ySfrV+JoNre0u6NG6l4gipHtVRluEfYhKQoe mYVRRnZjSDeZ20nlSTPDDG3TEXq+VSsaeIPZuH+mOohurpkP5lX5ghU1n5aAfGNF7l b6sr37Sa6hfKyf6+mZPZP8oBq6HmwZck9+p1b9RNebZ3OoKxE02n/ad5Y9i0ot4/4W vALsasVz4l63Q== 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.8 17/52] ASoC: rt715-sdca: volume step modification Date: Tue, 7 May 2024 19:06:43 -0400 Message-ID: <20240507230800.392128-17-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507230800.392128-1-sashal@kernel.org> References: <20240507230800.392128-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.8.9 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 4533eedd7e189..27d17e3cc8027 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