diff options
author | Srinivas Kandagatla <[email protected]> | 2023-12-04 12:47:35 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-12-04 16:20:25 +0000 |
commit | fb9ad24485087e0f00d84bee7a5914640b2b9024 (patch) | |
tree | 8344bb750ff96c2de7412f5fa08f1cb0d7e78cf0 /scripts/generate_rust_analyzer.py | |
parent | e238b68e6dc89ddab52bd98216fe5623e94792b1 (diff) |
ASoC: ops: add correct range check for limiting volume
Volume can have ranges that start with negative values, ex: -84dB to
+40dB. Apply correct range check in snd_soc_limit_volume before setting
the platform_max. Without this patch, for example setting a 0dB limit on
a volume range of -84dB to +40dB would fail.
Signed-off-by: Srinivas Kandagatla <[email protected]>
Tested-by: Johan Hovold <[email protected]>
Reviewed-by: Johan Hovold <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions