aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorMisael Lopez Cruz <misael.lopez@ti.com>2011-08-17 04:33:19 -0500
committerSimon Wilson <simonwilson@google.com>2011-08-17 13:59:15 -0700
commit0d08e56543fb23e0e43a0fec06df77c13781a937 (patch)
tree8f230e98cd9ba45fdda15cc72c3b4253904ff3a2 /include/sound
parent719855517353d1bb1b01c6732a1a250c71016707 (diff)
downloadkernel_samsung_espresso10-0d08e56543fb23e0e43a0fec06df77c13781a937.zip
kernel_samsung_espresso10-0d08e56543fb23e0e43a0fec06df77c13781a937.tar.gz
kernel_samsung_espresso10-0d08e56543fb23e0e43a0fec06df77c13781a937.tar.bz2
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. Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com> Change-Id: I5aad827292b7521a621e5b734f807c08f7a5536f
Diffstat (limited to 'include/sound')
-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 be7a8cd..810d480 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -789,6 +789,7 @@ struct snd_soc_card {
struct mutex mutex;
struct mutex dapm_mutex;
struct mutex dsp_mutex;
+ struct mutex power_mutex;
bool instantiated;