[alsa-devel] [PATCH 10/10] ASoC: soc.h: add for_each_pcm_stream()

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Fri Feb 14 01:05:31 CET 2020


Hi Pierre-Louis

> > From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> > 
> > ALSA SoC has SNDRV_PCM_STREAM_PLAYBACK/CAPTURE everywhere.
> > Having for_each_xxxx macro is useful.
> > This patch adds for_each_pcm_stream() for it.
> 
> Indeed, we also have ugly code in SOF for this:
> 
> for (dir = 0; dir <= SNDRV_PCM_STREAM_CAPTURE; dir++) {
> 
> a macro would be much nicer, good suggestion.

Thank you for pointing it.
I will care it in v2 :)

Thank you for your help !!
Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list