diff options
author | Mark Brown | 2022-01-28 19:24:43 +0000 |
---|---|---|
committer | Mark Brown | 2022-01-28 20:55:39 +0000 |
commit | 1601033da2dd2052e0489137f7788a46a8fcd82f (patch) | |
tree | 8a18c9e6fb3d0ba1bebee1d92ee5a8e63a08f81f /samples | |
parent | 4c38f8747c5769a272bc6557c2504d218f01914e (diff) |
ASoC: ops: Check for negative values before reading them
The controls allow inputs to be specified as negative but our manipulating
them into register fields need to be done on unsigned variables so the
checks for negative numbers weren't taking effect properly. Do the checks
for negative values on the variable in the ABI struct rather than on our
local unsigned copy.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220128192443.3504823-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions