aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.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-core.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-core.c')
-rw-r--r--sound/soc/soc-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 83ad8ca27490..9d3935bbbd0c 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3141,6 +3141,7 @@ int snd_soc_register_platform(struct device *dev,
3141 platform->driver = platform_drv; 3141 platform->driver = platform_drv;
3142 platform->dapm.dev = dev; 3142 platform->dapm.dev = dev;
3143 platform->dapm.platform = platform; 3143 platform->dapm.platform = platform;
3144 platform->dapm.stream_event = platform_drv->stream_event;
3144 3145
3145 mutex_lock(&client_mutex); 3146 mutex_lock(&client_mutex);
3146 list_add(&platform->list, &platform_list); 3147 list_add(&platform->list, &platform_list);
@@ -3253,6 +3254,7 @@ int snd_soc_register_codec(struct device *dev,
3253 codec->dapm.dev = dev; 3254 codec->dapm.dev = dev;
3254 codec->dapm.codec = codec; 3255 codec->dapm.codec = codec;
3255 codec->dapm.seq_notifier = codec_drv->seq_notifier; 3256 codec->dapm.seq_notifier = codec_drv->seq_notifier;
3257 codec->dapm.stream_event = codec_drv->stream_event;
3256 codec->dev = dev; 3258 codec->dev = dev;
3257 codec->driver = codec_drv; 3259 codec->driver = codec_drv;
3258 codec->num_dai = num_dai; 3260 codec->num_dai = num_dai;