dsp: compile avtimer based on avtimer config
Enable compilation of avtimer only if CONFIG_MSM_AVTIMER is enabled. Change-Id: I64cc8c65dbe22fafee527da80d3615fb5201665f Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
11c35ea451
commit
923be76f78
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __Q6_INIT_H__
|
||||
@@ -15,7 +15,14 @@ int audio_cal_init(void);
|
||||
int core_init(void);
|
||||
int rtac_init(void);
|
||||
int msm_audio_ion_init(void);
|
||||
#if IS_ENABLED(CONFIG_MSM_AVTIMER)
|
||||
int avtimer_init(void);
|
||||
#else
|
||||
static inline int avtimer_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#ifdef CONFIG_MSM_MDF
|
||||
int msm_mdf_init(void);
|
||||
void msm_mdf_exit(void);
|
||||
@@ -43,7 +50,14 @@ static inline void spk_params_exit(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if IS_ENABLED(CONFIG_MSM_AVTIMER)
|
||||
void avtimer_exit(void);
|
||||
#else
|
||||
static inline void avtimer_exit(void)
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
void msm_audio_ion_exit(void);
|
||||
void rtac_exit(void);
|
||||
void core_exit(void);
|
||||
|
Reference in New Issue
Block a user