diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2017-04-06 07:51:53 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-04-06 14:26:41 -0400 |
commit | 303e8954af8daa087e4f42788672d280337071ab (patch) | |
tree | d5146ac2fd1d43ad808c562e11b588c97d6cc7b7 | |
parent | 84fdc00d519ffdf8ae6e34d7841bcc6f38928953 (diff) |
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 <daniel.baluta@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/wm8960.c | 4 |
1 files changed, 4 insertions, 0 deletions
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, | |||
724 | break; | 724 | break; |
725 | } | 725 | } |
726 | } | 726 | } |
727 | if (k != ARRAY_SIZE(bclk_divs)) | ||
728 | break; | ||
727 | } | 729 | } |
730 | if (j != ARRAY_SIZE(dac_divs)) | ||
731 | break; | ||
728 | } | 732 | } |
729 | 733 | ||
730 | if (*bclk_idx != -1) | 734 | if (*bclk_idx != -1) |