Skip to content

Commit 825bd2a

Browse files
charleskeepaxgregkh
authored andcommitted
ASoC: cs42l51: Correct PGA Volume minimum value
[ Upstream commit 3d1bb6c ] The table in the datasheet actually shows the volume values in the wrong order, with the two -3dB values being reversed. This appears to have caused the lower of the two values to be used in the driver when the higher should have been, correct this mixup. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20221125162348.1288005-2-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 91582b3 commit 825bd2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/cs42l51.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static const struct snd_kcontrol_new cs42l51_snd_controls[] = {
146146
0, 0xA0, 96, adc_att_tlv),
147147
SOC_DOUBLE_R_SX_TLV("PGA Volume",
148148
CS42L51_ALC_PGA_CTL, CS42L51_ALC_PGB_CTL,
149-
0, 0x19, 30, pga_tlv),
149+
0, 0x1A, 30, pga_tlv),
150150
SOC_SINGLE("Playback Deemphasis Switch", CS42L51_DAC_CTL, 3, 1, 0),
151151
SOC_SINGLE("Auto-Mute Switch", CS42L51_DAC_CTL, 2, 1, 0),
152152
SOC_SINGLE("Soft Ramp Switch", CS42L51_DAC_CTL, 1, 1, 0),

0 commit comments

Comments
 (0)