diff options
author | Liam Girdwood <lrg@ti.com> | 2012-03-06 13:16:18 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-06 15:07:00 -0500 |
commit | cc22d37e7f5e1745658760660f03793913f43e49 (patch) | |
tree | a5ca907a7c825fc69f70b266d00bd6966a20b517 /sound/soc/soc-core.c | |
parent | c25cd1543986e7c16c7ddf738748ccd530a18268 (diff) |
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/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 1 |
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, | |||
3382 | platform->dapm.dev = dev; | 3382 | platform->dapm.dev = dev; |
3383 | platform->dapm.platform = platform; | 3383 | platform->dapm.platform = platform; |
3384 | platform->dapm.stream_event = platform_drv->stream_event; | 3384 | platform->dapm.stream_event = platform_drv->stream_event; |
3385 | mutex_init(&platform->mutex); | ||
3385 | 3386 | ||
3386 | mutex_lock(&client_mutex); | 3387 | mutex_lock(&client_mutex); |
3387 | list_add(&platform->list, &platform_list); | 3388 | list_add(&platform->list, &platform_list); |