]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: Add locking to snd_soc_dapm_xxxx_pin functions
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 18 Feb 2014 15:22:14 +0000 (15:22 +0000)
committerMark Brown <broonie@linaro.org>
Thu, 20 Feb 2014 09:40:07 +0000 (18:40 +0900)
commitf181b9394cad6d0e2db80cf5a9748cf140d284b1
treed93a53b643d0293bff11ffaceb35174524474b05
parent18ab1019489e6c25198fbe7dca424cfb239b7443
ASoC: dapm: Add locking to snd_soc_dapm_xxxx_pin functions

The snd_soc_dapm_xxxx_pin all require the dapm_mutex to be held when
they are called as they edit the dirty list, however very few of the
callers do so.

This patch adds unlocked versions of all the functions replacing the
existing implementations with one that holds the lock internally. We
also fix up the places where the lock was actually held on the caller
side.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
drivers/extcon/extcon-arizona.c
drivers/input/misc/arizona-haptics.c
include/sound/soc-dapm.h
sound/soc/soc-dapm.c