提交 986b2f2c 编写于 作者: M Mark Brown

ASoC: Wait for WM8993 FLL to stabilise

Ensure the FLL is locked before we return from set_fll().
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 675c496b
......@@ -444,6 +444,12 @@ static int _wm8993_set_fll(struct snd_soc_codec *codec, int fll_id, int source,
/* Enable the FLL */
snd_soc_write(codec, WM8993_FLL_CONTROL_1, reg1 | WM8993_FLL_ENA);
/* Both overestimates */
if (Fref < 1000000)
msleep(3);
else
msleep(1);
dev_dbg(codec->dev, "FLL enabled at %dHz->%dHz\n", Fref, Fout);
wm8993->fll_fref = Fref;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册