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

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
...@@ -724,7 +724,11 @@ int wm8960_configure_pll(struct snd_soc_codec *codec, int freq_in, ...@@ -724,7 +724,11 @@ int wm8960_configure_pll(struct snd_soc_codec *codec, int freq_in,
break; break;
} }
} }
if (k != ARRAY_SIZE(bclk_divs))
break;
} }
if (j != ARRAY_SIZE(dac_divs))
break;
} }
if (*bclk_idx != -1) if (*bclk_idx != -1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment