Skip to content

Commit 1613781

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: cs35l41: Correct amp_gain_tlv values
The current analog gain TLV seems to have completely incorrect values in it. The gain starts at 0.5dB, proceeds in 1dB steps, and has no mute value, correct the control to match. Signed-off-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 3b1f088 commit 1613781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/cs35l41.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static int cs35l41_get_fs_mon_config_index(int freq)
168168
static const DECLARE_TLV_DB_RANGE(dig_vol_tlv,
169169
0, 0, TLV_DB_SCALE_ITEM(TLV_DB_GAIN_MUTE, 0, 1),
170170
1, 913, TLV_DB_MINMAX_ITEM(-10200, 1200));
171-
static DECLARE_TLV_DB_SCALE(amp_gain_tlv, 0, 1, 1);
171+
static DECLARE_TLV_DB_SCALE(amp_gain_tlv, 50, 100, 0);
172172

173173
static const struct snd_kcontrol_new dre_ctrl =
174174
SOC_DAPM_SINGLE("Switch", CS35L41_PWR_CTRL3, 20, 1, 0);

0 commit comments

Comments
 (0)