ASoC: WM8958: correctly show firmware magic on mismatch
Subsystems (3)
PATCH 1/1 ASoC: WM8958: correctly show firmware magic on mismatch
Signed-off-by Jonathan Neuschäfer <[email protected]>
---
This patch is untested.
sound/soc/codecs/wm8958-dsp2.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/codecs/wm8958-dsp2.c +2 -0
@@ -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;
Signature · 1 line
1.7.7.3
Mark Brown
AppliedQuoted 1 line · Jonathan Neuschäfer
Signed-off-by Jonathan Neuschäfer <[email protected]>
Applied, thanks.