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 "q6_init.h" |
| 18 | |
| 19 | static int __init audio_q6_init(void) |
| 20 | { |
| 21 | adsp_err_init(); |
| 22 | audio_cal_init(); |
| 23 | rtac_init(); |
| 24 | adm_init(); |
| 25 | afe_init(); |
| 26 | q6asm_init(); |
| 27 | q6lsm_init(); |
| 28 | voice_init(); |
| 29 | core_init(); |
| 30 | msm_audio_ion_init(); |
| 31 | audio_slimslave_init(); |
| 32 | avtimer_init(); |
| 33 | return 0; |
| 34 | } |
| 35 | |
| 36 | static void __exit audio_q6_exit(void) |
| 37 | { |
| 38 | avtimer_exit(); |
| 39 | audio_slimslave_exit(); |
| 40 | msm_audio_ion_exit(); |
| 41 | core_exit(); |
| 42 | voice_exit(); |
| 43 | q6lsm_exit(); |
| 44 | q6asm_exit(); |
| 45 | afe_exit(); |
| 46 | adm_exit(); |
| 47 | rtac_exit(); |
| 48 | audio_cal_exit(); |
| 49 | adsp_err_exit(); |
| 50 | } |
| 51 | |
| 52 | module_init(audio_q6_init); |
| 53 | module_exit(audio_q6_exit); |
| 54 | MODULE_DESCRIPTION("Q6 module"); |
| 55 | MODULE_LICENSE("GPL v2"); |