From: Daniel Baluta Date: Thu, 6 Apr 2017 11:51:53 +0000 (+0300) Subject: ASoC: codec: wm8960: Stop when a matching PLL freq is found X-Git-Tag: v4.12-rc1~115^2^2^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=303e8954af8daa087e4f42788672d280337071ab;p=karo-tx-linux.git ASoC: codec: wm8960: Stop when a matching PLL freq is found When a matching PLL freq is found, searching continues even this is not necessary. The problem was introduced with the following refactoring commit 84fdc00d519ffd ("ASoC: codec: wm9860: Refactor PLL out freq search) Signed-off-by: Daniel Baluta Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c index 36c84549da23..ace69da97cb8 100644 --- a/sound/soc/codecs/wm8960.c +++ b/sound/soc/codecs/wm8960.c @@ -724,7 +724,11 @@ int wm8960_configure_pll(struct snd_soc_codec *codec, int freq_in, break; } } + if (k != ARRAY_SIZE(bclk_divs)) + break; } + if (j != ARRAY_SIZE(dac_divs)) + break; } if (*bclk_idx != -1)