Skip to content

Commit

Permalink
ASoC: Wait for WM8993 FLL to stabilise
Browse files Browse the repository at this point in the history
Ensure the FLL is locked before we return from set_fll().

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Jan 17, 2012
1 parent 675c496 commit 986b2f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sound/soc/codecs/wm8993.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 986b2f2

Please sign in to comment.