Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/audio/pipeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,12 +462,19 @@ static void pipeline_comp_trigger_sched_comp(struct pipeline *p,
static int pipeline_comp_trigger(struct comp_dev *current, void *data, int dir)
{
struct pipeline_data *ppl_data = data;
int is_single_ppl = comp_is_single_pipeline(current, ppl_data->start);
int is_same_sched =
pipeline_is_same_sched_comp(current->pipeline,
ppl_data->start->pipeline);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why don't you put pipeline_is_same_sched_comp on the same line with int is_same_sched? It does fit inside 80 char limit.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@dbaluta But then ppl_data->start->pipeline can't be aligned with opening bracket, because it will exceed 80 chars.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

oh, ok. I see your point.

int err = 0;

tracev_pipe("pipeline_comp_trigger(), current->comp.id = %u, dir = %u",
current->comp.id, dir);

if (!comp_is_single_pipeline(current, ppl_data->start)) {
/* trigger should propagate to the connected pipelines,
* which need to be scheduled together
*/
if (!is_single_ppl && !is_same_sched) {
Comment thread
tlauda marked this conversation as resolved.
Resolved
tracev_pipe_with_ids(current->pipeline, "pipeline_comp_trigger"
"(), current is from another pipeline");
return 0;
Expand Down