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
6 changes: 3 additions & 3 deletions src/audio/pipeline/pipeline-schedule.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ void pipeline_schedule_triggered(struct pipeline_walk_context *ctx,
struct list_item *tlist;
struct pipeline *p;
uint32_t flags;
bool first_pipe = false;
bool first_pipe = true;

/*
* Interrupts have to be disabled while adding tasks to or removing them
Expand All @@ -200,10 +200,10 @@ void pipeline_schedule_triggered(struct pipeline_walk_context *ctx,
p = container_of(tlist, struct pipeline, list);
if (pipeline_is_timer_driven(p)) {
/* Use the first of connected pipelines to trigger */
if (cmd >= 0 && !first_pipe) {
if (first_pipe) {
p->trigger.cmd = cmd;
p->trigger.host = ppl_data->start;
first_pipe = true;
first_pipe = false;
}
} else {
p->xrun_bytes = 0;
Expand Down