]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: wm_adsp: Stop region iteration when the desired region is found
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 28 Nov 2013 16:37:51 +0000 (16:37 +0000)
committerMark Brown <broonie@linaro.org>
Thu, 28 Nov 2013 18:12:41 +0000 (18:12 +0000)
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>
sound/soc/codecs/wm_adsp.c

index 46ec0e9744d4b88b50cc922cfdc65a0b4247e567..b42f9af163c81248fe55c152d46f1a632f5884db 100644 (file)
@@ -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;
                                }
                        }