platform_init.c 1.3 KB

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