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);