buffer: make sure we clear buffer contents during reset.

buffer contents were not being cleared on stream reset. Fix.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2018-02-09 16:27:55 +00:00
parent bad1261098
commit d6426bc305
1 changed files with 1 additions and 1 deletions

View File

@ -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 */