Skip to content

Commit 9d1dfcb

Browse files
committed
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>
1 parent e0f65a2 commit 9d1dfcb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/audio/pipeline.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ static int pipeline_copy_to_downstream(struct comp_dev *start,
789789

790790
/* stop going downstream if we reach an end point in this pipeline */
791791
if (current->is_endpoint)
792-
return 0;
792+
goto out;
793793
}
794794

795795
/* travel downstream to sink end point(s) */
@@ -815,6 +815,7 @@ static int pipeline_copy_to_downstream(struct comp_dev *start,
815815
}
816816
}
817817

818+
out:
818819
/* return back upstream */
819820
tracev_pipe("CD-");
820821
return err;

0 commit comments

Comments
 (0)