ASoC: Hold client_mutex while calling snd_soc_instantiate_cards()
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.
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/soc-core.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/soc-core.c +2 -0
@@ -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
Quoted 5 lines · Axel Lin
As the comments of
snd_soc_instantiate_cards()said,snd_soc_instantiate_cards()must be called withclient_mutex.Signed-off-by Axel Lin <[email protected]>---
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Mark Brown
AppliedQuoted 4 lines · Axel Lin
As the comments of
snd_soc_instantiate_cards()said,snd_soc_instantiate_cards()must be called withclient_mutex.Signed-off-by Axel Lin <[email protected]>
Applied, thanks.