]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: mediatek: mt8183-afe-pcm: Shorten memif_data table using macros
authorChen-Yu Tsai <wenst@chromium.org>
Thu, 15 May 2025 07:38:21 +0000 (15:38 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 15 May 2025 07:44:42 +0000 (09:44 +0200)
commit91c2685430f217ae8f2866e4372948eaf123b5c4
tree96da39a99420a8a2e8b03c4ce7710198550f1c25
parent51590571433e32cacce10b11051c6ff056bf0aa8
ASoC: mediatek: mt8183-afe-pcm: Shorten memif_data table using macros

The memif_data table describes all the supported PCM channels for the
audio frontend. Most of the fields are either the same or can be derived
from the interface's name. This results in a very long table (in source
code) that can be shortened with macros.

Do just that. Some "convenience" macros were added to cover non-existent
register fields that would otherwise require multiple layers of macros
to handle.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patch.msgid.link/20250515073825.4155297-2-wenst@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c