[Sound-open-firmware] [PATCH] component: fix comp_update_buffer() when buffer full

Liam Girdwood liam.r.girdwood at linux.intel.com
Tue Jan 10 10:35:28 CET 2017


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 at linux.intel.com>

Applied



More information about the Sound-open-firmware mailing list