aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-dapm.c
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2011-07-25 06:15:15 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-25 17:07:24 -0400
commit64a648c2204b0c750fe49828158751183d8b5f83 (patch)
tree83bcd1fe103ed11f44283b9ba655c2be6f130c24 /sound/soc/soc-dapm.c
parenta0c27ab2421c47dc7c53f797fffcc0d17cdb122c (diff)
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 'sound/soc/soc-dapm.c')
-rw-r--r--sound/soc/soc-dapm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 7e15914b3633..612a2a28979a 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -2604,6 +2604,10 @@ static void soc_dapm_stream_event(struct snd_soc_dapm_context *dapm,
2604 } 2604 }
2605 2605
2606 dapm_power_widgets(dapm, event); 2606 dapm_power_widgets(dapm, event);
2607
2608 /* do we need to notify any clients that DAPM stream is complete */
2609 if (dapm->stream_event)
2610 dapm->stream_event(dapm, event);
2607} 2611}
2608 2612
2609/** 2613/**