aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm_adsp.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-24 00:35:48 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-24 00:42:27 +0800
commit338c5188f6fbccf3ef34a6ae46ada8f64565e1d0 (patch)
tree0b6df8e142eedc56275f6505959961fa528860d2 /sound/soc/codecs/wm_adsp.c
parent20da6d5ac05905833db4b339b57b9dcbd21b6152 (diff)
downloadvexpress-lsk-338c5188f6fbccf3ef34a6ae46ada8f64565e1d0.tar.gz
ASoC: wm_adsp: Correct handling of some coefficeint blocks
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm_adsp.c')
-rw-r--r--sound/soc/codecs/wm_adsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index bc5e3838599..55a0089d775 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -768,9 +768,10 @@ static int wm_adsp_load_coeff(struct wm_adsp *dsp)
&dsp->alg_regions, list) {
if (le32_to_cpu(blk->id) == alg_region->alg &&
type == alg_region->type) {
- reg = alg_region->base + offset;
+ reg = alg_region->base;
reg = wm_adsp_region_to_reg(mem,
reg);
+ reg += offset;
}
}