Skip to content

Commit 3911ea7

Browse files
brooniegregkh
authored andcommitted
ASoC: Ensure we always delay for WM8962 FLL when starting from SYSCLK
commit 0b7dd6a upstream. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 5b8cf7c commit 3911ea7

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

‎sound/soc/codecs/wm8962.c‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2233,15 +2233,14 @@ static int sysclk_event(struct snd_soc_dapm_widget *w,
22332233

22342234
snd_soc_update_bits(codec, WM8962_FLL_CONTROL_1,
22352235
WM8962_FLL_ENA, WM8962_FLL_ENA);
2236-
if (wm8962->irq) {
2237-
timeout = msecs_to_jiffies(5);
2238-
timeout = wait_for_completion_timeout(&wm8962->fll_lock,
2239-
timeout);
2240-
2241-
if (timeout == 0)
2242-
dev_err(codec->dev,
2243-
"Timed out starting FLL\n");
2244-
}
2236+
2237+
timeout = msecs_to_jiffies(5);
2238+
timeout = wait_for_completion_timeout(&wm8962->fll_lock,
2239+
timeout);
2240+
2241+
if (wm8962->irq && timeout == 0)
2242+
dev_err(codec->dev,
2243+
"Timed out starting FLL\n");
22452244
}
22462245
break;
22472246

0 commit comments

Comments
 (0)