From 4f9d8467821bb9a949cd51bd5c61705856c14c9f Mon Sep 17 00:00:00 2001 From: Joerg Schambacher Date: Fri, 2 Sep 2022 11:50:16 +0200 Subject: [PATCH] ASoC:ma120x0p: Extend the volume range to -144dB (mute) Adjusts the usable volume range down to -144dB to allow 'muting' of the amplifier through volume control. Signed-off-by: Joerg Schambacher --- sound/soc/codecs/ma120x0p.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/ma120x0p.c b/sound/soc/codecs/ma120x0p.c index ac812e83178da3..992c72cf0f5a56 100644 --- a/sound/soc/codecs/ma120x0p.c +++ b/sound/soc/codecs/ma120x0p.c @@ -894,13 +894,13 @@ static SOC_VALUE_ENUM_SINGLE_DECL(pwr_mode_ctrl, pwr_mode_values); static const DECLARE_TLV_DB_SCALE(ma120x0p_vol_tlv, -5000, 100, 0); -static const DECLARE_TLV_DB_SCALE(ma120x0p_lim_tlv, -5000, 100, 0); +static const DECLARE_TLV_DB_SCALE(ma120x0p_lim_tlv, -14400, 100, 0); static const DECLARE_TLV_DB_SCALE(ma120x0p_lr_tlv, -5000, 100, 0); static const struct snd_kcontrol_new ma120x0p_snd_controls[] = { //Master Volume SOC_SINGLE_RANGE_TLV("A.Mstr Vol Volume", - ma_vol_db_master__a, 0, 0x18, 0x4a, 1, ma120x0p_vol_tlv), + ma_vol_db_master__a, 0, 0x18, 0xa8, 1, ma120x0p_vol_tlv), //L-R Volume ch0 SOC_SINGLE_RANGE_TLV("B.L Vol Volume",