From: Mark Brown Date: Tue, 1 Nov 2011 13:53:54 +0000 (+0000) Subject: ASoC: Ensure we always delay for WM8962 FLL when starting from SYSCLK X-Git-Tag: v3.2-rc1~38^2~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b7dd6ad92b6cace35dc5d06d6e236c2751c85dc;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git ASoC: Ensure we always delay for WM8962 FLL when starting from SYSCLK Signed-off-by: Mark Brown Cc: stable@kernel.org --- diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index a0c895b..91d3c6d 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -2366,15 +2366,14 @@ static int sysclk_event(struct snd_soc_dapm_widget *w, snd_soc_update_bits(codec, WM8962_FLL_CONTROL_1, WM8962_FLL_ENA, WM8962_FLL_ENA); - if (wm8962->irq) { - timeout = msecs_to_jiffies(5); - timeout = wait_for_completion_timeout(&wm8962->fll_lock, - timeout); - - if (timeout == 0) - dev_err(codec->dev, - "Timed out starting FLL\n"); - } + + timeout = msecs_to_jiffies(5); + timeout = wait_for_completion_timeout(&wm8962->fll_lock, + timeout); + + if (wm8962->irq && timeout == 0) + dev_err(codec->dev, + "Timed out starting FLL\n"); } break;