From: Mark Brown Date: Thu, 15 May 2025 12:08:51 +0000 (+0200) Subject: ASoC: mediatek: mt8183-afe-pcm: Shorten source code X-Git-Tag: v6.16-rc1~170^2~5^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9fa13105b2ee9291c4fbbc7259fdec41dd42990;p=thirdparty%2Flinux.git ASoC: mediatek: mt8183-afe-pcm: Shorten source code Merge series from Chen-Yu Tsai : 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. --- a9fa13105b2ee9291c4fbbc7259fdec41dd42990