162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * mtk-afe-platform-driver.h -- Mediatek afe platform driver definition 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (c) 2016 MediaTek Inc. 662306a36Sopenharmony_ci * Author: Garlic Tseng <garlic.tseng@mediatek.com> 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#ifndef _MTK_AFE_PLATFORM_DRIVER_H_ 1062306a36Sopenharmony_ci#define _MTK_AFE_PLATFORM_DRIVER_H_ 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#define AFE_PCM_NAME "mtk-afe-pcm" 1362306a36Sopenharmony_ciextern const struct snd_soc_component_driver mtk_afe_pcm_platform; 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_cistruct mtk_base_afe; 1662306a36Sopenharmony_cistruct snd_pcm; 1762306a36Sopenharmony_cistruct snd_soc_component; 1862306a36Sopenharmony_cistruct snd_soc_pcm_runtime; 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_cisnd_pcm_uframes_t mtk_afe_pcm_pointer(struct snd_soc_component *component, 2162306a36Sopenharmony_ci struct snd_pcm_substream *substream); 2262306a36Sopenharmony_ciint mtk_afe_pcm_new(struct snd_soc_component *component, 2362306a36Sopenharmony_ci struct snd_soc_pcm_runtime *rtd); 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ciint mtk_afe_combine_sub_dai(struct mtk_base_afe *afe); 2662306a36Sopenharmony_ciint mtk_afe_add_sub_dai_control(struct snd_soc_component *component); 2762306a36Sopenharmony_ci#endif 2862306a36Sopenharmony_ci 29