ASoC: dapm: Add a update parameter to snd_soc_dapm_{mux,mixer}_update_power
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 24 Jul 2013 13:27:38 +0000 (15:27 +0200)
committerMark Brown <broonie@linaro.org>
Wed, 24 Jul 2013 13:56:19 +0000 (14:56 +0100)
commit6b3fc03b3b614ced09df96ca60ab6f627d8c240c
tree0c8dcd214e033bf050a70fa10cce10bbaacf40e7
parentce6cfaf1de136cd3e6ed7c0ed984be8d003a58c1
ASoC: dapm: Add a update parameter to snd_soc_dapm_{mux,mixer}_update_power

In order to avoid race conditions the assignment of dapm->update should happen
while card->dapm_mutex is being held. To allow CODEC drivers to run a register
update when using snd_soc_dapm_mux_update_power() or
snd_soc_dapm_mixer_update_power() add a update parameter to these two functions.
The update parameter will be assigned to dapm->update while card->dapm_mutex is
locked.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc-dapm.h
sound/soc/soc-dapm.c
This page took 0.034327 seconds and 5 git commands to generate.