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)
commit113911006442a36c2b4669faf1699d9042ef80ab
treed93a53b643d0293bff11ffaceb35174524474b05
parentc4204960e9d0ba99459dbf1db918f99a45e7a62a
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