Skip to content

ASoC: SOF: ipc4/Intel: Fix the host buffer constraint

Peter Ujfalusi linux-sound stable 3 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v23 patches 6 repliesSuperseded
  3. v13 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- SHA fix for the last commit, tripple checked them

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ASoC: SOF: ipc4-topology: Correct the minimum host DMA buffer sizesound/soc/sof/ipc4-topology.h+2 -20 replies
2/3ASoC: SOF: ipc4-topology: Account for different ChainDMA host buffer sizesound/soc/sof/ipc4-topology.c sound/soc/sof/ipc4-topology.h+10 -20 replies
3/3ASoC: SOF: Intel: hda-pcm: Place the constraint on period time instead of buffer timesound/soc/sof/intel/hda-pcm.c+21 -80 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchRanjani SridharanKai VehmanenBard Liao
1/3R-b R-b R-b
2/3R-b R-b R-b
3/3R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/3] ASoC: SOF: ipc4/Intel: Fix the host buffer constraint

Hi,

CHanges since v2:
- SHA fix for the last commit, tripple checked them

Changes since v1:
- SHAs for Fixes tag corrected (sorry)

The size of the DSP host buffer was incorrectly defined as 2ms while it is 4ms and the ChainDMA PCMs are using 5ms as host facing buffer.

The constraint will be set against the period time rather than the buffer time to make sure that application will not face with xruns when the DMA bursts to refill the host buffer.

The minimal period size will be also used by Pipewire in case of SOF cards to set the headroom to a length which will avoid the cases when the hw_ptr jumps over the appl_ptr because of a burst. Iow, it will make Pipewire to keep a safe distance from the hw_ptr.

https://github.com/thesofproject/linux/issues/5284
https://gitlab.freedesktop.org/pipewire/wireplumber/-/merge_requests/740
https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/2548

Regards,
Peter
---

Peter Ujfalusi (3):
ASoC: SOF: ipc4-topology: Correct the minimum host DMA buffer size
ASoC: SOF: ipc4-topology: Account for different ChainDMA host buffer
size
ASoC: SOF: Intel: hda-pcm: Place the constraint on period time instead
of buffer time

 sound/soc/sof/intel/hda-pcm.c | 29 +++++++++++++++++++++--------
 sound/soc/sof/ipc4-topology.c |  9 +++++++--
 sound/soc/sof/ipc4-topology.h |  7 +++++--
 3 files changed, 33 insertions(+), 12 deletions(-)
Signature · 1 line
2.51.0