projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c824ec
)
ASoC: topology: Fix endianness issue
author
Amadeusz Sławiński
<amadeuszx.slawinski@linux.intel.com>
Wed, 15 Apr 2020 16:24:35 +0000
(12:24 -0400)
committer
Mark Brown
<broonie@kernel.org>
Wed, 15 Apr 2020 16:59:00 +0000
(17:59 +0100)
As done in already existing cases, we should use le32_to_cpu macro while
accessing hdr->magic. Found with sparse.
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link:
https://lore.kernel.org/r/20200415162435.31859-2-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-topology.c
b/sound/soc/soc-topology.c
index
33e8d18
..
6df3b0d
100644
(file)
--- a/
sound/soc/soc-topology.c
+++ b/
sound/soc/soc-topology.c
@@
-2652,7
+2652,7
@@
static int soc_valid_header(struct soc_tplg *tplg,
}
/* big endian firmware objects not supported atm */
- if (
hdr->magic
== SOC_TPLG_MAGIC_BIG_ENDIAN) {
+ if (
le32_to_cpu(hdr->magic)
== SOC_TPLG_MAGIC_BIG_ENDIAN) {
dev_err(tplg->dev,
"ASoC: pass %d big endian not supported header got %x at offset 0x%lx size 0x%zx.\n",
tplg->pass, hdr->magic,