@@ -166,6 +166,7 @@ void snd_soc_dai_action(struct snd_soc_dai *dai,
#define snd_soc_dai_activate(dai, stream) snd_soc_dai_action(dai, stream, 1)
#define snd_soc_dai_deactivate(dai, stream) snd_soc_dai_action(dai, stream, -1)
int snd_soc_dai_active(struct snd_soc_dai *dai);
+#define snd_soc_dai_stream_active(dai, stream) ((dai)->stream_active[stream])
int snd_soc_pcm_dai_probe(struct snd_soc_pcm_runtime *rtd, int order);
int snd_soc_pcm_dai_remove(struct snd_soc_pcm_runtime *rtd, int order);
@@ -391,6 +391,7 @@ bool snd_soc_dai_stream_valid(struct snd_soc_dai *dai, int dir)
void snd_soc_dai_action(struct snd_soc_dai *dai,
int stream, int action)
{
+ /* see snd_soc_dai_stream_active() */
dai->stream_active[stream] += action;
dai->active += action;
/* see snd_soc_component_active() */