]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: wcd934x: fix kcontrol max values
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 22 Feb 2022 18:32:11 +0000 (18:32 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 23 Feb 2022 02:04:08 +0000 (02:04 +0000)
commit6d374af381cb933ff553776d5f7882c95b6308c3
treedc0e3311987cd5cffea5619e3d8b5d07729252ef
parent37887efb35a62b6423b8ca904110fc062949535d
ASoC: codecs: wcd934x: fix kcontrol max values

set "HPH Type" Kcontrol max value of WCD_MBHC_HPH_STEREO instead of UINT_MAX.
set "HPHL/R Impedance" Kcontrols max value to INT_MAX instead of UINT_MAX as
max field is integer type.

Without this patch amixer for these controls will show -1 as max value to userspace.

Fixes: 37fe44457ab9 ("ASoC: codecs: wcd934x: add mbhc support")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220222183212.11580-9-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd934x.c