ASoC: topology: Fix endianness issue
[sfrench/cifs-2.6.git] / sound / soc / soc-topology.c
index 33e8d189ba2f694930351b7433d85082352965b6..6df3b0d12d87d5355fe130497ab0e96fc082f75c 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,