audio_native.c 1.7 KB

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