[PATCH 0/3] ASoC: mediatek: mt8183-afe-pcm: Shorten source code

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Wed May 14 06:49:48 PDT 2025


Il 25/04/25 10:25, Chen-Yu Tsai ha scritto:
> Hi folks,
> 
> This series is meant as an example on how to use macros and range cases
> to shorten the MediaTek audio frontend drivers. The drivers have large
> tables describing the registers and register fields for every supported
> audio DMA interface. (Some are actually skipped!) There's a lot of
> duplication which can be eliminated using macros. This should serve as
> a reference for the MT8196 AFE driver that I had commented on.
> 
> The three patches tackle separate tables in the driver. The remaining
> one that could be tackled is the list of DAIs; but that one has more
> differences between each entry, so I haven't done it yet.
> 
> Please take a look.
> 


Sorry for the very long wait here; the entire series is

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>

Cheers,
Angelo




More information about the Linux-mediatek mailing list