mtk-dsp-sof-common.h 984 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * mtk-dsp-sof-common.h -- MediaTek dsp sof common definition
  4. *
  5. * Copyright (c) 2022 MediaTek Inc.
  6. * Author: Chunxu Li <[email protected]>
  7. */
  8. #ifndef _MTK_DSP_SOF_COMMON_H_
  9. #define _MTK_DSP_SOF_COMMON_H_
  10. #include <sound/soc.h>
  11. struct sof_conn_stream {
  12. const char *normal_link;
  13. const char *sof_link;
  14. const char *sof_dma;
  15. int stream_dir;
  16. };
  17. struct mtk_sof_priv {
  18. const struct sof_conn_stream *conn_streams;
  19. int num_streams;
  20. int (*sof_dai_link_fixup)(struct snd_soc_pcm_runtime *rtd,
  21. struct snd_pcm_hw_params *params);
  22. };
  23. int mtk_sof_dai_link_fixup(struct snd_soc_pcm_runtime *rtd,
  24. struct snd_pcm_hw_params *params);
  25. int mtk_sof_card_probe(struct snd_soc_card *card);
  26. int mtk_sof_card_late_probe(struct snd_soc_card *card);
  27. int mtk_sof_dailink_parse_of(struct snd_soc_card *card, struct device_node *np,
  28. const char *propname, struct snd_soc_dai_link *pre_dai_links,
  29. int pre_num_links);
  30. #endif