[alsa-devel] [PATCH] ASoC: soc-dapm: Use ASYNC_DOMAIN_EXCLUSIVE

Fabio Estevam festevam at gmail.com
Sat Jun 30 21:39:35 CEST 2012


From: Fabio Estevam <fabio.estevam at freescale.com>

commit e895407d (async: introduce 'async_domain' type)
changed the parameter types of async_schedule_domain() and async_synchronize_full_domain().

Use ASYNC_DOMAIN_EXCLUSIVE and fix the following build warnings:

sound/soc/soc-dapm.c:1646:6: warning: passing argument 3 of 'async_schedule_domain' from incompatible pointer type
sound/soc/soc-dapm.c:1647:2: warning: passing argument 1 of 'async_synchronize_full_domain' from incompatible pointer type
sound/soc/soc-dapm.c:1660:6: warning: passing argument 3 of 'async_schedule_domain' from incompatible pointer type
sound/soc/soc-dapm.c:1661:2: warning: passing argument 1 of 'async_synchronize_full_domain' from incompatible pointer type

Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
Build tested only.

 sound/soc/soc-dapm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 9670668..c93e832 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -1572,7 +1572,7 @@ static int dapm_power_widgets(struct snd_soc_dapm_context *dapm, int event)
 	struct snd_soc_dapm_context *d;
 	LIST_HEAD(up_list);
 	LIST_HEAD(down_list);
-	LIST_HEAD(async_domain);
+	ASYNC_DOMAIN_EXCLUSIVE(async_domain);
 	enum snd_soc_bias_level bias;
 
 	trace_snd_soc_dapm_start(card);
-- 
1.7.1



More information about the Alsa-devel mailing list