[PATCH] ALSA: dmaengine: increment buffer pointer atomically
Takashi Iwai
tiwai at suse.de
Tue Sep 27 08:55:30 CEST 2022
On Mon, 26 Sep 2022 18:58:13 +0200,
Eugeniu Rosca wrote:
>
> From: Andreas Pape <apape at de.adit-jv.com>
>
> Setting pointer and afterwards checking for wraparound leads
> to the possibility of returning the inconsistent pointer position.
>
> This patch increments buffer pointer atomically to avoid this issue.
>
> Fixes: e7f73a1613567a ("ASoC: Add dmaengine PCM helper functions")
> Signed-off-by: Andreas Pape <apape at de.adit-jv.com>
> Signed-off-by: Eugeniu Rosca <erosca at de.adit-jv.com>
Thanks, applied.
Takashi
More information about the Alsa-devel
mailing list