q6_init.c 832 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2017, 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. return 0;
  24. }
  25. static void __exit audio_q6_exit(void)
  26. {
  27. msm_mdf_exit();
  28. avtimer_exit();
  29. audio_slimslave_exit();
  30. msm_audio_ion_exit();
  31. core_exit();
  32. voice_exit();
  33. q6lsm_exit();
  34. q6asm_exit();
  35. afe_exit();
  36. adm_exit();
  37. rtac_exit();
  38. audio_cal_exit();
  39. adsp_err_exit();
  40. }
  41. module_init(audio_q6_init);
  42. module_exit(audio_q6_exit);
  43. MODULE_DESCRIPTION("Q6 module");
  44. MODULE_LICENSE("GPL v2");