aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8994.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-15 14:12:18 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-17 00:15:00 -0400
commitf0f5039c3dcc6f80756128aa38f2a4f5b895bbf1 (patch)
treeac129fd3a0e51030fd3071396a47ba0acfc8be66 /sound/soc/codecs/wm8994.c
parent1479c3fb5f0ca8410428006cb04ca27263beea25 (diff)
ASoC: Handle failed WM8994 FLL lock waits
Try the completion before we start the FLL so that if an interrupt was delayed long enough for us to miss it we don't wait for the completion it signalled. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8994.c')
-rw-r--r--sound/soc/codecs/wm8994.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index ee64be2d9942..c749ef339665 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -1713,6 +1713,9 @@ static int _wm8994_set_fll(struct snd_soc_codec *codec, int id, int src,
1713 (fll.clk_ref_div << WM8994_FLL1_REFCLK_DIV_SHIFT) | 1713 (fll.clk_ref_div << WM8994_FLL1_REFCLK_DIV_SHIFT) |
1714 (src - 1)); 1714 (src - 1));
1715 1715
1716 /* Clear any pending completion from a previous failure */
1717 try_wait_for_completion(&wm8994->fll_locked[id]);
1718
1716 /* Enable (with fractional mode if required) */ 1719 /* Enable (with fractional mode if required) */
1717 if (freq_out) { 1720 if (freq_out) {
1718 if (fll.k) 1721 if (fll.k)