[alsa-devel] [PATCH 0/8] ASoC: Replace remaining users of the CODEC mutex

Lars-Peter Clausen lars at metafoo.de
Sun Nov 9 17:00:56 CET 2014


We've stopped using the snd_soc_codec mutex in the ASoC core itself a while
ago. There is still a handful of drivers which use the mutex to protect some
of their data structures. This patch moves the lock for the remaining users
to the drivers private data struct and then removes it from the
snd_soc_codec struct.

- Lars

Lars-Peter Clausen (8):
  ASoC: ab8500-codec: Move control lock to the driver level
  ASoC: max98095: Move mutex to the driver level
  ASoC: wm5102: Move ultrasonic response settings lock to the driver
    level
  ASoC: wm8731: Move the deemph lock to the driver level
  ASoC: wm8903: Move the deemph lock to the driver level
  ASoC: wm8958: Move DSP firmware lock to driver level
  ASoC: wm8962: Move DSP enable lock to the driver level
  ASoC: Remove CODEC mutex

 include/linux/mfd/arizona/core.h |  1 +
 include/sound/soc.h              |  1 -
 sound/soc/codecs/ab8500-codec.c  | 32 ++++++++++++++++----------------
 sound/soc/codecs/arizona.c       |  4 ++--
 sound/soc/codecs/max98095.c      | 12 ++++++++----
 sound/soc/codecs/wm5102.c        | 16 ++++++++--------
 sound/soc/codecs/wm8731.c        |  9 +++++++--
 sound/soc/codecs/wm8903.c        |  8 ++++++--
 sound/soc/codecs/wm8958-dsp2.c   | 12 ++++++------
 sound/soc/codecs/wm8962.c        |  8 ++++++--
 sound/soc/codecs/wm8994.c        |  2 ++
 sound/soc/codecs/wm8994.h        |  2 ++
 sound/soc/soc-core.c             |  1 -
 13 files changed, 64 insertions(+), 44 deletions(-)

-- 
1.8.0



More information about the Alsa-devel mailing list