git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ASoC: topology: Fix endianness issue
[sfrench/cifs-2.6.git]
/
sound
/
soc
/
soc-topology.c
diff --git
a/sound/soc/soc-topology.c
b/sound/soc/soc-topology.c
index 33e8d189ba2f694930351b7433d85082352965b6..6df3b0d12d87d5355fe130497ab0e96fc082f75c 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 */
}
/* 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,
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,