You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SoundWire w/ deep-buffer: race condition on trigger #3104
when thesofproject/sof#4611 is used to enable a deep-buffer PCM, we see a race condition reported with sof-test, where the TRIGGER_START is sent twice and TRIGGER_STOP never. This leads to invalid SoundWire stream states.
#3098 provides a solution to remove the race condition, but it creates another issue with mixing: stopping one stream results in an xrun for the other....
to reproduce: use PR 3098
terminal 1: speaker-test -Dhw:0,0 -c2 -r48000
terminal2: speaker-test -Dhw:0,31 -c2 -r48000 -l1
Activity
plbossart commentedon Aug 17, 2021
#3098 provides a solution to remove the race condition, but it creates another issue with mixing: stopping one stream results in an xrun for the other....
to reproduce: use PR 3098
terminal 1: speaker-test -Dhw:0,0 -c2 -r48000
terminal2: speaker-test -Dhw:0,31 -c2 -r48000 -l1
a xrun happens when the second stream stops. Gah.
plbossart commentedon Oct 13, 2021
RFC v3 sent upstream https://lore.kernel.org/alsa-devel/20211013143050.244444-1-pierre-louis.bossart@linux.intel.com/ and WIP patches in PR #3209
plbossart commentedon Jun 8, 2022
fixed with upstream changes.