Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: SOF: ipc4-pcm: Correct delay reporting
The link start offset and link position is in frames from the hardware, there is no need for conversion. At the start of the stream the link position can be lower than the start offset as the firmware provides a calculated estimate of it by taking the link DMA position and adding a calculated latency through the audio processing. Fixes: 3937a76 ("ASoC: SOF: ipc4-pcm: add delay function support") Link: thesofproject#4781 Reported-by: Kai Vehmanen <[email protected]> Signed-off-by: Peter Ujfalusi <[email protected]>
- Loading branch information
3d7c4c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to spec : stream_start_offset is in number of bytes, not frames. We need to align with windows driver.
So in fw we build it in bytes