Laxminath Kasam | 8b1366a | 2017-10-05 01:44:16 +0530 | [diff] [blame] | 1 | /* |
| 2 | Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| 3 | |
| 4 | This program is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License version 2 and |
| 6 | only version 2 as published by the Free Software Foundation. |
| 7 | |
| 8 | This program is distributed in the hope that it will be useful, |
| 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | GNU General Public License for more details. |
| 12 | * |
| 13 | */ |
| 14 | |
| 15 | #include <linux/kernel.h> |
| 16 | #include <linux/module.h> |
| 17 | #include "audio_utils.h" |
| 18 | |
| 19 | static int __init audio_native_init(void) |
| 20 | { |
| 21 | aac_in_init(); |
| 22 | amrnb_in_init(); |
| 23 | amrwb_in_init(); |
| 24 | audio_aac_init(); |
| 25 | audio_alac_init(); |
| 26 | audio_amrnb_init(); |
| 27 | audio_amrwb_init(); |
| 28 | audio_amrwbplus_init(); |
| 29 | audio_ape_init(); |
| 30 | audio_evrc_init(); |
| 31 | audio_g711alaw_init(); |
| 32 | audio_g711mlaw_init(); |
| 33 | audio_effects_init(); |
| 34 | audio_mp3_init(); |
| 35 | audio_multiaac_init(); |
| 36 | audio_qcelp_init(); |
| 37 | audio_wma_init(); |
| 38 | audio_wmapro_init(); |
| 39 | evrc_in_init(); |
| 40 | g711alaw_in_init(); |
| 41 | g711mlaw_in_init(); |
| 42 | qcelp_in_init(); |
| 43 | return 0; |
| 44 | } |
| 45 | |
| 46 | static void __exit audio_native_exit(void) |
| 47 | { |
| 48 | aac_in_exit(); |
| 49 | amrnb_in_exit(); |
| 50 | amrwb_in_exit(); |
| 51 | audio_aac_exit(); |
| 52 | audio_alac_exit(); |
| 53 | audio_amrnb_exit(); |
| 54 | audio_amrwb_exit(); |
| 55 | audio_amrwbplus_exit(); |
| 56 | audio_ape_exit(); |
| 57 | audio_evrc_exit(); |
| 58 | audio_g711alaw_exit(); |
| 59 | audio_g711mlaw_exit(); |
| 60 | audio_effects_exit(); |
| 61 | audio_mp3_exit(); |
| 62 | audio_multiaac_exit(); |
| 63 | audio_qcelp_exit(); |
| 64 | audio_wma_exit(); |
| 65 | audio_wmapro_exit(); |
| 66 | evrc_in_exit(); |
| 67 | g711alaw_in_exit(); |
| 68 | g711mlaw_in_exit(); |
| 69 | qcelp_in_exit(); |
| 70 | } |
| 71 | |
| 72 | module_init(audio_native_init); |
| 73 | module_exit(audio_native_exit); |
| 74 | MODULE_LICENSE("GPL v2"); |
| 75 | MODULE_DESCRIPTION("Native Encoder/Decoder module"); |