]> 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)
commit55296182148b72944bfa96d70936081f4fe88866
treea2ad2489ddff26786b523debf772cadf492702fd
parenteb7bcd7cb66b0a4a6e67d60adb347cb6633a251c
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