2018-04-25 12:19:59 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2016-06-17 15:43:53 +08:00
|
|
|
/*
|
|
|
|
* mtk-afe-platform-driver.h -- Mediatek afe platform driver definition
|
|
|
|
*
|
|
|
|
* Copyright (c) 2016 MediaTek Inc.
|
|
|
|
* Author: Garlic Tseng <garlic.tseng@mediatek.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MTK_AFE_PLATFORM_DRIVER_H_
|
|
|
|
#define _MTK_AFE_PLATFORM_DRIVER_H_
|
|
|
|
|
2018-01-29 10:51:42 +08:00
|
|
|
#define AFE_PCM_NAME "mtk-afe-pcm"
|
|
|
|
extern const struct snd_soc_component_driver mtk_afe_pcm_platform;
|
2016-06-17 15:43:53 +08:00
|
|
|
|
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>
2018-05-25 11:48:16 +08:00
|
|
|
struct mtk_base_afe;
|
2018-05-25 11:48:18 +08:00
|
|
|
struct snd_pcm;
|
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>
2018-05-25 11:48:16 +08:00
|
|
|
struct snd_soc_component;
|
2018-05-25 11:48:18 +08:00
|
|
|
struct snd_soc_pcm_runtime;
|
|
|
|
|
2019-10-02 13:34:05 +08:00
|
|
|
snd_pcm_uframes_t mtk_afe_pcm_pointer(struct snd_soc_component *component,
|
|
|
|
struct snd_pcm_substream *substream);
|
|
|
|
int mtk_afe_pcm_new(struct snd_soc_component *component,
|
|
|
|
struct snd_soc_pcm_runtime *rtd);
|
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>
2018-05-25 11:48:16 +08:00
|
|
|
|
|
|
|
int mtk_afe_combine_sub_dai(struct mtk_base_afe *afe);
|
|
|
|
int mtk_afe_add_sub_dai_control(struct snd_soc_component *component);
|
2016-06-17 15:43:53 +08:00
|
|
|
#endif
|
|
|
|
|