Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: sdca: Fix missing regmap dependencies in Kconfig

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@fau.re>
Link: https://patch.msgid.link/20260129141419.13843-1-boris@fau.re
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Boris Faure and committed by
Mark Brown
bbb758a6 fc15f8a4

+2
+2
sound/soc/sdca/Kconfig
··· 46 46 select SND_SOC_SDCA_FDL 47 47 select SND_SOC_SDCA_HID 48 48 select SND_SOC_SDCA_IRQ 49 + select REGMAP_SOUNDWIRE 49 50 help 50 51 This option enables support for the SDCA Class driver which should 51 52 support any class compliant SDCA part. 52 53 53 54 config SND_SOC_SDCA_CLASS_FUNCTION 54 55 tristate 56 + select REGMAP_SOUNDWIRE_MBQ 55 57 help 56 58 This option enables support for the SDCA Class Function drivers, 57 59 these implement the individual functions of the SDCA Class driver.