[PATCH RESEND 0/7] ASoC/soundwire: add fake BPT frame to align Intel DMA buffer size

Bard Liao posted 7 patches 1 month, 2 weeks ago
drivers/soundwire/cadence_master.c            | 85 +++++++++++++++++--
drivers/soundwire/cadence_master.h            |  7 +-
.../soundwire/generic_bandwidth_allocation.c  |  3 +
drivers/soundwire/intel_ace2x.c               | 61 +++++++++++--
include/sound/hda-sdw-bpt.h                   |  7 ++
sound/soc/sof/intel/hda-sdw-bpt.c             | 13 +++
6 files changed, 161 insertions(+), 15 deletions(-)
[PATCH RESEND 0/7] ASoC/soundwire: add fake BPT frame to align Intel DMA buffer size
Posted by Bard Liao 1 month, 2 weeks ago
There is a constraint on Intel DMA buffer size that needs to be a
multiple of data block size. This series adds some fake BRA frames
to add some extra buffer size to meet the constraint.
The change is mainly on the soundwire tree. It would be better to go
through the soundwire tree.

Bard Liao (7):
  soundwire: cadence_master: make frame index trace more readable
  soundwire: only compute BPT stream in sdw_compute_dp0_port_params
  soundwire: cadence_master: set data_per_frame as frame capability
  soundwire: cadence: export sdw_cdns_bpt_find_bandwidth
  ASoC: SOF: Intel: export hda_sdw_bpt_get_buf_size_aligment
  soundwire: cadence_master: add fake_size parameter to
    sdw_cdns_prepare_read_dma_buffer
  soundwire: intel_ace2x: add fake frame to BRA read command

 drivers/soundwire/cadence_master.c            | 85 +++++++++++++++++--
 drivers/soundwire/cadence_master.h            |  7 +-
 .../soundwire/generic_bandwidth_allocation.c  |  3 +
 drivers/soundwire/intel_ace2x.c               | 61 +++++++++++--
 include/sound/hda-sdw-bpt.h                   |  7 ++
 sound/soc/sof/intel/hda-sdw-bpt.c             | 13 +++
 6 files changed, 161 insertions(+), 15 deletions(-)

-- 
2.43.0
Re: [PATCH RESEND 0/7] ASoC/soundwire: add fake BPT frame to align Intel DMA buffer size
Posted by Vinod Koul 1 month ago
On Thu, 30 Oct 2025 15:02:46 +0800, Bard Liao wrote:
> There is a constraint on Intel DMA buffer size that needs to be a
> multiple of data block size. This series adds some fake BRA frames
> to add some extra buffer size to meet the constraint.
> The change is mainly on the soundwire tree. It would be better to go
> through the soundwire tree.
> 
> Bard Liao (7):
>   soundwire: cadence_master: make frame index trace more readable
>   soundwire: only compute BPT stream in sdw_compute_dp0_port_params
>   soundwire: cadence_master: set data_per_frame as frame capability
>   soundwire: cadence: export sdw_cdns_bpt_find_bandwidth
>   ASoC: SOF: Intel: export hda_sdw_bpt_get_buf_size_aligment
>   soundwire: cadence_master: add fake_size parameter to
>     sdw_cdns_prepare_read_dma_buffer
>   soundwire: intel_ace2x: add fake frame to BRA read command
> 
> [...]

Applied, thanks!

[1/7] soundwire: cadence_master: make frame index trace more readable
      commit: 464101450bf8c16be6f6bd2cc48d3dfd7ab4a23a
[2/7] soundwire: only compute BPT stream in sdw_compute_dp0_port_params
      commit: 101bfbe88ae4944263fd58b2e0c265db263f793a
[3/7] soundwire: cadence_master: set data_per_frame as frame capability
      commit: 558abe5fadd03579351ce1c752b5961984b0fb86
[4/7] soundwire: cadence: export sdw_cdns_bpt_find_bandwidth
      commit: 207a5831b34834dd97ed2f0100bf936cf67e54c3
[5/7] ASoC: SOF: Intel: export hda_sdw_bpt_get_buf_size_aligment
      commit: 10ed028f7851f41d391c6b6516c9f8b3f95fac8f
[6/7] soundwire: cadence_master: add fake_size parameter to sdw_cdns_prepare_read_dma_buffer
      commit: d7941dc674aed1e9eed5e17fe46c3dde884fc948
[7/7] soundwire: intel_ace2x: add fake frame to BRA read command
      commit: 420399049ebba154bb82d5024d9a7d2de19ce1f8

Best regards,
-- 
~Vinod