]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mediatek: add sub dai to mtk_base_afe
authorKaiChieh Chuang <kaichieh.chuang@mediatek.com>
Fri, 25 May 2018 03:48:16 +0000 (11:48 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 25 May 2018 17:34:46 +0000 (18:34 +0100)
commit8e0b7fca81f8cc5f0933366afdf355da1f6895a9
treea2ad2489ddff26786b523debf772cadf492702fd
parent5d621708a6f43dd5f697b2228633300f08f64428
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>
sound/soc/mediatek/common/mtk-afe-platform-driver.c
sound/soc/mediatek/common/mtk-afe-platform-driver.h
sound/soc/mediatek/common/mtk-base-afe.h