ASoC: topology: KUnit: Convert from cpu to data format
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tue, 2 Feb 2021 16:31:23 +0000 (17:31 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 2 Feb 2021 17:08:21 +0000 (17:08 +0000)
commitbe6be67e135e59fb176b1e2e9d47a7436fb161d1
treec7ff1c798bdbb04cf8d10b1efeb0195b0c1970f6
parent68be8ed6a4622d4eb6cf7632bc7cb78464c83c78
ASoC: topology: KUnit: Convert from cpu to data format

When creating topology templates and overriding data in specific test
cases it should be done with cpu_to_le32 macro, so we operate on correct
data on all architectures, as topology parser use le32_to_cpu to parse
data from structures.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20210202163123.3942040-1-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology-test.c