Re: [PATCH 1/1] ALSA: SOC: DMA: increment buffer pointer atomically

2016-11-30 Thread Lars-Peter Clausen
On 11/30/2016 09:36 AM, Lars-Peter Clausen wrote: > On 11/30/2016 09:30 AM, Lars-Peter Clausen wrote: >> On 11/30/2016 09:22 AM, Jiada Wang wrote: >>> From: Andreas Pape >>> >>> Setting pointer and afterwards check for wrap around leads >>> to the possibility of returning

Re: [PATCH 1/1] ALSA: SOC: DMA: increment buffer pointer atomically

2016-11-30 Thread Lars-Peter Clausen
On 11/30/2016 09:36 AM, Lars-Peter Clausen wrote: > On 11/30/2016 09:30 AM, Lars-Peter Clausen wrote: >> On 11/30/2016 09:22 AM, Jiada Wang wrote: >>> From: Andreas Pape >>> >>> Setting pointer and afterwards check for wrap around leads >>> to the possibility of returning the inconsistent pointer

Re: [PATCH 1/1] ALSA: SOC: DMA: increment buffer pointer atomically

2016-11-30 Thread Lars-Peter Clausen
On 11/30/2016 09:30 AM, Lars-Peter Clausen wrote: > On 11/30/2016 09:22 AM, Jiada Wang wrote: >> From: Andreas Pape >> >> Setting pointer and afterwards check for wrap around leads >> to the possibility of returning the inconsistent pointer position. >> This patch increments

Re: [PATCH 1/1] ALSA: SOC: DMA: increment buffer pointer atomically

2016-11-30 Thread Lars-Peter Clausen
On 11/30/2016 09:30 AM, Lars-Peter Clausen wrote: > On 11/30/2016 09:22 AM, Jiada Wang wrote: >> From: Andreas Pape >> >> Setting pointer and afterwards check for wrap around leads >> to the possibility of returning the inconsistent pointer position. >> This patch increments buffer pointer

Re: [PATCH 1/1] ALSA: SOC: DMA: increment buffer pointer atomically

2016-11-30 Thread Lars-Peter Clausen
On 11/30/2016 09:22 AM, Jiada Wang wrote: > From: Andreas Pape > > Setting pointer and afterwards check for wrap around leads > to the possibility of returning the inconsistent pointer position. > This patch increments buffer pointer atomically to avoid this issue. Makes

Re: [PATCH 1/1] ALSA: SOC: DMA: increment buffer pointer atomically

2016-11-30 Thread Lars-Peter Clausen
On 11/30/2016 09:22 AM, Jiada Wang wrote: > From: Andreas Pape > > Setting pointer and afterwards check for wrap around leads > to the possibility of returning the inconsistent pointer position. > This patch increments buffer pointer atomically to avoid this issue. Makes sense. > >

[PATCH 1/1] ALSA: SOC: DMA: increment buffer pointer atomically

2016-11-30 Thread Jiada Wang
From: Andreas Pape Setting pointer and afterwards check for wrap around leads to the possibility of returning the inconsistent pointer position. This patch increments buffer pointer atomically to avoid this issue. Signed-off-by: Andreas Pape

[PATCH 1/1] ALSA: SOC: DMA: increment buffer pointer atomically

2016-11-30 Thread Jiada Wang
From: Andreas Pape Setting pointer and afterwards check for wrap around leads to the possibility of returning the inconsistent pointer position. This patch increments buffer pointer atomically to avoid this issue. Signed-off-by: Andreas Pape Signed-off-by: Jiada Wang ---