diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-05-15 02:46:47 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-18 17:15:02 +0200 |
commit | 5552f8d72893cea29a0074a3ea0a1a5766858fcd (patch) | |
tree | 7c86c9bba81b33d600a6ea58a797e47fca9ca975 /include/sound | |
parent | ASoC: soc-component: add snd_soc_component_active() (diff) | |
download | linux-5552f8d72893cea29a0074a3ea0a1a5766858fcd.tar.xz linux-5552f8d72893cea29a0074a3ea0a1a5766858fcd.zip |
ASoC: soc-dai: add snd_soc_dai_stream_active()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/874ksi6n48.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-dai.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 2c74c41f9447..8826a129ccf9 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h @@ -481,4 +481,10 @@ static inline void *snd_soc_dai_get_sdw_stream(struct snd_soc_dai *dai, return ERR_PTR(-ENOTSUPP); } +static inline unsigned int +snd_soc_dai_stream_active(struct snd_soc_dai *dai, int stream) +{ + return dai->stream_active[stream]; +} + #endif |