ASoC: mediatek: common: add soundcard driver common code
authorTrevor Wu <trevor.wu@mediatek.com>
Mon, 16 Jan 2023 03:41:29 +0000 (11:41 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 16 Jan 2023 11:16:29 +0000 (11:16 +0000)
commit4302187d955f166c03b4fa7c993b89ffbabfca4e
treef9d72164506fe2b04d8963d93093ec8080448d51
parent692d25b67e1089a7683978d1860e511f2ca86e7b
ASoC: mediatek: common: add soundcard driver common code

Add common code to support of_node of codec parsing, so codec phandle
can be assigned by sound-dai in dts.

Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230116034131.23943-12-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/common/Makefile
sound/soc/mediatek/common/mtk-soundcard-driver.c [new file with mode: 0644]
sound/soc/mediatek/common/mtk-soundcard-driver.h [new file with mode: 0644]