From d6426bc305de1d1f6175e5720492eea802e66372 Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Fri, 9 Feb 2018 16:27:55 +0000 Subject: [PATCH] buffer: make sure we clear buffer contents during reset. buffer contents were not being cleared on stream reset. Fix. Signed-off-by: Liam Girdwood --- src/include/reef/audio/buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/reef/audio/buffer.h b/src/include/reef/audio/buffer.h index 2bb2033c0..d41db4138 100644 --- a/src/include/reef/audio/buffer.h +++ b/src/include/reef/audio/buffer.h @@ -168,7 +168,7 @@ static inline void buffer_reset_pos(struct comp_buffer *buffer) buffer->avail = 0; /* clear buffer contents */ - bzero(buffer->r_ptr, buffer->avail); + bzero(buffer->addr, buffer->size); } /* set the runtime size of a buffer in bytes and improve the data cache */