Skip to content

Fix delay error - #4791

Closed
RanderWang wants to merge 1 commit into
thesofproject:topic/sof-devfrom
RanderWang:delay_fix
Closed

RanderWang wants to merge 1 commit into
thesofproject:topic/sof-devfrom
RanderWang:delay_fix

Conversation

@RanderWang

Copy link
Copy Markdown

Currently we use runtime->hw_ptr and BE dai link position to calculate
delay and find runtime->hw_ptr is smaller than BE dai link position for
playback. This is incorrect since snd_pcm_delay function is called
first and then hw_ptr is updated to latest one, so hw_ptr here is for
the last stream position update. This results to hw_ptr is smaller than
latest BE dai link position. This bug is exposed by a 10 microseconds
delay in fw.

#4781
#4686

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants