blob: 3b885dcb9095dc55b83e4f724483d2714df677e1 [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();
33 return 0;
34}
35
36static 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
52module_init(audio_q6_init);
53module_exit(audio_q6_exit);
54MODULE_DESCRIPTION("Q6 module");
55MODULE_LICENSE("GPL v2");