q6_init.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2017-2020, 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. #if IS_ENABLED(CONFIG_MSM_AVTIMER)
  18. int avtimer_init(void);
  19. #else
  20. static inline int avtimer_init(void)
  21. {
  22. return 0;
  23. }
  24. #endif
  25. #ifdef CONFIG_MSM_MDF
  26. int msm_mdf_init(void);
  27. void msm_mdf_exit(void);
  28. #else
  29. static inline int msm_mdf_init(void)
  30. {
  31. return 0;
  32. }
  33. static inline void msm_mdf_exit(void)
  34. {
  35. return;
  36. }
  37. #endif
  38. #ifdef CONFIG_XT_LOGGING
  39. int spk_params_init(void);
  40. void spk_params_exit(void);
  41. #else
  42. static inline int spk_params_init(void)
  43. {
  44. return 0;
  45. }
  46. static inline void spk_params_exit(void)
  47. {
  48. }
  49. #endif
  50. #if IS_ENABLED(CONFIG_MSM_AVTIMER)
  51. void avtimer_exit(void);
  52. #else
  53. static inline void avtimer_exit(void)
  54. {
  55. return;
  56. }
  57. #endif
  58. void msm_audio_ion_exit(void);
  59. void rtac_exit(void);
  60. void core_exit(void);
  61. void audio_cal_exit(void);
  62. void voice_exit(void);
  63. void q6lsm_exit(void);
  64. void q6asm_exit(void);
  65. void afe_exit(void);
  66. void adm_exit(void);
  67. void adsp_err_exit(void);
  68. #if IS_ENABLED(CONFIG_WCD9XXX_CODEC_CORE)
  69. int audio_slimslave_init(void);
  70. void audio_slimslave_exit(void);
  71. #else
  72. static inline int audio_slimslave_init(void)
  73. {
  74. return 0;
  75. };
  76. static inline void audio_slimslave_exit(void)
  77. {
  78. };
  79. #endif
  80. #ifdef CONFIG_VOICE_MHI
  81. int voice_mhi_init(void);
  82. void voice_mhi_exit(void);
  83. #else
  84. static inline int voice_mhi_init(void)
  85. {
  86. return 0;
  87. }
  88. static inline void voice_mhi_exit(void)
  89. {
  90. return;
  91. }
  92. #endif
  93. #endif