mirror of https://github.com/thesofproject/sof.git
pipeline: pipeline_comp_copy: return once errors happened
We should stop the pipeline copying once errors happened on any component copying, here fix it. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
parent
a40e1fd009
commit
51f0821af0
|
@ -575,11 +575,16 @@ static int pipeline_comp_copy(struct comp_dev *current, void *data, int dir)
|
|||
}
|
||||
|
||||
/* copy to downstream immediately */
|
||||
if (current != ppl_data->start && dir == PPL_DIR_DOWNSTREAM)
|
||||
if (current != ppl_data->start && dir == PPL_DIR_DOWNSTREAM) {
|
||||
err = comp_copy(current);
|
||||
if (err < 0)
|
||||
return err;
|
||||
}
|
||||
|
||||
pipeline_for_each_comp(current, &pipeline_comp_copy, data, NULL,
|
||||
dir);
|
||||
err = pipeline_for_each_comp(current, &pipeline_comp_copy,
|
||||
data, NULL, dir);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
if (dir == PPL_DIR_UPSTREAM)
|
||||
err = comp_copy(current);
|
||||
|
|
Loading…
Reference in New Issue