瀏覽代碼

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>
Charles Keepax 11 年之前
父節點
當前提交
d733dc0828
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      sound/soc/codecs/wm_adsp.c

+ 1 - 0
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;
 				}
 			}