diff options
author | Arnaud Pouliquen <arnaud.pouliquen@st.com> | 2017-01-03 16:52:51 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-01-20 16:16:23 +0100 |
commit | 25f7b701c20db3e9ae09e28dd652949bd977e5cd (patch) | |
tree | 5c7c4871b4ab0915aa078e7839fda88dd7563bb1 /include/sound/soc-dai.h | |
parent | DRM: add help to get ELD speaker allocation (diff) | |
download | linux-25f7b701c20db3e9ae09e28dd652949bd977e5cd.tar.xz linux-25f7b701c20db3e9ae09e28dd652949bd977e5cd.zip |
ASoC: core: add optional pcm_new callback for DAI driver
During probe, DAIs can need to perform some actions that requests
the knowledge of the pcm runtime handle.
The callback is called during DAIs linking, after PCM device creation.
For instance this can be used to add relationship between a DAI pcm
control and the pcm device.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc-dai.h')
-rw-r--r-- | include/sound/soc-dai.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 200e1f04c166..58acd00cae19 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h @@ -256,6 +256,9 @@ struct snd_soc_dai_driver { int (*resume)(struct snd_soc_dai *dai); /* compress dai */ int (*compress_new)(struct snd_soc_pcm_runtime *rtd, int num); + /* Optional Callback used at pcm creation*/ + int (*pcm_new)(struct snd_soc_pcm_runtime *rtd, + struct snd_soc_dai *dai); /* DAI is also used for the control bus */ bool bus_control; |