[PATCH] ASoC: codecs: wcd934x: add explicit soundwire depenency

Srinivas Kandagatla posted 1 patch 1 week, 3 days ago
sound/soc/codecs/Kconfig | 1 +
1 file changed, 1 insertion(+)
[PATCH] ASoC: codecs: wcd934x: add explicit soundwire depenency
Posted by Srinivas Kandagatla 1 week, 3 days ago
WCD934x provides register read/write interface to soundwire controller via
slimbus. Eventhough there was no direct compile time dependency for
this so far, however after adding common wcd functions this dependency
became explict.

We can either move the soundwire specific bits from wcd-common to wcd-sdw.c or
something on those lines or explicity add this dependency in Kconfig.
Moving this wcd-sdw can fix reported compile issue but it does not make
sense to select this codec without soundwire configs.
Given the fact that WCD934x is very much providing soundwire functionality
it is better to specify the soundwire dependency explicity in Kconfig
which should also fix the below compile time error with combination
of wcd934x a built-in and soundwire a module and also allow this codec
selection only when soundwire is available.

Error log:
wcd-common.c:undefiined reference to `sdw_write'
sound/soc/codecs/wcd-common.o: in function `wcd_bus_config':

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511210405.zd9wig5Z-lkp@intel.com/
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
---
 sound/soc/codecs/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index 3f11b2c9cce8..65168c7aa385 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -2254,6 +2254,7 @@ config SND_SOC_WCD934X
 	tristate "WCD9340/WCD9341 Codec"
 	depends on COMMON_CLK
 	depends on SLIMBUS
+	depends on SOUNDWIRE || !SOUNDWIRE
 	select REGMAP_IRQ
 	select REGMAP_SLIMBUS
 	select SND_SOC_WCD_CLASSH
-- 
2.51.0
Re: [PATCH] ASoC: codecs: wcd934x: add explicit soundwire depenency
Posted by Mark Brown 1 week, 3 days ago
On Fri, 21 Nov 2025 14:32:58 +0000, Srinivas Kandagatla wrote:
> WCD934x provides register read/write interface to soundwire controller via
> slimbus. Eventhough there was no direct compile time dependency for
> this so far, however after adding common wcd functions this dependency
> became explict.
> 
> We can either move the soundwire specific bits from wcd-common to wcd-sdw.c or
> something on those lines or explicity add this dependency in Kconfig.
> Moving this wcd-sdw can fix reported compile issue but it does not make
> sense to select this codec without soundwire configs.
> Given the fact that WCD934x is very much providing soundwire functionality
> it is better to specify the soundwire dependency explicity in Kconfig
> which should also fix the below compile time error with combination
> of wcd934x a built-in and soundwire a module and also allow this codec
> selection only when soundwire is available.
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: codecs: wcd934x: add explicit soundwire depenency
      commit: a3d8f733d453ed4d4eb1f0e894eec787777465a2

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
Re: [PATCH] ASoC: codecs: wcd934x: add explicit soundwire depenency
Posted by Markus Elfring 1 week, 2 days ago
> Applied to
> 
>    https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
> 
> Thanks!
> 
> [1/1] ASoC: codecs: wcd934x: add explicit soundwire depenency
>       commit: a3d8f733d453ed4d4eb1f0e894eec787777465a2
> 
> All being well this means that it will be integrated into the linux-next
> tree (usually sometime in the next 24 hours) and sent to Linus during
> the next merge window (or sooner if it is a bug fix), however if
> problems are discovered then the patch may be dropped or reverted.

Would any contributors care more to avoid a typo in the summary phrase?

Regards,
Markus