aboutsummaryrefslogtreecommitdiff
path: root/techpack/audio/dsp/q6_init.c
blob: eddd18b3199af966f42f41b16c0e479060c3e734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
Copyright (c) 2017, 2019 The Linux Foundation. All rights reserved.
Copyright (C) 2019 XiaoMi, Inc.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 and
only version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
*
*/

#include <linux/kernel.h>
#include <linux/module.h>
#include "q6_init.h"

static int __init audio_q6_init(void)
{
	adsp_err_init();
	audio_cal_init();
	rtac_init();
	adm_init();
	afe_init();
	spk_params_init();
	q6asm_init();
	q6lsm_init();
	voice_init();
	core_init();
	msm_audio_ion_init();
	audio_slimslave_init();
	avtimer_init();
#ifdef CONFIG_MSM_CSPL
	crus_sp_init();
#endif
	msm_mdf_init();
#if CONFIG_VOICE_MHI
	voice_mhi_init();
#endif
#if 0
	elliptic_driver_init();
#endif
/* for mius start */
#ifdef CONFIG_US_PROXIMITY
	mius_driver_init();
#endif
/* for mius end */
	return 0;
}

static void __exit audio_q6_exit(void)
{
	msm_mdf_exit();
#ifdef CONFIG_MSM_CSPL
	crus_sp_exit();
#endif
	avtimer_exit();
	audio_slimslave_exit();
	msm_audio_ion_exit();
	core_exit();
	voice_exit();
	q6lsm_exit();
	q6asm_exit();
	afe_exit();
	spk_params_exit();
	adm_exit();
	rtac_exit();
	audio_cal_exit();
	adsp_err_exit();
#if CONFIG_VOICE_MHI
	voice_mhi_exit();
#endif
#if 0
	elliptic_driver_exit();
#endif
/* for mius start */
#ifdef CONFIG_US_PROXIMITY
	mius_driver_exit();
#endif
/* for mius end */
}

module_init(audio_q6_init);
module_exit(audio_q6_exit);
MODULE_DESCRIPTION("Q6 module");
MODULE_LICENSE("GPL v2");