mtk-afe-fe-dai.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * mtk-afe-fe-dais.h -- Mediatek afe fe dai operator definition
  3. *
  4. * Copyright (c) 2016 MediaTek Inc.
  5. * Author: Garlic Tseng <garlic.tseng@mediatek.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 and
  9. * only version 2 as published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #ifndef _MTK_AFE_FE_DAI_H_
  17. #define _MTK_AFE_FE_DAI_H_
  18. struct snd_soc_dai_ops;
  19. struct mtk_base_afe;
  20. struct mtk_base_afe_memif;
  21. int mtk_afe_fe_startup(struct snd_pcm_substream *substream,
  22. struct snd_soc_dai *dai);
  23. void mtk_afe_fe_shutdown(struct snd_pcm_substream *substream,
  24. struct snd_soc_dai *dai);
  25. int mtk_afe_fe_hw_params(struct snd_pcm_substream *substream,
  26. struct snd_pcm_hw_params *params,
  27. struct snd_soc_dai *dai);
  28. int mtk_afe_fe_hw_free(struct snd_pcm_substream *substream,
  29. struct snd_soc_dai *dai);
  30. int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,
  31. struct snd_soc_dai *dai);
  32. int mtk_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd,
  33. struct snd_soc_dai *dai);
  34. extern const struct snd_soc_dai_ops mtk_afe_fe_ops;
  35. int mtk_dynamic_irq_acquire(struct mtk_base_afe *afe);
  36. int mtk_dynamic_irq_release(struct mtk_base_afe *afe, int irq_id);
  37. int mtk_afe_dai_suspend(struct snd_soc_dai *dai);
  38. int mtk_afe_dai_resume(struct snd_soc_dai *dai);
  39. #endif