blob: 79d0e41998f51c8c36fba6b754b222537061891c [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 "platform_init.h"
18
19static int __init audio_platform_init(void)
20{
21 msm_compress_dsp_init();
22 msm_fe_dai_init();
23 msm_dai_q6_hdmi_init();
24 msm_dai_q6_init();
25 msm_dai_slim_init();
26 msm_dai_stub_init();
27 msm_lsm_client_init();
28 msm_pcm_afe_init();
29 msm_pcm_dtmf_init();
30 msm_pcm_hostless_init();
31 msm_voice_host_init();
32 msm_pcm_loopback_init();
33 msm_pcm_noirq_init();
34 msm_pcm_dsp_init();
35 msm_soc_routing_platform_init();
36 msm_pcm_voice_init();
37 msm_pcm_voip_init();
38 msm_transcode_loopback_init();
39
40 return 0;
41}
42
43static void audio_platform_exit(void)
44{
45 msm_transcode_loopback_exit();
46 msm_pcm_voip_exit();
47 msm_pcm_voice_exit();
48 msm_soc_routing_platform_exit();
49 msm_pcm_dsp_exit();
50 msm_pcm_noirq_exit();
51 msm_pcm_loopback_exit();
52 msm_voice_host_exit();
53 msm_pcm_hostless_exit();
54 msm_pcm_dtmf_exit();
55 msm_pcm_afe_exit();
56 msm_lsm_client_exit();
57 msm_dai_stub_exit();
58 msm_dai_slim_exit();
59 msm_dai_q6_exit();
60 msm_dai_q6_hdmi_exit();
61 msm_fe_dai_exit();
62 msm_compress_dsp_exit();
63}
64
65module_init(audio_platform_init);
66module_exit(audio_platform_exit);
67
68MODULE_DESCRIPTION("Audio Platform driver");
69MODULE_LICENSE("GPL v2");