[Sound-open-firmware] [PATCH v2 03/26] pipleline: op_sink: don't need clear the buffer for each prepare
Keyon Jie
yang.jie at linux.intel.com
Thu Feb 9 16:03:55 CET 2017
We clear the buffer in pipeline/buffer creating stage, here we
don't clear them for each preparing.
---
src/audio/pipeline.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/src/audio/pipeline.c b/src/audio/pipeline.c
index b89863d..9d74e37 100644
--- a/src/audio/pipeline.c
+++ b/src/audio/pipeline.c
@@ -331,16 +331,6 @@ static int component_op_sink(struct op_data *op_data, struct comp_dev *comp)
return 0;
}
- /* prepare the buffers first by clearing contents */
- list_for_item(clist, &comp->bsink_list) {
- struct comp_buffer *buffer;
-
- buffer = container_of(clist, struct comp_buffer,
- source_list);
-
- bzero(buffer->addr, buffer->desc.size);
- }
-
/* prepare the component */
err = comp_prepare(comp);
--
2.7.4
More information about the Sound-open-firmware
mailing list