Skip to content

Commit

Permalink
ASoC: Ensure we always delay for WM8962 FLL when starting from SYSCLK
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
  • Loading branch information
broonie committed Nov 1, 2011
1 parent 2af8de8 commit 0b7dd6a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions sound/soc/codecs/wm8962.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0b7dd6a

Please sign in to comment.