Skip to contentSkip to conversation

ASoC: rt1015: DAC volume range modification.

PATCH New [email protected] 1 participant 1 message Jul 1, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: rt1015: DAC volume range modification.

From: Jack Yu <[email protected]>

RT1015 dac volume range modification.

---
 sound/soc/codecs/rt1015.c | 4 ++--
 sound/soc/codecs/rt1015.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/rt1015.c +2 -2
index 548f68649064..90bd7e22ec3b 100644
@@ -401,7 +401,7 @@ static bool rt1015_readable_register(struct device *dev, unsigned int reg)
 	}
 }
 
-static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -9525, 75, 0);
+static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -95625, 375, 0);
 
 static const char * const rt1015_din_source_select[] = {
 	"Left",
@@ -517,7 +517,7 @@ static int rt1015_bypass_boost_put(struct snd_kcontrol *kcontrol,
 
 static const struct snd_kcontrol_new rt1015_snd_controls[] = {
 	SOC_SINGLE_TLV("DAC Playback Volume", RT1015_DAC1, RT1015_DAC_VOL_SFT,
-		127, 0, dac_vol_tlv),
+		255, 0, dac_vol_tlv),
 	SOC_DOUBLE("DAC Playback Switch", RT1015_DAC3,
 		RT1015_DA_MUTE_SFT, RT1015_DVOL_MUTE_FLAG_SFT, 1, 1),
 	SOC_ENUM_EXT("Boost Mode", rt1015_boost_mode_enum,
sound/soc/codecs/rt1015.h +2 -2
index 7bd159e8f958..cc1ae33ca753 100644
@@ -214,8 +214,8 @@
 #define RT1015_ID_VERB				0x1
 
 /* 0x0102 */
-#define RT1015_DAC_VOL_MASK			(0x7f << 9)
-#define RT1015_DAC_VOL_SFT			9
+#define RT1015_DAC_VOL_MASK			(0xff << 8)
+#define RT1015_DAC_VOL_SFT			8
 
 /* 0x0104 */
 #define RT1015_DAC_CLK				(0x1 << 13)
Signature · 1 line
2.27.0