mtk-afe-platform-driver.h 762 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * mtk-afe-platform-driver.h -- Mediatek afe platform driver definition
  4. *
  5. * Copyright (c) 2016 MediaTek Inc.
  6. * Author: Garlic Tseng <garlic.tseng@mediatek.com>
  7. */
  8. #ifndef _MTK_AFE_PLATFORM_DRIVER_H_
  9. #define _MTK_AFE_PLATFORM_DRIVER_H_
  10. #define AFE_PCM_NAME "mtk-afe-pcm"
  11. extern const struct snd_pcm_ops mtk_afe_pcm_ops;
  12. extern const struct snd_soc_component_driver mtk_afe_pcm_platform;
  13. struct mtk_base_afe;
  14. struct snd_pcm;
  15. struct snd_soc_component;
  16. struct snd_soc_pcm_runtime;
  17. int mtk_afe_pcm_new(struct snd_soc_pcm_runtime *rtd);
  18. void mtk_afe_pcm_free(struct snd_pcm *pcm);
  19. int mtk_afe_combine_sub_dai(struct mtk_base_afe *afe);
  20. int mtk_afe_add_sub_dai_control(struct snd_soc_component *component);
  21. #endif