summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2017-04-06 14:51:53 +0300
committerMark Brown <broonie@kernel.org>2017-04-06 19:26:41 +0100
commit303e8954af8daa087e4f42788672d280337071ab (patch)
treed5146ac2fd1d43ad808c562e11b588c97d6cc7b7 /sound
parent84fdc00d519ffdf8ae6e34d7841bcc6f38928953 (diff)
downloadlinux-303e8954af8daa087e4f42788672d280337071ab.tar.gz
linux-303e8954af8daa087e4f42788672d280337071ab.tar.bz2
linux-303e8954af8daa087e4f42788672d280337071ab.zip
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8960.c4
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,
break;
}
}
+ if (k != ARRAY_SIZE(bclk_divs))
+ break;
}
+ if (j != ARRAY_SIZE(dac_divs))
+ break;
}
if (*bclk_idx != -1)