Re: [PATCH] soundwire: intel: constrain the optional BPT dependency

From: Pengpeng Hou

Date: Wed Dec 02 2026 - 22:14:26 EST


Hi Vinod,

Yes. The attached x86_64 config fails the vmlinux link at
a9c48428cbd8 (linux-next), with GCC 11.4.0. The relevant settings are:

CONFIG_SOUNDWIRE_INTEL=y
CONFIG_SND_SOC_SOF_HDA_GENERIC=m
CONFIG_SND_SOF_SOF_HDA_SDW_BPT=m

intel_ace2x.o is built in, while the BPT implementation is in a
module. The linker reports undefined references to hda_sdw_bpt_close
and the other BPT helpers from intel_ace2x.c. I've attached the full
config and the linker diagnostics from that build. The log is from the
unpatched tree, not a build of the proposed fix.

Thanks,
Pengpeng

Attachment: soundwire-x86_64.config.gz
Description: application/gzip

intel_ace2x.c:(.text+0x632): undefined reference to `hda_sdw_bpt_close'
intel_ace2x.c:(.text+0x775): undefined reference to `hda_sdw_bpt_wait'
intel_ace2x.c:(.text+0xfc8): undefined reference to `hda_sdw_bpt_send_async'
ld: intel_ace2x.c:(.text+0x11a0): undefined reference to `hda_sdw_bpt_get_buf_size_alignment'
ld: intel_ace2x.c:(.text+0x11ad): undefined reference to `hda_sdw_bpt_get_buf_size_alignment'
ld: intel_ace2x.c:(.text+0x123f): undefined reference to `hda_sdw_bpt_open'
ld: intel_ace2x.c:(.text+0x12d7): undefined reference to `hda_sdw_bpt_close'