platform_init.c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 "platform_init.h"
  15. static int __init audio_platform_init(void)
  16. {
  17. msm_compress_dsp_init();
  18. msm_fe_dai_init();
  19. msm_dai_q6_hdmi_init();
  20. msm_dai_q6_init();
  21. msm_dai_slim_init();
  22. msm_dai_stub_init();
  23. msm_lsm_client_init();
  24. msm_pcm_afe_init();
  25. msm_pcm_dtmf_init();
  26. msm_pcm_hostless_init();
  27. msm_voice_host_init();
  28. msm_pcm_loopback_init();
  29. msm_pcm_noirq_init();
  30. msm_pcm_dsp_init();
  31. msm_soc_routing_platform_init();
  32. msm_pcm_voice_init();
  33. msm_pcm_voip_init();
  34. msm_transcode_loopback_init();
  35. return 0;
  36. }
  37. static void audio_platform_exit(void)
  38. {
  39. msm_transcode_loopback_exit();
  40. msm_pcm_voip_exit();
  41. msm_pcm_voice_exit();
  42. msm_soc_routing_platform_exit();
  43. msm_pcm_dsp_exit();
  44. msm_pcm_noirq_exit();
  45. msm_pcm_loopback_exit();
  46. msm_voice_host_exit();
  47. msm_pcm_hostless_exit();
  48. msm_pcm_dtmf_exit();
  49. msm_pcm_afe_exit();
  50. msm_lsm_client_exit();
  51. msm_dai_stub_exit();
  52. msm_dai_slim_exit();
  53. msm_dai_q6_exit();
  54. msm_dai_q6_hdmi_exit();
  55. msm_fe_dai_exit();
  56. msm_compress_dsp_exit();
  57. }
  58. module_init(audio_platform_init);
  59. module_exit(audio_platform_exit);
  60. MODULE_DESCRIPTION("Audio Platform driver");
  61. MODULE_LICENSE("GPL v2");