[PATCH 2/8] ASoC: soc-pcm: add soc_cpu/codec_dai_name() macro

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Thu Mar 4 23:04:50 CET 2021


Hi Mark

> > +#define soc_cpu_dai_name(rtd) \
> > +	(((rtd)->num_cpus == 1) ? asoc_rtd_to_cpu((rtd), 0)->name : "multicpu")
> > +#define soc_codec_dai_name(rtd) \
> > +	(((rtd)->num_codecs == 1) ? asoc_rtd_to_codec((rtd), 0)->name : "multicodec")
> 
> I can't see any reason not to make these static inline functions
> instead?

Yes indeed.
Will update today.

Thank you for your help !!

Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list