Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1dcb4f38 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

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: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent ed8cc471
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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: