ASoC: max9867: fix volume controls
authorPavel Dobias <dobias@2n.cz>
Fri, 15 May 2020 12:07:57 +0000 (14:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jun 2020 14:40:26 +0000 (16:40 +0200)
commitd4a13e6711388ce03ac6774e51c839819ae041ca
treea41438d017f673b3e84b0e27e67a270e490051cd
parentac0175f9dd4d25c00d713f08c94a43b547605e95
ASoC: max9867: fix volume controls

commit 8ba4dc3cff8cbe2c571063a5fd7116e8bde563ca 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>
sound/soc/codecs/max9867.c