[Sound-open-firmware] [PATCH] pipeline: fixed return value from preload_downstream
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; }
On Mon, 2017-09-04 at 15:26 +0100, Ranjani Sridharan wrote:
This patch fixes the return value from the preload_downstream() call in pipeline_params()
Signed-off-by: Ranjani Sridharan ranjani.sridharan@linux.intel.com
Applied.
--------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
participants (2)
-
Liam Girdwood
-
Ranjani Sridharan