blob: 5c194fb06a4d491516b23ee78b604a726721cfee [file] [log] [blame]
Laxminath Kasam8b1366a2017-10-05 01:44:16 +05301/*
2Copyright (c) 2017, The Linux Foundation. All rights reserved.
3
4This program is free software; you can redistribute it and/or modify
5it under the terms of the GNU General Public License version 2 and
6only version 2 as published by the Free Software Foundation.
7
8This program is distributed in the hope that it will be useful,
9but WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11GNU 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
19static 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 Bavanari542582c2018-06-26 18:41:06 +053033 msm_mdf_init();
Laxminath Kasam8b1366a2017-10-05 01:44:16 +053034 return 0;
35}
36
37static void __exit audio_q6_exit(void)
38{
Aditya Bavanari542582c2018-06-26 18:41:06 +053039 msm_mdf_exit();
Laxminath Kasam8b1366a2017-10-05 01:44:16 +053040 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
54module_init(audio_q6_init);
55module_exit(audio_q6_exit);
56MODULE_DESCRIPTION("Q6 module");
57MODULE_LICENSE("GPL v2");