From d0c27052c906298e41ce7c21edfb2bc7e9142eda Mon Sep 17 00:00:00 2001 From: Meng Wang Date: Tue, 7 Jan 2020 08:48:17 +0800 Subject: [PATCH] include: sound: add stub function for wcd dsp manager wcd dsp manager is not needed on some devices. Add stub functions for initialize and exit. Change-Id: I8ed0977bddb820ccad04c6a8b9729fd3b2a7d507 Signed-off-by: Meng Wang --- include/sound/wcd-dsp-mgr.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/sound/wcd-dsp-mgr.h b/include/sound/wcd-dsp-mgr.h index 6dde410eb549..424958525e59 100644 --- a/include/sound/wcd-dsp-mgr.h +++ b/include/sound/wcd-dsp-mgr.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved. */ #ifndef __WCD_DSP_MGR_H__ @@ -137,6 +137,17 @@ struct wdsp_mgr_ops { int (*resume)(struct device *wdsp_dev); }; +#ifdef CONFIG_WCD9XXX_CODEC_CORE int wcd_dsp_mgr_init(void); void wcd_dsp_mgr_exit(void); +#else +static inline int wcd_dsp_mgr_init(void) +{ + return 0; +} + +static inline void wcd_dsp_mgr_exit(void) +{ +} +#endif #endif /* end of __WCD_DSP_MGR_H__ */