10 Jan
2017
10 Jan
'17
10:35 a.m.
On Tue, 2017-01-10 at 17:06 +0800, Keyon Jie wrote:
It will treat full buffer as empty one at current comp_update_buffer(), as w_ptr is equal to r_ptr, this will make us missing those datas or at least the buffer->avail/free are not correct.
Here spit comp_update_buffer() into consuming one and producing one, for consuming, 'r_ptr == w_ptr' update means buffer is becoming empty, and for producing, 'w_ptr == r_ptr' means buffer is becoming full.
Signed-off-by: Keyon Jie yang.jie@linux.intel.com
Applied