Skip to content

Commit

Permalink
ASoC: WM8958: correctly show firmware magic on mismatch
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Neuschäfer <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
neuschaefer authored and broonie committed Dec 12, 2011
1 parent 9fd369b commit 62e4a13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/codecs/wm8958-dsp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ static int wm8958_dsp2_fw(struct snd_soc_codec *codec, const char *name,
}

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

0 comments on commit 62e4a13

Please sign in to comment.