diff options
author | Richard Fitzgerald <[email protected]> | 2020-12-30 17:24:26 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-12-31 13:26:23 +0000 |
commit | a0b653e89a3afd2a833f23589a83488fac842ddb (patch) | |
tree | bc850988d406b76e816e3ac3f1333c7e6b9a83e3 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | e9141c1aaa72782b9de7b224cd184a809aa4a87f (diff) |
ASoC: wm_adsp: Only use __be32 for big-endian data
This fixes some minor cases where u32 or unsigned int types were used
to store big-endian data, and __be32 types used to store both big-endian
and cpu-endian data. This was producing sparse warnings.
Most cases resulted from using the same variable to hold the big-endian
value and its converted cpu-endian value. These can be simply fixed by
introducing another local variable, or avoiding storing the intermediate
value back into the original variable.
One special case is the raw_buf used in the compressed streams to transfer
data from DSP to user-side. The endian conversion happens in-place (as
there's no point introducing another buffer) so a cast to (__be32 *) is
added when passing it to wm_adsp_read_raw_data_block().
Signed-off-by: Richard Fitzgerald <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions