Hi JiadaNo, we are using rcar sound in DMA mode,
Thank you for your patch
Currently there is race condition between set of byte_pos and wrapYou using playback with PIO mode ?
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<jiada_wang@xxxxxxxxxx>
Reviewed-by: Takashi Sakamoto<takashi.sakamoto@xxxxxxxxxxxxxxxx>
---
Because this function is no longer used on DMA mode
Best regards
---
Kuninori Morimoto