ASoC:ma120x0p: Corrects the volume level display
authorJoerg Schambacher <joerg@hifiberry.com>
Tue, 15 Nov 2022 17:04:45 +0000 (18:04 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Tue, 15 Nov 2022 17:22:36 +0000 (17:22 +0000)
Fixes the wrongly changed 'limiter volume' display back to -50dB minimum
and sets the correct minimum volume level to -144dB to be aligned with
the controls and display in alsamixer etc.

Signed-off-by: Joerg Schambacher <joerg@hifiberry.com>
sound/soc/codecs/ma120x0p.c

index 992c72c..596dd08 100644 (file)
@@ -893,8 +893,8 @@ static SOC_VALUE_ENUM_SINGLE_DECL(pwr_mode_ctrl,
        pwr_mode_texts,
        pwr_mode_values);
 
-static const DECLARE_TLV_DB_SCALE(ma120x0p_vol_tlv, -5000, 100,  0);
-static const DECLARE_TLV_DB_SCALE(ma120x0p_lim_tlv, -14400, 100,  0);
+static const DECLARE_TLV_DB_SCALE(ma120x0p_vol_tlv, -14400, 100,  0);
+static const DECLARE_TLV_DB_SCALE(ma120x0p_lim_tlv, -5000, 100,  0);
 static const DECLARE_TLV_DB_SCALE(ma120x0p_lr_tlv, -5000, 100,  0);
 
 static const struct snd_kcontrol_new ma120x0p_snd_controls[] = {