| 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(); | 
| Aditya Bavanari | 542582c | 2018-06-26 18:41:06 +0530 | [diff] [blame^] | 33 | 	msm_mdf_init(); | 
| Laxminath Kasam | 8b1366a | 2017-10-05 01:44:16 +0530 | [diff] [blame] | 34 | 	return 0; | 
 | 35 | } | 
 | 36 |  | 
 | 37 | static void __exit audio_q6_exit(void) | 
 | 38 | { | 
| Aditya Bavanari | 542582c | 2018-06-26 18:41:06 +0530 | [diff] [blame^] | 39 | 	msm_mdf_exit(); | 
| Laxminath Kasam | 8b1366a | 2017-10-05 01:44:16 +0530 | [diff] [blame] | 40 | 	avtimer_exit(); | 
 | 41 | 	audio_slimslave_exit(); | 
 | 42 | 	msm_audio_ion_exit(); | 
 | 43 | 	core_exit(); | 
 | 44 | 	voice_exit(); | 
 | 45 | 	q6lsm_exit(); | 
 | 46 | 	q6asm_exit(); | 
 | 47 | 	afe_exit(); | 
 | 48 | 	adm_exit(); | 
 | 49 | 	rtac_exit(); | 
 | 50 | 	audio_cal_exit(); | 
 | 51 | 	adsp_err_exit(); | 
 | 52 | } | 
 | 53 |  | 
 | 54 | module_init(audio_q6_init); | 
 | 55 | module_exit(audio_q6_exit); | 
 | 56 | MODULE_DESCRIPTION("Q6 module"); | 
 | 57 | MODULE_LICENSE("GPL v2"); |