This patch fixes the return value from the preload_downstream() call in pipeline_params()
Signed-off-by: Ranjani Sridharan ranjani.sridharan@linux.intel.com --- src/audio/pipeline.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/audio/pipeline.c b/src/audio/pipeline.c index 4327254..49a0c51 100644 --- a/src/audio/pipeline.c +++ b/src/audio/pipeline.c @@ -505,7 +505,7 @@ static int preload_downstream(struct comp_dev *start, struct comp_dev *current) int pipeline_prepare(struct pipeline *p, struct comp_dev *dev) { struct op_data op_data; - int ret, count, i; + int ret, i;
trace_pipe("pre");
@@ -527,10 +527,10 @@ int pipeline_prepare(struct pipeline *p, struct comp_dev *dev) * trigger start */ for (i = 0; i < MAX_PRELOAD_SIZE; i++) {
- count = preload_downstream(dev, dev); + ret = preload_downstream(dev, dev);
/* complete ? */ - if (count <= 0) + if (ret <= 0) goto out; }