Skip to content

ASoC: SOF: ipc4: Fixes for delay reporting

Peter Ujfalusi linux-sound stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ASoC: SOF: ipc4-pcm: fix delay calculation when DSP resamplessound/soc/sof/ipc4-pcm.c+62 -210 replies
2/5ASoC: SOF: ipc4-pcm: fix start offset calculation for chain DMAsound/soc/sof/ipc4-pcm.c sound/soc/sof/ipc4-topology.c sound/soc/sof/ipc4-topology.h+12 -50 replies
3/5ASoC: SOF: sof-audio: add dev_dbg_ratelimited wrappersound/soc/sof/sof-audio.h+5 -00 replies
4/5ASoC: SOF: ipc4-pcm: do not report invalid delay valuessound/soc/sof/ipc4-pcm.c+9 -00 replies
5/5ASoC: SOF: Intel: Read the LLP via the associated Link DMA channelsound/soc/sof/intel/hda-stream.c+27 -20 replies

Reviews trailers per patch

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

PatchPéter UjfalusiBard LiaoKai VehmanenRanjani Sridharan
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b R-b
5/5R-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 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/5] ASoC: SOF: ipc4: Fixes for delay reporting

Hi,

With SRC in the firmware processing pipeline the FE and BE rate can be different, the sample counters on the two side of the DSP counts in different rate domain and they will drift apart. The counters should be moved to the same rate domain to be usable for delay calculation.

The ChainDMA offset value was incorrect since the host buffer size and the trigger to start the chain is misunderstood initially.

Finally: we can have a situation when the host and link DMA channel in HDA is not using matching channel ids.
We need to look up the link channel explicitly to make sure that we read the LLP from the correct link.

Regards,
Peter
---
Kai Vehmanen (3):
ASoC: SOF: ipc4-pcm: fix delay calculation when DSP resamples
ASoC: SOF: ipc4-pcm: fix start offset calculation for chain DMA
ASoC: SOF: ipc4-pcm: do not report invalid delay values

Peter Ujfalusi (2):
ASoC: SOF: sof-audio: add dev_dbg_ratelimited wrapper
ASoC: SOF: Intel: Read the LLP via the associated Link DMA channel

 sound/soc/sof/intel/hda-stream.c |  29 ++++++++-
 sound/soc/sof/ipc4-pcm.c         | 104 ++++++++++++++++++++++++-------
 sound/soc/sof/ipc4-topology.c    |   1 -
 sound/soc/sof/ipc4-topology.h    |   2 +
 sound/soc/sof/sof-audio.h        |   5 ++
 5 files changed, 114 insertions(+), 27 deletions(-)
Signature · 1 line
2.51.0