mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
ASoC: max9867: fix volume controls
commit 8ba4dc3cff upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ac0175f9dd
commit
d4a13e6711
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user