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

Charles Keepax ckeepax at opensource.wolfsonmicro.com
Mon Nov 10 09:49:30 CET 2014


On Sun, Nov 09, 2014 at 05:00:56PM +0100, Lars-Peter Clausen wrote:
> 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
> 

For the Wolfson parts:

Acked-by: Charles Keepax <ckeepax at opensource.wolfsonmicro.com>

Thanks,
Charles


More information about the Alsa-devel mailing list