]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: dmaengine: increment buffer pointer atomically
authorAndreas Pape <apape@de.adit-jv.com>
Mon, 26 Sep 2022 16:58:13 +0000 (18:58 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 27 Sep 2022 06:55:05 +0000 (08:55 +0200)
commitc4d3a7bb4f82fc7a4b52bcfe7a36ac5e803b3444
tree129b3c435f9c80da6a2d50b0386939a05762b988
parent8536aec22bd9706e1ede3358a748dd7f5f7aefb1
ALSA: dmaengine: increment buffer pointer atomically

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: 6b007aeb026d15 ("ASoC: Add dmaengine PCM helper functions")
Signed-off-by: Andreas Pape <apape@de.adit-jv.com>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Link: https://lore.kernel.org/r/1664211493-11789-1-git-send-email-erosca@de.adit-jv.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_dmaengine.c