mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 11:06:41 -05:00
ASoC: SDCA: Add stubs for FDL helper functions
In the case the SDCA IRQ is built in but FDL support is not stub
functions are required for the FDL helpers to avoid build failures. The
FDL IRQs likely shouldn't get triggered in this case, however they would
still be a part of the build.
Fixes: 71f7990a34 ("ASoC: SDCA: Add FDL library for XU entities")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511200419.SbU6YvjE-lkp@intel.com/
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20251120155657.2181751-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
fee6c075d2
commit
3efee7362d
@@ -64,6 +64,8 @@ struct fdl_state {
|
||||
SDCA_CTL_XU_FDLD_ACK_TRANSFER | \
|
||||
SDCA_CTL_XU_FDLD_NEEDS_SET)
|
||||
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_SDCA_FDL)
|
||||
|
||||
int sdca_fdl_alloc_state(struct sdca_interrupt *interrupt);
|
||||
int sdca_fdl_process(struct sdca_interrupt *interrupt);
|
||||
int sdca_fdl_sync(struct device *dev, struct sdca_function_data *function,
|
||||
@@ -72,4 +74,32 @@ int sdca_fdl_sync(struct device *dev, struct sdca_function_data *function,
|
||||
int sdca_reset_function(struct device *dev, struct sdca_function_data *function,
|
||||
struct regmap *regmap);
|
||||
|
||||
#else
|
||||
|
||||
static inline int sdca_fdl_alloc_state(struct sdca_interrupt *interrupt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int sdca_fdl_process(struct sdca_interrupt *interrupt)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int sdca_fdl_sync(struct device *dev,
|
||||
struct sdca_function_data *function,
|
||||
struct sdca_interrupt_info *info)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int sdca_reset_function(struct device *dev,
|
||||
struct sdca_function_data *function,
|
||||
struct regmap *regmap)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif // CONFIG_SND_SOC_SDCA_FDL
|
||||
|
||||
#endif // __SDCA_FDL_H__
|
||||
|
||||
Reference in New Issue
Block a user