platform_init.c 577 B

123456789101112131415161718192021222324252627282930
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2017, 2020 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_dai_q6_hdmi_init();
  11. msm_dai_q6_init();
  12. msm_dai_slim_init();
  13. return 0;
  14. }
  15. static void audio_platform_exit(void)
  16. {
  17. msm_dai_slim_exit();
  18. msm_dai_q6_exit();
  19. msm_dai_q6_hdmi_exit();
  20. }
  21. module_init(audio_platform_init);
  22. module_exit(audio_platform_exit);
  23. MODULE_DESCRIPTION("Audio Platform driver");
  24. MODULE_LICENSE("GPL v2");