projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed8cc47
)
ASoC: Hold client_mutex while calling snd_soc_instantiate_cards()
author
Axel Lin
<axel.lin@gmail.com>
Mon, 6 Dec 2010 08:48:03 +0000
(16:48 +0800)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 6 Dec 2010 12:53:43 +0000
(12:53 +0000)
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>
sound/soc/soc-core.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-core.c
b/sound/soc/soc-core.c
index 441285ade024ff33589cd22204ef5cb82a1f14ea..02ae7bea3b50401fbace05991b7472f6d6633c92 100644
(file)
--- a/
sound/soc/soc-core.c
+++ b/
sound/soc/soc-core.c
@@
-3072,7
+3072,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: