diff options
author | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-05-31 09:22:47 +0100 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-05-31 11:02:59 +0100 |
commit | edc99edd8d20fc6a11735bb20620978dae825e08 (patch) | |
tree | 203db19999d88c12a6d957c3cc8c748a7a71ea4c /include | |
parent | 9dee2d61b1a8e4295e2044747c888b6d2cee33bc (diff) |
ASoC: dapm: stream event completion callback
Some platforms and CODECs may require notification on
every DAPM stream event completion. Add a callback
function to support this completion event.
Change-Id: Ifd745cfaa3da2142c214fe30bcdf5bd0fec15c91
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/soc-dapm.h | 1 | ||||
-rw-r--r-- | include/sound/soc.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 746eab755d9..0e7eb63caa9 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h @@ -504,6 +504,7 @@ struct snd_soc_dapm_context { struct device *dev; /* from parent - for debug */ struct snd_soc_codec *codec; /* parent codec */ struct snd_soc_platform *platform; /*parent platform */ + int (*stream_event)(struct snd_soc_dapm_context *dapm); struct snd_soc_card *card; /* parent card */ /* used during DAPM updates */ diff --git a/include/sound/soc.h b/include/sound/soc.h index a89e611d490..829858bd154 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -540,6 +540,8 @@ struct snd_soc_codec_driver { /* codec bias level */ int (*set_bias_level)(struct snd_soc_codec *, enum snd_soc_bias_level level); + /* codec stream completion event */ + int (*stream_event)(struct snd_soc_dapm_context *dapm); }; /* SoC platform interface */ @@ -568,6 +570,9 @@ struct snd_soc_platform_driver { /* platform DAPM IO TODO: refactor this */ unsigned int (*read)(struct snd_soc_platform *, unsigned int); int (*write)(struct snd_soc_platform *, unsigned int, unsigned int); + + /* platform stream completion event */ + int (*stream_event)(struct snd_soc_dapm_context *dapm); }; struct snd_soc_platform { |