summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm_adsp.c
diff options
context:
space:
mode:
authorCharles Keepax2013-11-28 17:37:51 +0100
committerMark Brown2013-11-28 19:12:41 +0100
commitd733dc0828cfb230171ae7420a6e8c344ec8473a (patch)
treee0aa92422b92c3831da0d9a72e303aca3584ca60 /sound/soc/codecs/wm_adsp.c
parentmfd: wm5110: Give new AIF2 registers defaults and mark as readable (diff)
downloadkernel-qcow2-linux-d733dc0828cfb230171ae7420a6e8c344ec8473a.tar.gz
kernel-qcow2-linux-d733dc0828cfb230171ae7420a6e8c344ec8473a.tar.xz
kernel-qcow2-linux-d733dc0828cfb230171ae7420a6e8c344ec8473a.zip
ASoC: wm_adsp: Stop region iteration when the desired region is found
When locating the memory region relating to a coefficient block written through a bin file we keep processing the list of regions even after we have found the region we require. This patch adds a break, so we don't process redundant list items. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/wm_adsp.c')
-rw-r--r--sound/soc/codecs/wm_adsp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index 46ec0e9744d4..b42f9af163c8 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -1286,6 +1286,7 @@ static int wm_adsp_load_coeff(struct wm_adsp *dsp)
reg = wm_adsp_region_to_reg(mem,
reg);
reg += offset;
+ break;
}
}