[Sound-open-firmware] [PATCH] pipeline: preload: dont return an error if preload completes

Liam Girdwood liam.r.girdwood at linux.intel.com
Wed Sep 6 00:53:59 CEST 2017


Dont return an error and emit trace errors if preload succeeds.

Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
 src/audio/pipeline.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/audio/pipeline.c b/src/audio/pipeline.c
index 26e0295..9aedc21 100644
--- a/src/audio/pipeline.c
+++ b/src/audio/pipeline.c
@@ -529,8 +529,11 @@ int pipeline_prepare(struct pipeline *p, struct comp_dev *dev)
 
 			ret = preload_downstream(dev, dev);
 
+			/* errors ? */
+			if (ret < 0)
+				break;
 			/* complete ? */
-			if (ret <= 0)
+			else if (ret == 0)
 				goto out;
 		}
 
-- 
2.11.0



More information about the Sound-open-firmware mailing list