Skip to content

Commit

Permalink
ASoC: arizona: Do not test ratio zero as it is not a valid setting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Charles Keepax authored and Mark Brown committed Jul 10, 2014
1 parent e73a257 commit 4714bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4714bc0

Please sign in to comment.