[alsa-devel] [PATCH 4/4] ASoC: wm8962: Reinitialise the IRQ completion rather than just trying it

Mark Brown broonie at kernel.org
Fri Jan 31 16:30:01 CET 2014


From: Mark Brown <broonie at linaro.org>

This is better practice.

Signed-off-by: Mark Brown <broonie at linaro.org>
---
 sound/soc/codecs/wm8962.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 55bf3f493dab..1663b6b6eb35 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -2884,7 +2884,7 @@ static int wm8962_set_fll(struct snd_soc_codec *codec, int fll_id, int source,
 	snd_soc_write(codec, WM8962_FLL_CONTROL_7, fll_div.lambda);
 	snd_soc_write(codec, WM8962_FLL_CONTROL_8, fll_div.n);
 
-	try_wait_for_completion(&wm8962->fll_lock);
+	reinit_completion(&wm8962->fll_lock);
 
 	ret = pm_runtime_get_sync(codec->dev);
 	if (ret < 0) {
-- 
1.9.rc1



More information about the Alsa-devel mailing list