
Add voice MHI driver to support the following features - 1. Allocate and map mailbox memory needed for voice call packet exchange. 2. Send memory mapped addresses to ADSP. 3. Vote MHI host driver at start and stop of a voice call. Change-Id: I8ef8bc270acacab9b80bca7addccdf73bd572adf Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
73 line
1.3 KiB
C
73 line
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __Q6_INIT_H__
|
|
#define __Q6_INIT_H__
|
|
int adsp_err_init(void);
|
|
int adm_init(void);
|
|
int afe_init(void);
|
|
int q6asm_init(void);
|
|
int q6lsm_init(void);
|
|
int voice_init(void);
|
|
int audio_cal_init(void);
|
|
int core_init(void);
|
|
int rtac_init(void);
|
|
int msm_audio_ion_init(void);
|
|
int avtimer_init(void);
|
|
#ifdef CONFIG_MSM_MDF
|
|
int msm_mdf_init(void);
|
|
void msm_mdf_exit(void);
|
|
#else
|
|
static inline int msm_mdf_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void msm_mdf_exit(void)
|
|
{
|
|
return;
|
|
}
|
|
#endif
|
|
|
|
void avtimer_exit(void);
|
|
void msm_audio_ion_exit(void);
|
|
void rtac_exit(void);
|
|
void core_exit(void);
|
|
void audio_cal_exit(void);
|
|
void voice_exit(void);
|
|
void q6lsm_exit(void);
|
|
void q6asm_exit(void);
|
|
void afe_exit(void);
|
|
void adm_exit(void);
|
|
void adsp_err_exit(void);
|
|
#if IS_ENABLED(CONFIG_WCD9XXX_CODEC_CORE)
|
|
int audio_slimslave_init(void);
|
|
void audio_slimslave_exit(void);
|
|
#else
|
|
static inline int audio_slimslave_init(void)
|
|
{
|
|
return 0;
|
|
};
|
|
static inline void audio_slimslave_exit(void)
|
|
{
|
|
};
|
|
#endif
|
|
#ifdef CONFIG_VOICE_MHI
|
|
int voice_mhi_init(void);
|
|
void voice_mhi_exit(void);
|
|
#else
|
|
static inline int voice_mhi_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void voice_mhi_exit(void)
|
|
{
|
|
return;
|
|
}
|
|
#endif
|
|
#endif
|
|
|