summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2014-07-09 17:41:43 +0100
committerMark Brown <broonie@linaro.org>2014-07-10 12:09:14 +0200
commit4714bc015de147c2da5248762b2772c6dbf160eb (patch)
tree7c09b92c9cb43e560970c2a846b61b20558ee24f /sound
parente73a2571988870372f7f2b6072a98f49e414be66 (diff)
downloadop-kernel-dev-4714bc015de147c2da5248762b2772c6dbf160eb.zip
op-kernel-dev-4714bc015de147c2da5248762b2772c6dbf160eb.tar.gz
ASoC: arizona: Do not test ratio zero as it is not a valid setting
Zero is not a valid FRATIO for the FLL, as such we shouldn't test it whilst refining the FRATIO. This patch does just that. Reported-by: Ryo Tsutsui <ryo.tsutsui@wolfsonmicro.com> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/arizona.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c
index 41b56ee..b03974e 100644
--- a/sound/soc/codecs/arizona.c
+++ b/sound/soc/codecs/arizona.c
@@ -1585,7 +1585,7 @@ static int arizona_calc_fratio(struct arizona_fll *fll,
}
}
- for (ratio = init_ratio - 1; ratio >= 0; ratio--) {
+ for (ratio = init_ratio - 1; ratio > 0; ratio--) {
if (ARIZONA_FLL_VCO_CORNER / (fll->vco_mult * ratio) <
Fref)
break;
OpenPOWER on IntegriCloud