From: Pengpeng Hou <hppiscas@163.com>
To: vkoul@kernel.org
Cc: yung-chuan.liao@linux.intel.com, pierre-louis.bossart@linux.dev,
linux-sound@vger.kernel.org, broonie@kernel.org, arnd@arndb.de,
peter.ujfalusi@linux.intel.com, linux-kernel@vger.kernel.org,
hppiscas@163.com
Subject: [PATCH] soundwire: intel: constrain the optional BPT dependency
Date: Mon, 30 Nov 2026 20:29:19 +0800 [thread overview]
Message-ID: <20261130122919.71184-1-hppiscas@163.com> (raw)
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@kernel.org/
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
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
reply other threads:[~2026-11-30 12:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130122919.71184-1-hppiscas@163.com \
--to=hppiscas@163.com \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=peter.ujfalusi@linux.intel.com \
--cc=pierre-louis.bossart@linux.dev \
--cc=vkoul@kernel.org \
--cc=yung-chuan.liao@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®