summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorLiam Girdwood2012-03-07 11:38:26 +0100
committerMark Brown2012-04-01 12:28:21 +0200
commita73fb2df01866b772a48fab93401fe3edbe0b38d (patch)
tree466816bbeb06fc5d3de00f20b5642ef9877d21fa /include/sound/soc.h
parentASoC: core: Add card mutex locking subclasses (diff)
downloadkernel-qcow2-linux-a73fb2df01866b772a48fab93401fe3edbe0b38d.tar.gz
kernel-qcow2-linux-a73fb2df01866b772a48fab93401fe3edbe0b38d.tar.xz
kernel-qcow2-linux-a73fb2df01866b772a48fab93401fe3edbe0b38d.zip
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.h')
-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 70de2f82e872..66fd9bc9789d 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -805,6 +805,7 @@ struct snd_soc_card {
struct list_head list;
struct mutex mutex;
+ struct mutex dapm_mutex;
bool instantiated;