[Sound-open-firmware] [PATCH] pipeline: perform prepare() on the selected component.

Liam Girdwood liam.r.girdwood at linux.intel.com
Mon Jun 26 17:32:31 CEST 2017


prepare() is not being performed on the selected component. Fix this so
that all components including the selected are prepared in a pipeine.


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

diff --git a/src/audio/pipeline.c b/src/audio/pipeline.c
index 7da9ab7..c286c0a 100644
--- a/src/audio/pipeline.c
+++ b/src/audio/pipeline.c
@@ -395,7 +395,7 @@ int pipeline_prepare(struct pipeline *p, struct comp_dev *dev)
 	if (host->direction == SOF_IPC_STREAM_PLAYBACK) {
 
 		/* first of all prepare the pipeline */
-		ret = component_op_downstream(&op_data, dev, dev, 1);
+		ret = component_op_downstream(&op_data, dev, dev, 0);
 		if (ret < 0)
 			goto out;
 
@@ -410,7 +410,7 @@ int pipeline_prepare(struct pipeline *p, struct comp_dev *dev)
 				break;
 		}
 	} else {
-		ret = component_op_upstream(&op_data, dev, dev, 1);
+		ret = component_op_upstream(&op_data, dev, dev, 0);
 	}
 
 out:
-- 
2.11.0



More information about the Sound-open-firmware mailing list