Repository navigation
still copy in none-active status #356
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -203,7 +203,6 @@ static void pipeline_trigger_sched_comp(struct pipeline *p, | |
| switch (cmd) { | ||
| case COMP_TRIGGER_PAUSE: | ||
| case COMP_TRIGGER_STOP: | ||
| pipeline_schedule_cancel(p); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What stops this being (re)scheduled after STOP ? |
||
| p->status = COMP_STATE_PAUSED; | ||
| break; | ||
| case COMP_TRIGGER_RELEASE: | ||
|
|
@@ -771,9 +770,12 @@ static int pipeline_copy_from_upstream(struct comp_dev *start, | |
| buffer = container_of(clist, struct comp_buffer, sink_list); | ||
|
|
||
| /* don't go upstream if this component is not connected */ | ||
| if (!buffer->connected || buffer->source->state != COMP_STATE_ACTIVE) | ||
| if (!buffer->connected) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will breal pipelines with a mixer, where closing one source stream will probably stop the sink stream (even if other source streams are active )? |
||
| continue; | ||
|
|
||
| if (buffer->source->state != COMP_STATE_ACTIVE) | ||
| trace_pipe_error("pus"); | ||
|
|
||
| /* don't go upstream if this source is from another pipeline */ | ||
| if (buffer->source->pipeline != current->pipeline) | ||
| continue; | ||
|
|
@@ -834,9 +836,12 @@ static int pipeline_copy_to_downstream(struct comp_dev *start, | |
| buffer = container_of(clist, struct comp_buffer, source_list); | ||
|
|
||
| /* don't go downstream if this component is not connected */ | ||
| if (!buffer->connected || buffer->sink->state != COMP_STATE_ACTIVE) | ||
| if (!buffer->connected) | ||
| continue; | ||
|
|
||
| if (buffer->sink->state != COMP_STATE_ACTIVE) | ||
| trace_pipe_error("pds"); | ||
|
|
||
| /* don't go downstream if this sink is from another pipeline */ | ||
| if (buffer->sink->pipeline != current->pipeline) | ||
| continue; | ||
|
|
||
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.
I dont see how this improve XRUN or pause release. This commit messages give no detail.