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

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

ASoC: arizona: An OUTDIV of 1 is not valid, avoid this



One is not a valid value for the OUTDIV start searching at 2 instead.

Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent fab800cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1406,7 +1406,7 @@ static int arizona_calc_fll(struct arizona_fll *fll,
	Fref /= div;
	Fref /= div;


	/* Fvco should be over the targt; don't check the upper bound */
	/* Fvco should be over the targt; don't check the upper bound */
	div = 1;
	div = 2;
	while (Fout * div < 90000000 * fll->vco_mult) {
	while (Fout * div < 90000000 * fll->vco_mult) {
		div++;
		div++;
		if (div > 7) {
		if (div > 7) {