summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMisael Lopez Cruz <misael.lopez@ti.com>2011-04-07 08:39:02 +0100
committerAndy Green <andy.green@linaro.org>2011-04-07 08:39:02 +0100
commit721e02bfa16dccd955e17f742069b9827015283d (patch)
tree08227a41c31c182f6d8593144d2ac70dbfc194a5 /include
parent73c9fb93d5490018d79ae2d38bba75a07c46d415 (diff)
ASoC: dapm: Fix race condition for widgets power list creation
Multiple calls to dapm_power_widgets() can create a race condition causing widget power list to be corrupted. Those scenarios can occur in multistream usecases, stream start/stop along with update power calls (mixer, mux, dapm_sync, stream_event) simultaneously. Change-Id: I197f6ec223bf4451f207842b2a7ff72f81dcd313 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/sound/soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index bd635e93594..41b931a0c52 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -675,6 +675,7 @@ struct snd_soc_card {
struct list_head list;
struct mutex mutex;
+ struct mutex dapm_mutex;
bool instantiated;