]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soundwire: introduce BPT section
authorBard Liao <yung-chuan.liao@linux.intel.com>
Tue, 21 Oct 2025 09:43:52 +0000 (17:43 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 8 Dec 2025 07:07:27 +0000 (12:37 +0530)
commitfdfa1960eee7591995cf877e9caf9cf5794ab91f
tree6db0d8df235730614195297bec02d19321ea0162
parent8931f5bce4f159a0dd438c093255d88cb8e00516
soundwire: introduce BPT section

Currently we send a BRA message with a start address with continuous
registers in a BPT stream. However, a codec may need to write different
register sections shortly. Introduce a register section in struct
sdw_btp_msg which contain register start address, length, and buffer.
This commit uses only 1 section for each BPT message. And we need to add
up all BPT section length and check if it reach maximum BPT bytes.
No function changes.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Tested-by: Shuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20251021094355.132943-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c
drivers/soundwire/bus.h
drivers/soundwire/debugfs.c
drivers/soundwire/intel_ace2x.c