]> git.ipfire.org Git - thirdparty/linux.git/commit
soundwire: cadence: export sdw_cdns_bpt_find_bandwidth
authorBard Liao <yung-chuan.liao@linux.intel.com>
Tue, 14 Oct 2025 03:14:47 +0000 (11:14 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 8 Dec 2025 07:07:26 +0000 (12:37 +0530)
commit57b3a7b27e0b72df4ccee89719de12719aa9d547
treeb31c10277d134da19b690631ce049e6b83ae4660
parent5a838e010c64b794ac990e9b19bfb0bf7083a1f2
soundwire: cadence: export sdw_cdns_bpt_find_bandwidth

Currently, we calculate the required bandwidth after the PDI buffer size
is calculated. However as we need to add some fake frame to align the
data block size, the final PDI size and the frame number will change.
Besides, we need the required bandwidth to decide the DMA channel number
and the channel number will be used to calculate the data block size.
Therefore, we calculate the required bandwidth and export a helper for
the caller to get the required bandwidth.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://patch.msgid.link/20251014031450.3781789-5-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/cadence_master.c
drivers/soundwire/cadence_master.h