linux/sound/soc/sh
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
..
rcar ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update 2017-12-08 18:51:32 +00:00
dma-sh7760.c ASoC: sh: make snd_pcm_hardware const 2017-08-17 17:57:21 +01:00
fsi.c ASoC: fsi: Use of_device_get_match_data() helper 2017-10-04 15:48:05 +01:00
hac.c ASoC: sh: hac: add missing "int ret" 2017-07-24 13:06:53 +01:00
Kconfig ASoC: rsnd: add HDMI output support 2017-05-19 18:36:25 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
migor.c ASoC: sh: make snd_soc_ops const 2017-08-17 18:09:48 +01:00
sh7760-ac97.c ASoC: sh: Add .owner to struct snd_soc_card 2011-12-23 11:32:07 +00:00
siu_dai.c ASoC: sh: make snd_pcm_hardware const 2017-08-17 17:57:21 +01:00
siu_pcm.c ASoC: sh: constify snd_pcm_ops structures 2017-08-14 17:23:43 +01:00
siu.h ASoC: Do not include soc-dai.h 2010-11-22 14:04:53 +00:00
ssi.c ASoC: sh: ssi: Convert to devm_snd_soc_register_component 2015-08-28 17:28:49 +01:00