summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2012-03-06 19:16:18 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-06 21:07:00 +0100
commitcc22d37e7f5e1745658760660f03793913f43e49 (patch)
treea5ca907a7c825fc69f70b266d00bd6966a20b517 /sound/soc
parentASoC: tegra: Remove unused variable (diff)
downloadlinux-cc22d37e7f5e1745658760660f03793913f43e49.tar.xz
linux-cc22d37e7f5e1745658760660f03793913f43e49.zip
ASoC: core: Add platform component mutex
Add mutex support for platform IO operations. e.g. can be used for platform DAPM widget IO ops. Signed-off-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/soc-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 7978f6c01ef7..c90bb0110bd2 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3382,6 +3382,7 @@ int snd_soc_register_platform(struct device *dev,
platform->dapm.dev = dev;
platform->dapm.platform = platform;
platform->dapm.stream_event = platform_drv->stream_event;
+ mutex_init(&platform->mutex);
mutex_lock(&client_mutex);
list_add(&platform->list, &platform_list);