Skip to content

Commit 8ba4dc3

Browse files
dobiaspbroonie
authored andcommitted
ASoC: max9867: fix volume controls
The xmax values for Master Playback Volume and Mic Boost Capture Volume are specified incorrectly (one greater) which results in the wrong dB gain being shown to the user in the case of Master Playback Volume. Signed-off-by: Pavel Dobias <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 0e36f32 commit 8ba4dc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/max9867.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ static const SNDRV_CTL_TLVD_DECLARE_DB_RANGE(max9867_micboost_tlv,
4646

4747
static const struct snd_kcontrol_new max9867_snd_controls[] = {
4848
SOC_DOUBLE_R_TLV("Master Playback Volume", MAX9867_LEFTVOL,
49-
MAX9867_RIGHTVOL, 0, 41, 1, max9867_master_tlv),
49+
MAX9867_RIGHTVOL, 0, 40, 1, max9867_master_tlv),
5050
SOC_DOUBLE_R_TLV("Line Capture Volume", MAX9867_LEFTLINELVL,
5151
MAX9867_RIGHTLINELVL, 0, 15, 1, max9867_line_tlv),
5252
SOC_DOUBLE_R_TLV("Mic Capture Volume", MAX9867_LEFTMICGAIN,
5353
MAX9867_RIGHTMICGAIN, 0, 20, 1, max9867_mic_tlv),
5454
SOC_DOUBLE_R_TLV("Mic Boost Capture Volume", MAX9867_LEFTMICGAIN,
55-
MAX9867_RIGHTMICGAIN, 5, 4, 0, max9867_micboost_tlv),
55+
MAX9867_RIGHTMICGAIN, 5, 3, 0, max9867_micboost_tlv),
5656
SOC_SINGLE("Digital Sidetone Volume", MAX9867_SIDETONE, 0, 31, 1),
5757
SOC_SINGLE_TLV("Digital Playback Volume", MAX9867_DACLEVEL, 0, 15, 1,
5858
max9867_dac_tlv),

0 commit comments

Comments
 (0)