mtk-afe-fe-dai.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * mtk-afe-fe-dais.h -- Mediatek afe fe dai operator definition
  4. *
  5. * Copyright (c) 2016 MediaTek Inc.
  6. * Author: Garlic Tseng <garlic.tseng@mediatek.com>
  7. */
  8. #ifndef _MTK_AFE_FE_DAI_H_
  9. #define _MTK_AFE_FE_DAI_H_
  10. struct snd_soc_dai_ops;
  11. struct mtk_base_afe;
  12. struct mtk_base_afe_memif;
  13. int mtk_afe_fe_startup(struct snd_pcm_substream *substream,
  14. struct snd_soc_dai *dai);
  15. void mtk_afe_fe_shutdown(struct snd_pcm_substream *substream,
  16. struct snd_soc_dai *dai);
  17. int mtk_afe_fe_hw_params(struct snd_pcm_substream *substream,
  18. struct snd_pcm_hw_params *params,
  19. struct snd_soc_dai *dai);
  20. int mtk_afe_fe_hw_free(struct snd_pcm_substream *substream,
  21. struct snd_soc_dai *dai);
  22. int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,
  23. struct snd_soc_dai *dai);
  24. int mtk_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd,
  25. struct snd_soc_dai *dai);
  26. extern const struct snd_soc_dai_ops mtk_afe_fe_ops;
  27. int mtk_dynamic_irq_acquire(struct mtk_base_afe *afe);
  28. int mtk_dynamic_irq_release(struct mtk_base_afe *afe, int irq_id);
  29. int mtk_afe_dai_suspend(struct snd_soc_dai *dai);
  30. int mtk_afe_dai_resume(struct snd_soc_dai *dai);
  31. #endif