diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-12-28 00:41:33 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-12-28 00:41:33 +0100 |
commit | 4551ae0a24bba06972247a80f721fc21f6b2b758 (patch) | |
tree | 7e17b819ba34f73988d384161335ebe5729897ad /sound/soc/codecs/wm8958-dsp2.c | |
parent | Merge branch 'tegra/drivers' into next/drivers (diff) | |
parent | Linux 3.2-rc6 (diff) | |
download | linux-4551ae0a24bba06972247a80f721fc21f6b2b758.tar.xz linux-4551ae0a24bba06972247a80f721fc21f6b2b758.zip |
Merge branch 'v3.2-rc6' into next/drivers
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; |