summaryrefslogtreecommitdiff
path: root/include/sound/soc-dapm.h
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2011-07-25 14:15:15 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-26 01:07:24 +0400
commit64a648c2204b0c750fe49828158751183d8b5f83 (patch)
tree83bcd1fe103ed11f44283b9ba655c2be6f130c24 /include/sound/soc-dapm.h
parenta0c27ab2421c47dc7c53f797fffcc0d17cdb122c (diff)
downloadlinux-64a648c2204b0c750fe49828158751183d8b5f83.tar.xz
ASoC: dapm - Add DAPM stream completion event.
In preparation for Dynamic PCM (AKA DSP) support. This adds a callback function to be called at the completion of a DAPM stream event. This can be used by DSP components to perform calculations based on DAPM graphs after completion of stream events. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index e0583b7769cb..350b1b395cac 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -524,6 +524,8 @@ struct snd_soc_dapm_context {
enum snd_soc_bias_level target_bias_level;
struct list_head list;
+ int (*stream_event)(struct snd_soc_dapm_context *dapm, int event);
+
#ifdef CONFIG_DEBUG_FS
struct dentry *debugfs_dapm;
#endif