summaryrefslogtreecommitdiff
path: root/sound/soc/mediatek/common/mtk-afe-platform-driver.h
diff options
context:
space:
mode:
authorKaiChieh Chuang <kaichieh.chuang@mediatek.com>2018-05-25 06:48:16 +0300
committerMark Brown <broonie@kernel.org>2018-05-25 20:34:46 +0300
commit13be427e5df4cea08c2d48017aabe112400e1b2f (patch)
treea2ad2489ddff26786b523debf772cadf492702fd /sound/soc/mediatek/common/mtk-afe-platform-driver.h
parent500413c5097d981b1b6e639bf2183abc1db6c24a (diff)
downloadlinux-13be427e5df4cea08c2d48017aabe112400e1b2f.tar.xz
ASoC: mediatek: add sub dai to mtk_base_afe
In MediaTek SoC chip we have multiple DAI, such as I2S, ADDA, PCM, etc. Organize each DAI in to one sub dai, with its dai driver, controls, widgets, routes. add mtk_afe_combine_sub_dai() to combine dai driver from each DAI. add mtk_afe_add_sub_dai_control() to register the control, widget, routes to component. Signed-off-by: KaiChieh Chuang <kaichieh.chuang@mediatek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek/common/mtk-afe-platform-driver.h')
-rw-r--r--sound/soc/mediatek/common/mtk-afe-platform-driver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/mediatek/common/mtk-afe-platform-driver.h b/sound/soc/mediatek/common/mtk-afe-platform-driver.h
index 1c81d911cf2a..0c31fa4b6f8c 100644
--- a/sound/soc/mediatek/common/mtk-afe-platform-driver.h
+++ b/sound/soc/mediatek/common/mtk-afe-platform-driver.h
@@ -12,5 +12,10 @@
#define AFE_PCM_NAME "mtk-afe-pcm"
extern const struct snd_soc_component_driver mtk_afe_pcm_platform;
+struct mtk_base_afe;
+struct snd_soc_component;
+
+int mtk_afe_combine_sub_dai(struct mtk_base_afe *afe);
+int mtk_afe_add_sub_dai_control(struct snd_soc_component *component);
#endif