ASoC: mediatek: Commonize ADDA rate transform functions and enums
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 13 Mar 2024 11:01:28 +0000 (12:01 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 25 Mar 2024 14:19:07 +0000 (14:19 +0000)
commitd6c01755805d346a1382d2d81c214b2ca557487a
tree26456f7d82c55e00caa3e7cccab3b86fe92f16e8
parent324c603a4efca7d1045e0bf3477ca54970eac72c
ASoC: mediatek: Commonize ADDA rate transform functions and enums

Both the enumerations for UL/DL rates, delay data and the functions
adda_{dl,ul}_rate_transform were duplicated for each MediaTek SoC
dai-adda driver: move the common bits to a new mtk-dai-adda-common
file and its header.
While at it, also add the "mtk_" prefix to the exported functions.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://msgid.link/r/20240313110147.1267793-4-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/common/Makefile
sound/soc/mediatek/common/mtk-dai-adda-common.c [new file with mode: 0644]
sound/soc/mediatek/common/mtk-dai-adda-common.h [new file with mode: 0644]
sound/soc/mediatek/mt6797/mt6797-dai-adda.c
sound/soc/mediatek/mt8183/mt8183-dai-adda.c
sound/soc/mediatek/mt8186/mt8186-dai-adda.c
sound/soc/mediatek/mt8188/mt8188-dai-adda.c
sound/soc/mediatek/mt8192/mt8192-dai-adda.c
sound/soc/mediatek/mt8195/mt8195-dai-adda.c