[lkml]   [2017]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v1 1/2] ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update

Hi Jiada

Thank you for your patch

> Currently there is race condition between set of byte_pos and wrap
> it around when new buffer starts. If .pointer is called in-between
> it will result in inconsistent pointer position be returned
> from .pointer callback.
> This patch increments buffer pointer atomically to avoid this issue.
> Signed-off-by: Jiada Wang <>
> Reviewed-by: Takashi Sakamoto <>
> ---

You using playback with PIO mode ?
Because this function is no longer used on DMA mode

Best regards
Kuninori Morimoto

 \ /
  Last update: 2017-12-07 10:46    [W:0.114 / U:2.284 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site