Meng Wang | 61af684 | 2018-09-10 17:47:55 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Laxminath Kasam | 8b1366a | 2017-10-05 01:44:16 +0530 | [diff] [blame] | 2 | /* |
Meng Wang | b0e0479 | 2018-09-27 18:46:44 +0800 | [diff] [blame^] | 3 | * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. |
Laxminath Kasam | 8b1366a | 2017-10-05 01:44:16 +0530 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __Q6_INIT_H__ |
| 7 | #define __Q6_INIT_H__ |
| 8 | int adsp_err_init(void); |
| 9 | int adm_init(void); |
| 10 | int afe_init(void); |
| 11 | int q6asm_init(void); |
| 12 | int q6lsm_init(void); |
| 13 | int voice_init(void); |
| 14 | int audio_cal_init(void); |
| 15 | int core_init(void); |
| 16 | int rtac_init(void); |
| 17 | int msm_audio_ion_init(void); |
Laxminath Kasam | 8b1366a | 2017-10-05 01:44:16 +0530 | [diff] [blame] | 18 | int avtimer_init(void); |
Aditya Bavanari | 542582c | 2018-06-26 18:41:06 +0530 | [diff] [blame] | 19 | #ifdef CONFIG_MSM_MDF |
| 20 | int msm_mdf_init(void); |
| 21 | void msm_mdf_exit(void); |
| 22 | #else |
| 23 | static inline int msm_mdf_init(void) |
| 24 | { |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | static inline void msm_mdf_exit(void) |
| 29 | { |
| 30 | return; |
| 31 | } |
| 32 | #endif |
Laxminath Kasam | 8b1366a | 2017-10-05 01:44:16 +0530 | [diff] [blame] | 33 | |
| 34 | void avtimer_exit(void); |
Laxminath Kasam | 8b1366a | 2017-10-05 01:44:16 +0530 | [diff] [blame] | 35 | void msm_audio_ion_exit(void); |
| 36 | void rtac_exit(void); |
| 37 | void core_exit(void); |
| 38 | void audio_cal_exit(void); |
| 39 | void voice_exit(void); |
| 40 | void q6lsm_exit(void); |
| 41 | void q6asm_exit(void); |
| 42 | void afe_exit(void); |
| 43 | void adm_exit(void); |
| 44 | void adsp_err_exit(void); |
Meng Wang | b0e0479 | 2018-09-27 18:46:44 +0800 | [diff] [blame^] | 45 | #if IS_ENABLED(CONFIG_WCD9XXX_CODEC_CORE) |
| 46 | int audio_slimslave_init(void); |
| 47 | void audio_slimslave_exit(void); |
| 48 | #else |
| 49 | static inline int audio_slimslave_init(void) |
| 50 | { |
| 51 | return 0; |
| 52 | }; |
| 53 | static inline void audio_slimslave_exit(void) |
| 54 | { |
| 55 | }; |
| 56 | #endif |
Laxminath Kasam | 8b1366a | 2017-10-05 01:44:16 +0530 | [diff] [blame] | 57 | #endif |
| 58 | |