linux/sound/soc/sh/rcar
Jiada Wang 33f801366b
ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update
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 <jiada_wang@mentor.com>
Reviewed-by: Takashi Sakamoto <takashi.sakamoto@miraclelinux.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2017-12-08 18:51:32 +00:00
..
adg.c ASoC: rsnd: more clear ADG clock debug info 2017-10-13 11:19:01 +01:00
cmd.c ASoC: rsnd: make arrays path and cmd_case static const 2017-06-30 12:45:36 +01:00
core.c ASoC: rcar: revert IOMMU support so far 2017-11-16 11:02:04 +00:00
ctu.c ASoC: rsnd: add rsnd_kctrl_xxx() macro 2017-10-11 09:46:17 +01:00
dma.c ASoC: rcar: revert IOMMU support so far 2017-11-16 11:02:04 +00:00
dvc.c ASoC: rsnd: add rsnd_kctrl_xxx() macro 2017-10-11 09:46:17 +01:00
gen.c ASoC: rsnd: Delete an error message for a failed memory allocation in three functions 2017-08-10 16:32:38 +01:00
Makefile ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase3 2016-08-24 11:19:16 +01:00
mix.c ASoC: rsnd: add rsnd_kctrl_xxx() macro 2017-10-11 09:46:17 +01:00
rsnd.h ASoC: rsnd: remove NULL check from rsnd_mod_name()/rsnd_mod_id() 2017-11-01 09:53:19 +00:00
src.c ASoC: rsnd: remove unused rsnd_xxx_to_dma() 2017-08-22 16:30:57 +01:00
ssi.c ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update 2017-12-08 18:51:32 +00:00
ssiu.c ASoC: rsnd: ssiu: clear SSI_MODE for non TDM Extended modes 2017-11-28 11:52:52 +00:00