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

Mark Brown broonie at kernel.org
Tue Mar 2 14:04:00 CET 2021


On Tue, Mar 02, 2021 at 10:47:55AM +0900, Kuninori Morimoto wrote:

> +#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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20210302/c7c86b38/attachment.sig>


More information about the Alsa-devel mailing list