Re: [PATCH] ASoC: sdca: Fix missing regmap dependencies in Kconfig
From: Charles Keepax
Date: Thu Jan 29 2026 - 10:38:13 EST
On Thu, Jan 29, 2026 at 02:14:54PM +0000, Boris Faure wrote:
> The SDCA modules failed to build with modpost errors:
>
> ERROR: modpost: "__devm_regmap_init_sdw" [sound/soc/sdca/snd-soc-sdca-class.ko] undefined!
> ERROR: modpost: "__devm_regmap_init_sdw_mbq" [sound/soc/sdca/snd-soc-sdca-class-function.ko] undefined!
>
> The issue occurs because:
> - sdca_class.c calls devm_regmap_init_sdw() which requires REGMAP_SOUNDWIRE
> - sdca_class_function.c calls devm_regmap_init_sdw_mbq_cfg() which requires REGMAP_SOUNDWIRE_MBQ
>
> However, the Kconfig didn't select these dependencies, causing the symbols
> to be unavailable when the SDCA modules are built.
>
> Fix this by adding:
> - select REGMAP_SOUNDWIRE to SND_SOC_SDCA_CLASS
> - select REGMAP_SOUNDWIRE_MBQ to SND_SOC_SDCA_CLASS_FUNCTION
>
> This ensures the required regmap drivers are enabled when building SDCA support.
>
> Configuration after fix:
> CONFIG_SND_SOC_SDCA_CLASS=m
> CONFIG_SND_SOC_SDCA_CLASS_FUNCTION=m
> CONFIG_REGMAP_SOUNDWIRE=m
> CONFIG_REGMAP_SOUNDWIRE_MBQ=m
>
> Signed-off-by: Boris Faure <boris@xxxxxx>
> ---
Reviewed-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxx>
Thanks,
Charles