diff options
author | Mark Brown <[email protected]> | 2022-06-03 13:25:08 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-06-14 11:33:47 +0100 |
commit | 30ac49841386f933339817771ec315a34a4c0edd (patch) | |
tree | 28afc612cabd4b168b81f1d1fc196baf7d5ee5e0 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 14cc5849120051caf537f663ec620910503bb719 (diff) |
ASoC: ops: Don't modify the driver's plaform_max when reading state
Currently snd_soc_info_volsw() will set a platform_max based on the limit
the control has if one is not already set. This isn't really great, we
shouldn't be modifying the passed in driver data especially in a path like
this which may not ever be executed or where we may execute other callbacks
before this one. Instead make this function leave the data unchanged, and
clarify things a bit by referring to max rather than platform_max within
the function. platform_max is now applied as a limit after working out the
natural maximum value for the control.
This means that platform_max is no longer treated as a direct register
value for controls were min is non-zero. The put() callbacks already
validate on this basis, and there do not appear to be any in tree users
that would be affected.
Signed-off-by: Mark Brown <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions