[PATCH v2 01/21] ASoC: soc-pcm: replace snd_soc_runtime_activate()/deactivate() to macro

Mark Brown broonie at kernel.org
Thu May 14 12:41:15 CEST 2020


On Thu, May 14, 2020 at 05:37:32PM +0900, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
> 
> snd_soc_runtime_activate()/deactivate() are implemented by global funtion
> which are just calling snd_soc_runtime_action().
> We can replace it to macro, and this patch do it.
> This patch is prepare for xxx_active cleanup.

It'd be better to use static inline functions rather than macros -
unlike the loop iterators there's no C syntax reason not to use an
inline and inline functions provide better type safety and namespacing.
-------------- 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/20200514/1b7ce297/attachment.sig>


More information about the Alsa-devel mailing list