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: graph: Check if source_comp is NULL in pipeline_comp_reset() #9586

Merged
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/pipeline-graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,20 @@ static int pipeline_comp_reset(struct comp_dev *current,
{
struct pipeline *p = ctx->comp_data;
struct pipeline *p_current = current->pipeline;
int is_single_ppl = comp_is_single_pipeline(current, p->source_comp);
int is_same_sched = pipeline_is_same_sched_comp(p_current, p);
int is_single_ppl;
int err;

pipe_dbg(p_current, "pipeline_comp_reset(), current->comp.id = 0x%x, dir = %u",
dev_comp_id(current), dir);

if (!p->source_comp) {
pipe_err(p, "pipeline_comp_reset(): source_comp is NULL");
return -EINVAL;
}

is_single_ppl = comp_is_single_pipeline(current, p->source_comp);

/*
* Reset should propagate to the connected pipelines, which need to be
* scheduled together, except for IPC4, where each pipeline receives
Expand Down
Loading