aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc-dapm.h
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2012-03-07 05:38:26 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-01 06:28:21 -0400
commita73fb2df01866b772a48fab93401fe3edbe0b38d (patch)
tree466816bbeb06fc5d3de00f20b5642ef9877d21fa /include/sound/soc-dapm.h
parent01b9d99a1f45befa604543ead29f44fdb0878844 (diff)
ASoC: dapm: Use DAPM mutex for DAPM ops instead of codec mutex
It has now become necessary to use a DAPM mutex instead of the codec mutex to lock the DAPM operations. This is due to the recent multi component support and forth coming Dynamic PCM updates. Currently we lock DAPM operations with the codec mutex of the calling RTD context. However, DAPM operations can span the whole card context and all components. This patch updates the DAPM operations that use the codec mutex to now use the DAPM mutex PCM subclass for all DAPM ops. We also add a mutex subclass for DAPM init and PCM operations. Signed-off-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r--include/sound/soc-dapm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index 8da3c2409060..055242e69dc3 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -432,6 +432,11 @@ enum snd_soc_dapm_type {
432 snd_soc_dapm_dai, /* link to DAI structure */ 432 snd_soc_dapm_dai, /* link to DAI structure */
433}; 433};
434 434
435enum snd_soc_dapm_subclass {
436 SND_SOC_DAPM_CLASS_INIT = 0,
437 SND_SOC_DAPM_CLASS_PCM = 1,
438};
439
435/* 440/*
436 * DAPM audio route definition. 441 * DAPM audio route definition.
437 * 442 *