]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: dapm: Move snd_soc_dapm_update from dapm context to card
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 29 Jul 2013 15:13:55 +0000 (17:13 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 29 Jul 2013 17:40:59 +0000 (18:40 +0100)
commit564c65049eddb1a95b48958080db97eda88c98dd
treebfcb726569f7296f6875c564ba58276a0a36547a
parent60529c65ec3bc1a347f67eec1b1567efebbf7ce1
ASoC: dapm: Move snd_soc_dapm_update from dapm context to card

The update field of a DAPM context is only assigned while the card's dapm_mutex
is locked, the field is also cleared again while the mutex is stil locked. So
there will only ever be one DAPM context at a time with a non-NULL update field.
So it is safe to move the update field from the DAPM context struct to the card
struct. Doing so will allow further cleanups in this area.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc-dapm.h
include/sound/soc.h
sound/soc/soc-dapm.c