* [PATCH] ASoC: sunxi: sun50i-dmic: select REGMAP_MMIO
@ 2026-11-04 13:53 Jude Gyimah
0 siblings, 0 replies; only message in thread
From: Jude Gyimah @ 2026-11-04 13:53 UTC (permalink / raw)
To: lgirdwood, broonie, perex, tiwai, wens, jernej.skrabec, samuel
Cc: linux-sound, linux-arm-kernel, linux-sunxi, linux-kernel, Jude Gyimah
sun50i-dmic calls __devm_regmap_init_mmio_clk, which
drivers/base/regmap/regmap-mmio.c provides under REGMAP_MMIO.
sun50i-dmic.c:(.text+0x142bce): undefined reference to
`__devm_regmap_init_mmio_clk'
The driver can be built into vmlinux while REGMAP_MMIO is a module, in
which case the symbol is not there at link time.
Select rather than depend on: REGMAP_MMIO has no prompt of its own and is
only ever enabled by a select, so a depends on would leave SND_SUN50I_DMIC
unselectable.
Reproduced on v7.3, x86_64, with CONFIG_SND_SUN50I_DMIC=y and
CONFIG_REGMAP_MMIO=m.
Found with kreach, a static check that compares what Kconfig allows
against the symbols the compiled objects actually reference.
Fixes: 9fc2c8ed923d ("ASoC: sunxi: Add Allwinner H6 Digital MIC driver")
Signed-off-by: Jude Gyimah <jude.gyimah87@gmail.com>
---
The checker is at https://github.com/JGyimah/kreach, and the
reproducer configuration for each finding is published with it
under results/.
sound/soc/sunxi/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/sunxi/Kconfig b/sound/soc/sunxi/Kconfig
index 205f422d9ded..c8a626396e9a 100644
--- a/sound/soc/sunxi/Kconfig
+++ b/sound/soc/sunxi/Kconfig
@@ -58,6 +58,7 @@ config SND_SUN4I_SPDIF
config SND_SUN50I_DMIC
tristate "Allwinner H6 DMIC Support"
+ select REGMAP_MMIO
select SND_SOC_GENERIC_DMAENGINE_PCM
help
Say Y or M to add support for the DMIC audio block in the Allwinner
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-04 13:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 13:53 [PATCH] ASoC: sunxi: sun50i-dmic: select REGMAP_MMIO Jude Gyimah
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®