mirror of https://github.com/thesofproject/sof.git
pipeline: make sure pipeline_down steam returns correct value
pipeline_copy down stream will return 0 instead of the component copy() return value when an endpoint is reached. Make sure we return the component value. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
parent
e0f65a2b82
commit
9d1dfcbfc0
|
@ -789,7 +789,7 @@ static int pipeline_copy_to_downstream(struct comp_dev *start,
|
|||
|
||||
/* stop going downstream if we reach an end point in this pipeline */
|
||||
if (current->is_endpoint)
|
||||
return 0;
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* travel downstream to sink end point(s) */
|
||||
|
@ -815,6 +815,7 @@ static int pipeline_copy_to_downstream(struct comp_dev *start,
|
|||
}
|
||||
}
|
||||
|
||||
out:
|
||||
/* return back upstream */
|
||||
tracev_pipe("CD-");
|
||||
return err;
|
||||
|
|
Loading…
Reference in New Issue