audio_native.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 "audio_utils.h"
  8. spinlock_t enc_dec_lock;
  9. static int __init audio_native_init(void)
  10. {
  11. aac_in_init();
  12. amrnb_in_init();
  13. amrwb_in_init();
  14. audio_aac_init();
  15. audio_alac_init();
  16. audio_amrnb_init();
  17. audio_amrwb_init();
  18. audio_amrwbplus_init();
  19. audio_ape_init();
  20. audio_evrc_init();
  21. audio_g711alaw_init();
  22. audio_g711mlaw_init();
  23. audio_effects_init();
  24. audio_mp3_init();
  25. audio_multiaac_init();
  26. audio_qcelp_init();
  27. audio_wma_init();
  28. audio_wmapro_init();
  29. evrc_in_init();
  30. g711alaw_in_init();
  31. g711mlaw_in_init();
  32. qcelp_in_init();
  33. spin_lock_init(&enc_dec_lock);
  34. return 0;
  35. }
  36. static void __exit audio_native_exit(void)
  37. {
  38. aac_in_exit();
  39. amrnb_in_exit();
  40. amrwb_in_exit();
  41. audio_aac_exit();
  42. audio_alac_exit();
  43. audio_amrnb_exit();
  44. audio_amrwb_exit();
  45. audio_amrwbplus_exit();
  46. audio_ape_exit();
  47. audio_evrc_exit();
  48. audio_g711alaw_exit();
  49. audio_g711mlaw_exit();
  50. audio_effects_exit();
  51. audio_mp3_exit();
  52. audio_multiaac_exit();
  53. audio_qcelp_exit();
  54. audio_wma_exit();
  55. audio_wmapro_exit();
  56. evrc_in_exit();
  57. g711alaw_in_exit();
  58. g711mlaw_in_exit();
  59. qcelp_in_exit();
  60. }
  61. module_init(audio_native_init);
  62. module_exit(audio_native_exit);
  63. MODULE_LICENSE("GPL v2");
  64. MODULE_DESCRIPTION("Native Encoder/Decoder module");