q6_init.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. Copyright (c) 2017, The Linux Foundation. All rights reserved.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License version 2 and
  5. only version 2 as published by the Free Software Foundation.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. *
  11. */
  12. #include <linux/kernel.h>
  13. #include <linux/module.h>
  14. #include "q6_init.h"
  15. static int __init audio_q6_init(void)
  16. {
  17. adsp_err_init();
  18. audio_cal_init();
  19. rtac_init();
  20. adm_init();
  21. afe_init();
  22. q6asm_init();
  23. q6lsm_init();
  24. voice_init();
  25. core_init();
  26. msm_audio_ion_init();
  27. audio_slimslave_init();
  28. avtimer_init();
  29. msm_mdf_init();
  30. return 0;
  31. }
  32. static void __exit audio_q6_exit(void)
  33. {
  34. msm_mdf_exit();
  35. avtimer_exit();
  36. audio_slimslave_exit();
  37. msm_audio_ion_exit();
  38. core_exit();
  39. voice_exit();
  40. q6lsm_exit();
  41. q6asm_exit();
  42. afe_exit();
  43. adm_exit();
  44. rtac_exit();
  45. audio_cal_exit();
  46. adsp_err_exit();
  47. }
  48. module_init(audio_q6_init);
  49. module_exit(audio_q6_exit);
  50. MODULE_DESCRIPTION("Q6 module");
  51. MODULE_LICENSE("GPL v2");