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

Commit 303e8954 authored by Daniel Baluta's avatar Daniel Baluta Committed by Mark Brown
Browse files

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 84fdc00d ("ASoC: codec: wm9860: Refactor PLL out freq search)

Signed-off-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 84fdc00d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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)