aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-12-06 03:48:03 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-06 07:53:43 -0500
commit1dcb4f38e5bc28dfce0f8c7eef184a090b03bfc7 (patch)
treedc8c2c67c1d36041fed0d792e50b2d04af450c45 /sound/soc
parented8cc471d75365f8590c76f580def899d58028c0 (diff)
ASoC: Hold client_mutex while calling snd_soc_instantiate_cards()
As the comments of snd_soc_instantiate_cards() said, snd_soc_instantiate_cards() must be called with client_mutex. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/soc-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 441285ade024..02ae7bea3b50 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3072,7 +3072,9 @@ int snd_soc_register_dais(struct device *dev,
3072 pr_debug("Registered DAI '%s'\n", dai->name); 3072 pr_debug("Registered DAI '%s'\n", dai->name);
3073 } 3073 }
3074 3074
3075 mutex_lock(&client_mutex);
3075 snd_soc_instantiate_cards(); 3076 snd_soc_instantiate_cards();
3077 mutex_unlock(&client_mutex);
3076 return 0; 3078 return 0;
3077 3079
3078err: 3080err: