1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * mtk-afe-platform-driver.h -- Mediatek afe platform driver definition 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (c) 2016 MediaTek Inc. 6*4882a593Smuzhiyun * Author: Garlic Tseng <garlic.tseng@mediatek.com> 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun #ifndef _MTK_AFE_PLATFORM_DRIVER_H_ 10*4882a593Smuzhiyun #define _MTK_AFE_PLATFORM_DRIVER_H_ 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun #define AFE_PCM_NAME "mtk-afe-pcm" 13*4882a593Smuzhiyun extern const struct snd_soc_component_driver mtk_afe_pcm_platform; 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun struct mtk_base_afe; 16*4882a593Smuzhiyun struct snd_pcm; 17*4882a593Smuzhiyun struct snd_soc_component; 18*4882a593Smuzhiyun struct snd_soc_pcm_runtime; 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun snd_pcm_uframes_t mtk_afe_pcm_pointer(struct snd_soc_component *component, 21*4882a593Smuzhiyun struct snd_pcm_substream *substream); 22*4882a593Smuzhiyun int mtk_afe_pcm_new(struct snd_soc_component *component, 23*4882a593Smuzhiyun struct snd_soc_pcm_runtime *rtd); 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun int mtk_afe_combine_sub_dai(struct mtk_base_afe *afe); 26*4882a593Smuzhiyun int mtk_afe_add_sub_dai_control(struct snd_soc_component *component); 27*4882a593Smuzhiyun #endif 28*4882a593Smuzhiyun 29