Skip to content

Commit

Permalink
ASoC: Clear completions from late WM8996 FLL lock IRQs
Browse files Browse the repository at this point in the history
In case we have a pending completion, for example due to a problem with
the input clock which got corrected after we timed out.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
  • Loading branch information
Mark Brown committed Aug 22, 2011
1 parent 4df0cb2 commit a416194
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/codecs/wm8996.c
Original file line number Diff line number Diff line change
Expand Up @@ -2111,6 +2111,9 @@ static int wm8996_set_fll(struct snd_soc_codec *codec, int fll_id, int source,

snd_soc_write(codec, WM8996_FLL_EFS_1, fll_div.lambda);

/* Clear any pending completions (eg, from failed startups) */
try_wait_for_completion(&wm8996->fll_lock);

snd_soc_update_bits(codec, WM8996_FLL_CONTROL_1,
WM8996_FLL_ENA, WM8996_FLL_ENA);

Expand Down

0 comments on commit a416194

Please sign in to comment.