Merge series "Add support for SOF on i.MX8M" from Daniel Baluta <daniel.baluta@oss...
[sfrench/cifs-2.6.git] / sound / soc / soc-topology.c
index a5cd73742dc535742f84300db0cfd98eb03189ba..49875978a1ce4fc7a63e2cc12085dfb8ea2444ba 100644 (file)
@@ -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,