ASoC: ops: Validate input values in snd_soc_put_volsw_range()
authorMark Brown <broonie@kernel.org>
Sat, 23 Apr 2022 13:12:39 +0000 (14:12 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 26 Apr 2022 14:13:36 +0000 (15:13 +0100)
commitaa22125c57f9e577f0a667e4fa07fc3fa8ca1e60
treebabd483d382775acfcfc2b7494482c372604fc11
parent660564fc9a92a893a14f255be434f7ea0b967901
ASoC: ops: Validate input values in snd_soc_put_volsw_range()

Check that values written via snd_soc_put_volsw_range() are
within the range advertised by the control, ensuring that we
don't write out of spec values to the hardware.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220423131239.3375261-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-ops.c