diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-12-15 12:56:04 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-12-15 12:56:04 +0100 |
commit | 844ec3142af3b8fd7b9aa95886015eabed80983e (patch) | |
tree | 77ad6fe364195d9ccb8ec661be937dfcad38b3a3 /sound/soc/codecs/wm8958-dsp2.c | |
parent | 645e903528ca6cd510f9ac71a6a23de1a4d931e3 (diff) | |
parent | 497d496598f411cb7f0690725a0e8b9029cebdb9 (diff) |
Merge branch 'fix/asoc' into for-linus
Diffstat (limited to 'sound/soc/codecs/wm8958-dsp2.c')
-rw-r--r-- | sound/soc/codecs/wm8958-dsp2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8958-dsp2.c b/sound/soc/codecs/wm8958-dsp2.c index 0293763debe5..5a14d5c0e0e1 100644 --- a/sound/soc/codecs/wm8958-dsp2.c +++ b/sound/soc/codecs/wm8958-dsp2.c @@ -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; |