Skip to content

SoundWire w/ deep-buffer: race condition on trigger #3104

Closed

Description

@plbossart

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.

Activity

  1. plbossart commented on Aug 17, 2021

    @plbossart
    MemberAuthor

    #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.

  2. plbossart commented on Oct 13, 2021

    @plbossart
    MemberAuthor
  3. plbossart commented on Jun 8, 2022

    @plbossart
    MemberAuthor

    fixed with upstream changes.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingupstream blockerMandatory for upstream

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions