mirror of https://github.com/thesofproject/sof.git
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:
parent
bad1261098
commit
d6426bc305
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue