Skip to content

Commit c79a462

Browse files
charleskeepaxgregkh
authored andcommitted
ASoC: cs42l43: Fix maximum ADC Volume
[ Upstream commit e26f1cf ] The range of ADC volume is -1 -> 3 (-6 to 18dB) so the number of levels should actually be 4. Fixes: fc918cb ("ASoC: cs42l43: Add support for the cs42l43") Signed-off-by: Charles Keepax <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent cebcc1f commit c79a462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/cs42l43.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ static const struct snd_kcontrol_new cs42l43_controls[] = {
11461146

11471147
SOC_DOUBLE_R_SX_TLV("ADC Volume", CS42L43_ADC_B_CTRL1, CS42L43_ADC_B_CTRL2,
11481148
CS42L43_ADC_PGA_GAIN_SHIFT,
1149-
0xF, 5, cs42l43_adc_tlv),
1149+
0xF, 4, cs42l43_adc_tlv),
11501150

11511151
SOC_DOUBLE("PDM1 Invert Switch", CS42L43_DMIC_PDM_CTRL,
11521152
CS42L43_PDM1L_INV_SHIFT, CS42L43_PDM1R_INV_SHIFT, 1, 0),

0 commit comments

Comments
 (0)