Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4714bc01 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown
Browse files

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: default avatarRyo Tsutsui <ryo.tsutsui@wolfsonmicro.com>
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent e73a2571
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;