68 lines
1.4 KiB
C
68 lines
1.4 KiB
C
/*
|
|
Copyright (c) 2017, 2019 The Linux Foundation. All rights reserved.
|
|
|
|
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();
|
|
msm_mdf_init();
|
|
voice_mhi_init();
|
|
#ifdef CONFIG_SEC_SND_ADAPTATION
|
|
sec_soc_platform_init();
|
|
#endif
|
|
return 0;
|
|
}
|
|
|
|
static void __exit audio_q6_exit(void)
|
|
{
|
|
#ifdef CONFIG_SEC_SND_ADAPTATION
|
|
sec_soc_platform_exit();
|
|
#endif
|
|
msm_mdf_exit();
|
|
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();
|
|
voice_mhi_exit();
|
|
}
|
|
|
|
fs_initcall(audio_q6_init);
|
|
module_exit(audio_q6_exit);
|
|
MODULE_DESCRIPTION("Q6 module");
|
|
MODULE_LICENSE("GPL v2");
|