diff options
author | Liam Girdwood <lrg@ti.com> | 2011-07-25 06:15:15 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-07-25 17:07:24 -0400 |
commit | 64a648c2204b0c750fe49828158751183d8b5f83 (patch) | |
tree | 83bcd1fe103ed11f44283b9ba655c2be6f130c24 /include/sound | |
parent | a0c27ab2421c47dc7c53f797fffcc0d17cdb122c (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 'include/sound')
-rw-r--r-- | include/sound/soc-dapm.h | 2 | ||||
-rw-r--r-- | include/sound/soc.h | 6 |
2 files changed, 8 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 { | |||
524 | enum snd_soc_bias_level target_bias_level; | 524 | enum snd_soc_bias_level target_bias_level; |
525 | struct list_head list; | 525 | struct list_head list; |
526 | 526 | ||
527 | int (*stream_event)(struct snd_soc_dapm_context *dapm, int event); | ||
528 | |||
527 | #ifdef CONFIG_DEBUG_FS | 529 | #ifdef CONFIG_DEBUG_FS |
528 | struct dentry *debugfs_dapm; | 530 | struct dentry *debugfs_dapm; |
529 | #endif | 531 | #endif |
diff --git a/include/sound/soc.h b/include/sound/soc.h index aa19f5a32ba8..64a9dd5a69d6 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -634,6 +634,9 @@ struct snd_soc_codec_driver { | |||
634 | void (*seq_notifier)(struct snd_soc_dapm_context *, | 634 | void (*seq_notifier)(struct snd_soc_dapm_context *, |
635 | enum snd_soc_dapm_type, int); | 635 | enum snd_soc_dapm_type, int); |
636 | 636 | ||
637 | /* codec stream completion event */ | ||
638 | int (*stream_event)(struct snd_soc_dapm_context *dapm, int event); | ||
639 | |||
637 | /* probe ordering - for components with runtime dependencies */ | 640 | /* probe ordering - for components with runtime dependencies */ |
638 | int probe_order; | 641 | int probe_order; |
639 | int remove_order; | 642 | int remove_order; |
@@ -669,6 +672,9 @@ struct snd_soc_platform_driver { | |||
669 | /* platform stream ops */ | 672 | /* platform stream ops */ |
670 | struct snd_pcm_ops *ops; | 673 | struct snd_pcm_ops *ops; |
671 | 674 | ||
675 | /* platform stream completion event */ | ||
676 | int (*stream_event)(struct snd_soc_dapm_context *dapm, int event); | ||
677 | |||
672 | /* probe ordering - for components with runtime dependencies */ | 678 | /* probe ordering - for components with runtime dependencies */ |
673 | int probe_order; | 679 | int probe_order; |
674 | int remove_order; | 680 | int remove_order; |