mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 00:52:01 +00:00
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 <dobias@2n.cz> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20200515120757.24669-1-dobias@2n.cz Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
0e36f32f6b
commit
8ba4dc3cff
@ -46,13 +46,13 @@ static const SNDRV_CTL_TLVD_DECLARE_DB_RANGE(max9867_micboost_tlv,
|
||||
|
||||
static const struct snd_kcontrol_new max9867_snd_controls[] = {
|
||||
SOC_DOUBLE_R_TLV("Master Playback Volume", MAX9867_LEFTVOL,
|
||||
MAX9867_RIGHTVOL, 0, 41, 1, max9867_master_tlv),
|
||||
MAX9867_RIGHTVOL, 0, 40, 1, max9867_master_tlv),
|
||||
SOC_DOUBLE_R_TLV("Line Capture Volume", MAX9867_LEFTLINELVL,
|
||||
MAX9867_RIGHTLINELVL, 0, 15, 1, max9867_line_tlv),
|
||||
SOC_DOUBLE_R_TLV("Mic Capture Volume", MAX9867_LEFTMICGAIN,
|
||||
MAX9867_RIGHTMICGAIN, 0, 20, 1, max9867_mic_tlv),
|
||||
SOC_DOUBLE_R_TLV("Mic Boost Capture Volume", MAX9867_LEFTMICGAIN,
|
||||
MAX9867_RIGHTMICGAIN, 5, 4, 0, max9867_micboost_tlv),
|
||||
MAX9867_RIGHTMICGAIN, 5, 3, 0, max9867_micboost_tlv),
|
||||
SOC_SINGLE("Digital Sidetone Volume", MAX9867_SIDETONE, 0, 31, 1),
|
||||
SOC_SINGLE_TLV("Digital Playback Volume", MAX9867_DACLEVEL, 0, 15, 1,
|
||||
max9867_dac_tlv),
|
||||
|
Loading…
Reference in New Issue
Block a user