Correct Amp Output Level range, and playback volume
authorTracy Yi <tracy-yi@ti.com>
Fri, 2 Mar 2018 09:40:26 +0000 (17:40 +0800)
committerTracy Yi <tracy-yi@ti.com>
Fri, 2 Mar 2018 09:40:26 +0000 (17:40 +0800)
Signed-off-by: Tracy Yi <tracy-yi@ti.com>
tas2770-codec.c

index ce05bc2172cb77d994b2350ed5e6cb115ea8b954..3f64c20ff9f21501f01e9fb354eb0d248e454501 100644 (file)
@@ -509,11 +509,11 @@ static int tas2770_codec_remove(struct snd_soc_codec *codec)
 }
 
 static DECLARE_TLV_DB_SCALE(tas2770_digital_tlv, 1100, 50, 0);
-static DECLARE_TLV_DB_SCALE(tas2770_playback_volume, -10000, 50, 0);
+static DECLARE_TLV_DB_SCALE(tas2770_playback_volume, -12750, 50, 0);
 
 static const struct snd_kcontrol_new tas2770_snd_controls[] = {
        SOC_SINGLE_TLV("Amp Output Level", TAS2770_PlaybackConfigurationReg0,
-               0, TAS2770_PlaybackConfigurationReg0_AmplifierLevel40_Mask, 0,
+               0, 0x14, 0,
                tas2770_digital_tlv),
        SOC_SINGLE_TLV("Playback Volume", TAS2770_PlaybackConfigurationReg2,
                0, TAS2770_PlaybackConfigurationReg2_DVCPCM70_Mask, 1,