Skip to contentSkip to conversation

ASoC: Hold client_mutex while calling snd_soc_instantiate_cards()

PATCH Applied Axel Lin 3 participants 3 messages Dec 6, 2010

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 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.

---
 sound/soc/soc-core.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/soc-core.c +2 -0
index eb950f7..0d69b91 100644
@@ -3299,7 +3299,9 @@ int snd_soc_register_dais(struct device *dev,
 		pr_debug("Registered DAI '%s'\n", dai->name);
 	}
 
+	mutex_lock(&client_mutex);
 	snd_soc_instantiate_cards();
+	mutex_unlock(&client_mutex);
 	return 0;
 
 err:
Signature · 1 line
1.7.2