[PATCH] soundwire: intel: constrain the optional BPT dependency
From: Pengpeng Hou
Date: Mon Nov 30 2026 - 07:30:16 EST
intel_ace2x.c calls the HDA SoundWire BPT helpers when the BPT
provider is enabled. SOUNDWIRE_INTEL can be selected independently
of the SOF platform drivers, so SOUNDWIRE_INTEL=y with
SND_SOC_SOF_HDA_GENERIC=m can still leave SND_SOF_SOF_HDA_SDW_BPT=m.
The IS_ENABLED() declarations then produce unresolved hda_sdw_bpt_*
references from built-in code.
The existing SOF selections handle their own selection paths but do
not constrain an independently enabled SoundWire driver. Add the
optional dependency on the BPT provider, as already done for HDA
MLINK. Leave the BPT-disabled configuration using the existing
stubs.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: 4c1ce9f37d8a ("soundwire: intel_ace2x: add BPT send_async/wait callbacks")
Link: https://lore.kernel.org/all/20260611132310.137688-2-arnd@xxxxxxxxxx/
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/soundwire/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/soundwire/Kconfig b/drivers/soundwire/Kconfig
index 196a7da..99f23b4 100644
--- a/drivers/soundwire/Kconfig
+++ b/drivers/soundwire/Kconfig
@@ -41,6 +41,7 @@ config SOUNDWIRE_INTEL
depends on ACPI && SND_SOC
depends on SND_SOC_SOF_HDA_MLINK || !SND_SOC_SOF_HDA_MLINK
depends on SND_HDA_CORE || !SND_HDA_ALIGNED_MMIO
+ depends on SND_SOF_SOF_HDA_SDW_BPT || !SND_SOF_SOF_HDA_SDW_BPT
help
SoundWire Intel Master driver.
If you have an Intel platform which has a SoundWire Master then
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244