Unverified Commit a0ce874c authored by Niranjan H Y's avatar Niranjan H Y Committed by Mark Brown
Browse files

ASoC: ops: improve snd_soc_get_volsw



* clamp the values if the register value read is
  out of range

Signed-off-by: default avatarNiranjan H Y <niranjan.hy@ti.com>
[This patch originally had two changes in it, I removed a second buggy
 one -- broonie]
--
v5:
 - remove clamp parameter
 - move the boundary check after sign-bit extension
Link: https://patch.msgid.link/20250912083624.804-1-niranjan.hy@ti.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5998f0d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment