q6_init.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. return 0;
  30. }
  31. static void __exit audio_q6_exit(void)
  32. {
  33. avtimer_exit();
  34. audio_slimslave_exit();
  35. msm_audio_ion_exit();
  36. core_exit();
  37. voice_exit();
  38. q6lsm_exit();
  39. q6asm_exit();
  40. afe_exit();
  41. adm_exit();
  42. rtac_exit();
  43. audio_cal_exit();
  44. adsp_err_exit();
  45. }
  46. module_init(audio_q6_init);
  47. module_exit(audio_q6_exit);
  48. MODULE_DESCRIPTION("Q6 module");
  49. MODULE_LICENSE("GPL v2");