ASoC: ops: Fix off by one in range control validation
authorMark Brown <broonie@kernel.org>
Sat, 4 Jun 2022 10:52:46 +0000 (11:52 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jun 2022 19:38:08 +0000 (20:38 +0100)
commit5871321fb4558c55bf9567052b618ff0be6b975e
tree294904350b6cb8a3878faefd4c2cecc306987055
parent073350da0aa2aead9df7927a1c1046ebf5cdd816
ASoC: ops: Fix off by one in range control validation

We currently report that range controls accept a range of 0..(max-min) but
accept writes in the range 0..(max-min+1). Remove that extra +1.

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