Laxminath Kasam | 8b1366a | 2017-10-05 01:44:16 +0530 | [diff] [blame] | 1 | /* |
| 2 | Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| 3 | |
| 4 | This program is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License version 2 and |
| 6 | only version 2 as published by the Free Software Foundation. |
| 7 | |
| 8 | This program is distributed in the hope that it will be useful, |
| 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | GNU 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 | |
| 19 | static 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 | |
| 43 | static 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 | |
| 65 | module_init(audio_platform_init); |
| 66 | module_exit(audio_platform_exit); |
| 67 | |
| 68 | MODULE_DESCRIPTION("Audio Platform driver"); |
| 69 | MODULE_LICENSE("GPL v2"); |