q6_init.c 881 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2017, 2019 The Linux Foundation. All rights reserved.
  4. */
  5. #include <linux/kernel.h>
  6. #include <linux/module.h>
  7. #include "q6_init.h"
  8. static int __init audio_q6_init(void)
  9. {
  10. adsp_err_init();
  11. audio_cal_init();
  12. rtac_init();
  13. adm_init();
  14. afe_init();
  15. q6asm_init();
  16. q6lsm_init();
  17. voice_init();
  18. core_init();
  19. msm_audio_ion_init();
  20. audio_slimslave_init();
  21. avtimer_init();
  22. msm_mdf_init();
  23. voice_mhi_init();
  24. return 0;
  25. }
  26. static void __exit audio_q6_exit(void)
  27. {
  28. msm_mdf_exit();
  29. avtimer_exit();
  30. audio_slimslave_exit();
  31. msm_audio_ion_exit();
  32. core_exit();
  33. voice_exit();
  34. q6lsm_exit();
  35. q6asm_exit();
  36. afe_exit();
  37. adm_exit();
  38. rtac_exit();
  39. audio_cal_exit();
  40. adsp_err_exit();
  41. voice_mhi_exit();
  42. }
  43. module_init(audio_q6_init);
  44. module_exit(audio_q6_exit);
  45. MODULE_DESCRIPTION("Q6 module");
  46. MODULE_LICENSE("GPL v2");