q6_init.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef __Q6_INIT_H__
  6. #define __Q6_INIT_H__
  7. int adsp_err_init(void);
  8. int adm_init(void);
  9. int afe_init(void);
  10. int q6asm_init(void);
  11. int q6lsm_init(void);
  12. int voice_init(void);
  13. int audio_cal_init(void);
  14. int core_init(void);
  15. int rtac_init(void);
  16. int msm_audio_ion_init(void);
  17. int avtimer_init(void);
  18. #ifdef CONFIG_MSM_MDF
  19. int msm_mdf_init(void);
  20. void msm_mdf_exit(void);
  21. #else
  22. static inline int msm_mdf_init(void)
  23. {
  24. return 0;
  25. }
  26. static inline void msm_mdf_exit(void)
  27. {
  28. return;
  29. }
  30. #endif
  31. #ifdef CONFIG_XT_LOGGING
  32. int spk_params_init(void);
  33. void spk_params_exit(void);
  34. #else
  35. static inline int spk_params_init(void)
  36. {
  37. return 0;
  38. }
  39. static inline void spk_params_exit(void)
  40. {
  41. }
  42. #endif
  43. void avtimer_exit(void);
  44. void msm_audio_ion_exit(void);
  45. void rtac_exit(void);
  46. void core_exit(void);
  47. void audio_cal_exit(void);
  48. void voice_exit(void);
  49. void q6lsm_exit(void);
  50. void q6asm_exit(void);
  51. void afe_exit(void);
  52. void adm_exit(void);
  53. void adsp_err_exit(void);
  54. #if IS_ENABLED(CONFIG_WCD9XXX_CODEC_CORE)
  55. int audio_slimslave_init(void);
  56. void audio_slimslave_exit(void);
  57. #else
  58. static inline int audio_slimslave_init(void)
  59. {
  60. return 0;
  61. };
  62. static inline void audio_slimslave_exit(void)
  63. {
  64. };
  65. #endif
  66. #ifdef CONFIG_VOICE_MHI
  67. int voice_mhi_init(void);
  68. void voice_mhi_exit(void);
  69. #else
  70. static inline int voice_mhi_init(void)
  71. {
  72. return 0;
  73. }
  74. static inline void voice_mhi_exit(void)
  75. {
  76. return;
  77. }
  78. #endif
  79. #endif