Skip to content

Update locking for snd_soc_dapm_xxxx_pin functions

Charles Keepax alsa-devel lkml 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am 1392736948-26623-1-git-send-email-ckeepax@opensource.wolfsonmicro.com

Versions newest first · linked by author and title

  1. v2 Latest17 patches 22 repliesApplied
  2. v115 patches 9 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/17Input - arizona-haptics: Fix double lock of dapm_mutexdrivers/input/misc/arizona-haptics.c+4 -73 replies
2/17ASoC: dapm: Add helpers to lock/unlock DAPM mutexinclude/sound/soc.h+11 -01 reply
3/17ASoC: dapm: Add locking to snd_soc_dapm_xxxx_pin functionsdrivers/extcon/extcon-arizona.c drivers/input/misc/arizona-haptics.c include/sound/soc-dapm.h +1 more+131 -381 reply
4/17ASoC: dapm: Add unlocked version of snd_soc_dapm_syncinclude/sound/soc-dapm.h sound/soc/soc-dapm.c+23 -53 replies
5/17ASoC: adav80x: Update locking around use of DAPM pin APIsound/soc/codecs/adav80x.c+11 -62 replies
6/17ASoC: wm5100: Update locking around use of DAPM pin APIsound/soc/codecs/wm5100.c+9 -31 reply
7/17ASoC: wm8962: Update locking around use of DAPM pin APIsound/soc/codecs/wm8962.c+9 -41 reply
8/17ASoC: wm8994: Update locking around use of DAPM pin APIsound/soc/codecs/wm8994.c+27 -181 reply
9/17ASoC: wm8996: Update locking around use of DAPM pin APIsound/soc/codecs/wm8996.c+7 -21 reply
10/17ASoC: mfld_machine: Update locking around use of DAPM pin APIsound/soc/intel/mfld_machine.c+41 -241 reply
11/17ASoC: ams-delta: Update locking around use of DAPM pin APIsound/soc/omap/ams-delta.c+26 -191 reply
12/17ASoC: omap: n810: Update locking around use of DAPM pin APIsound/soc/omap/n810.c+13 -91 reply
13/17ASoC: omap: rx51: Update locking around use of DAPM pin APIsound/soc/omap/rx51.c+13 -91 reply
14/17ASoC: pxa: corgi: Update locking around use of DAPM pin APIsound/soc/pxa/corgi.c+23 -191 reply
15/17ASoC: pxa: magician: Update locking around use of DAPM pin APIsound/soc/pxa/magician.c+13 -91 reply
16/17ASoC: pxa: spitz: Update locking around use of DAPM pin APIsound/soc/pxa/spitz.c+28 -231 reply
17/17ASoC: pxa: tosa: Update locking around use of DAPM pin APIsound/soc/pxa/tosa.c+16 -121 reply

Reviews trailers per patch

1 of 17 patches has a Reviewed-by or Acked-by.

PatchLars-Peter Clausen
1/17
2/17
3/17
4/17
5/17A-b
6/17
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 00/17 v2] Update locking for snd_soc_dapm_xxxx_pin functions

This patchset updates the locking around the snd_soc_dapm_xxxx_pin functions. First we add an unlocked version of the functions and add locking to the standard call, this also requires us to remove the few places where these functions are externally locked. Then we patch usages of the functions that look like they are expecting to do an atomic update to do so, using external locking.

Thanks,
Charles

Updates since v1:
- Added helper functions to lock/unlock the dapm mutex
- Added an unlocked version of snd_soc_dapm_sync, so it can be called under the same mutex lock as the pin functions, this is not required just saves a mutex lock

Charles Keepax (17):
Input - arizona-haptics: Fix double lock of dapm_mutex
ASoC: dapm: Add helpers to lock/unlock DAPM mutex
ASoC: dapm: Add locking to snd_soc_dapm_xxxx_pin functions
ASoC: dapm: Add unlocked version of snd_soc_dapm_sync
ASoC: adav80x: Update locking around use of DAPM pin API
ASoC: wm5100: Update locking around use of DAPM pin API
ASoC: wm8962: Update locking around use of DAPM pin API
ASoC: wm8994: Update locking around use of DAPM pin API
ASoC: wm8996: Update locking around use of DAPM pin API
ASoC: mfld_machine: Update locking around use of DAPM pin API
ASoC: ams-delta: Update locking around use of DAPM pin API
ASoC: omap: n810: Update locking around use of DAPM pin API
ASoC: omap: rx51: Update locking around use of DAPM pin API
ASoC: pxa: corgi: Update locking around use of DAPM pin API
ASoC: pxa: magician: Update locking around use of DAPM pin API
ASoC: pxa: spitz: Update locking around use of DAPM pin API
ASoC: pxa: tosa: Update locking around use of DAPM pin API

 drivers/extcon/extcon-arizona.c      |   12 ---
 drivers/input/misc/arizona-haptics.c |   19 ----
 include/sound/soc-dapm.h             |    9 ++
 include/sound/soc.h                  |    9 ++
 sound/soc/codecs/adav80x.c           |   17 +++--
 sound/soc/codecs/wm5100.c            |   12 ++-
 sound/soc/codecs/wm8962.c            |   13 ++-
 sound/soc/codecs/wm8994.c            |   45 ++++++----
 sound/soc/codecs/wm8996.c            |    9 ++-
 sound/soc/intel/mfld_machine.c       |   65 +++++++++-----
 sound/soc/omap/ams-delta.c           |   45 ++++++----
 sound/soc/omap/n810.c                |   22 +++--
 sound/soc/omap/rx51.c                |   22 +++--
 sound/soc/pxa/corgi.c                |   42 +++++----
 sound/soc/pxa/magician.c             |   22 +++--
 sound/soc/pxa/spitz.c                |   51 ++++++-----
 sound/soc/pxa/tosa.c                 |   28 ++++---
 sound/soc/soc-dapm.c                 |  160 ++++++++++++++++++++++++++++++---
 18 files changed, 399 insertions(+), 203 deletions(-)
Signature · 1 line
1.7.2.5