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 <mengw@codeaurora.org>
This commit is contained in:
Meng Wang 2020-01-07 08:48:17 +08:00
parent 90ae165d38
commit d0c27052c9

View File

@ -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__ */