Skip to content

Commit 62e4a13

Browse files
neuschaeferbroonie
authored andcommitted
ASoC: WM8958: correctly show firmware magic on mismatch
Signed-off-by: Jonathan Neuschäfer <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 9fd369b commit 62e4a13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/codecs/wm8958-dsp2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ static int wm8958_dsp2_fw(struct snd_soc_codec *codec, const char *name,
6060
}
6161

6262
if (memcmp(fw->data, "WMFW", 4) != 0) {
63+
memcpy(&data32, fw->data, sizeof(data32));
64+
data32 = be32_to_cpu(data32);
6365
dev_err(codec->dev, "%s: firmware has bad file magic %08x\n",
6466
name, data32);
6567
goto err;

0 commit comments

Comments
 (0)