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:
Liam Girdwood 2017-12-08 22:41:31 +00:00
parent e0f65a2b82
commit 9d1dfcbfc0
1 changed files with 2 additions and 1 deletions

View File

@ -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;