Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipeline: allow render pipeline to recover from xrun #125

Merged
merged 1 commit into from Jul 18, 2018

Conversation

tlauda
Copy link
Contributor

@tlauda tlauda commented Jul 18, 2018

Fixes pipeline's ability to recover from xrun for render streams.
Normally for render the ppl task is scheduled after trigger start,
but in this case trigger start is done on current's task level.

Signed-off-by: Tomasz Lauda tomasz.lauda@linux.intel.com

Fixes pipeline's ability to recover from xrun for render streams.
Normally for render the ppl task is scheduled after trigger start,
but in this case trigger start is done on current's task level.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
@tlauda tlauda closed this Jul 18, 2018
@tlauda tlauda reopened this Jul 18, 2018
@lgirdwood
Copy link
Member

I was about to merge when you closed, I guess you have a better fix ?

@tlauda
Copy link
Contributor Author

tlauda commented Jul 18, 2018

Probably, just hold on a little bit longer.

@tlauda
Copy link
Contributor Author

tlauda commented Jul 18, 2018

You can merge it as it is.
Implementing it the right way requires many changes in the scheduler.
I will do it in the near future.

@lgirdwood lgirdwood merged commit fd55d5f into thesofproject:master Jul 18, 2018
@@ -1090,6 +1106,17 @@ static int pipeline_xrun_recover(struct pipeline *p)
return ret;
}

/* for playback copy it here, because scheduling won't work
* on this interrupt level
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you mean you kept the schedule idle copy in the pipeline trigger start as it will never work there?
Thus this is some workaround for now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly. Also my comment is a little bit misleading. To be precised, schedule won't work, because scheduler doesn't allow to add to the list tasks, which are currently running.

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.

None yet

3 participants