Skip to content

ASoC: Intel: Use guard() for mutex & spin locks

[email protected] linux-sound lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20ASoC: Intel: catpt: ipc: Use guard() for mutex & spin lockssound/soc/intel/catpt/ipc.c+5 -73 replies
2/20ASoC: Intel: catpt: dsp: Use guard() for mutex lockssound/soc/intel/catpt/dsp.c+3 -81 reply
3/20ASoC: Intel: avs: utils: Use guard() for mutex lockssound/soc/intel/avs/utils.c+13 -260 replies
4/20ASoC: Intel: avs: probes: Use guard() for spin lockssound/soc/intel/avs/probes.c+4 -74 replies
5/20ASoC: Intel: avs: pcm: Use guard() for mutex & spin lockssound/soc/intel/avs/pcm.c+8 -130 replies
6/20ASoC: Intel: avs: path: Use guard() for mutex & spin lockssound/soc/intel/avs/path.c+12 -270 replies
7/20ASoC: Intel: avs: loader: Use guard() for mutex lockssound/soc/intel/avs/loader.c+7 -70 replies
8/20ASoC: Intel: avs: ipc: Use guard() for mutex & spin lockssound/soc/intel/avs/ipc.c+49 -560 replies
9/20ASoC: Intel: avs: icl: Use guard() for spin lockssound/soc/intel/avs/icl.c+4 -60 replies
10/20ASoC: Intel: avs: debugfs: Use guard() for spin lockssound/soc/intel/avs/debugfs.c+8 -100 replies
11/20ASoC: Intel: avs: debug: Use guard() for spin lockssound/soc/intel/avs/debug.h+2 -70 replies
12/20ASoC: Intel: avs: core: Use guard() for mutex & spin lockssound/soc/intel/avs/core.c+5 -60 replies
13/20ASoC: Intel: avs: control: Use guard() for spin lockssound/soc/intel/avs/control.c+2 -50 replies
14/20ASoC: Intel: avs: apl: Use guard() for spin lockssound/soc/intel/avs/apl.c+2 -50 replies
15/20ASoC: Intel: atom: sst_stream: Use guard() for mutex lockssound/soc/intel/atom/sst/sst_stream.c+23 -290 replies
16/20ASoC: Intel: atom: sst_pvt: Use guard() for mutex & spin lockssound/soc/intel/atom/sst/sst_pvt.c+7 -120 replies
17/20ASoC: Intel: atom: sst: Use guard() for spin lockssound/soc/intel/atom/sst/sst.c+18 -190 replies
18/20ASoC: Intel: atom: sst-atom-controls: Use guard() for mutex lockssound/soc/intel/atom/sst-atom-controls.c+37 -480 replies
19/20ASoC: Intel: atom: sst-mfld-platform-pcm: Use guard() for mutex & spin lockssound/soc/intel/atom/sst-mfld-platform-pcm.c+19 -320 replies
20/20ASoC: Intel: atom: sst_ipc: Use guard() for spin lockssound/soc/intel/atom/sst/sst_ipc.c+3 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/20] ASoC: Intel: Use guard() for mutex & spin locks

From: bui duc phuc <[email protected]>

Hi all,

This series converts mutex and spinlock handling in Intel ASoC drivers to use guard()/scoped_guard() helpers.

Most patches are straightforward conversions. A few patches include small cleanup changes as part of the conversion process; these are documented in the individual commit messages. Overall, the series is intended to simplify the code and cleanup paths, with no behavioral changes to the affected functions.

The series has been compile-tested only.

Best regards,
Phuc

bui duc phuc (20):
ASoC: Intel: catpt: ipc: Use guard() for mutex & spin locks
ASoC: Intel: catpt: dsp: Use guard() for mutex locks
ASoC: Intel: avs: utils: Use guard() for mutex locks
ASoC: Intel: avs: probes: Use guard() for spin locks
ASoC: Intel: avs: pcm: Use guard() for mutex & spin locks
ASoC: Intel: avs: path: Use guard() for mutex & spin locks
ASoC: Intel: avs: loader: Use guard() for mutex locks
ASoC: Intel: avs: ipc: Use guard() for mutex & spin locks
ASoC: Intel: avs: icl: Use guard() for spin locks
ASoC: Intel: avs: debugfs: Use guard() for spin locks
ASoC: Intel: avs: debug: Use guard() for spin locks
ASoC: Intel: avs: core: Use guard() for mutex & spin locks
ASoC: Intel: avs: control: Use guard() for spin locks
ASoC: Intel: avs: apl: Use guard() for spin locks
ASoC: Intel: atom: sst_stream: Use guard() for mutex locks
ASoC: Intel: atom: sst_pvt: Use guard() for mutex & spin locks
ASoC: Intel: atom: sst: Use guard() for spin locks
ASoC: Intel: atom: sst-atom-controls: Use guard() for mutex locks
ASoC: Intel: atom: sst-mfld-platform-pcm: Use guard() for mutex & spin
locks
ASoC: Intel: atom: sst_ipc: Use guard() for spin locks

 sound/soc/intel/atom/sst-atom-controls.c     |  85 +++++++--------
 sound/soc/intel/atom/sst-mfld-platform-pcm.c |  51 ++++-----
 sound/soc/intel/atom/sst/sst.c               |  37 ++++---
 sound/soc/intel/atom/sst/sst_ipc.c           |   9 +-
 sound/soc/intel/atom/sst/sst_pvt.c           |  19 ++--
 sound/soc/intel/atom/sst/sst_stream.c        |  52 ++++-----
 sound/soc/intel/avs/apl.c                    |   7 +-
 sound/soc/intel/avs/control.c                |   7 +-
 sound/soc/intel/avs/core.c                   |  11 +-
 sound/soc/intel/avs/debug.h                  |   9 +-
 sound/soc/intel/avs/debugfs.c                |  18 ++--
 sound/soc/intel/avs/icl.c                    |  10 +-
 sound/soc/intel/avs/ipc.c                    | 105 +++++++++----------
 sound/soc/intel/avs/loader.c                 |  14 +--
 sound/soc/intel/avs/path.c                   |  39 +++----
 sound/soc/intel/avs/pcm.c                    |  21 ++--
 sound/soc/intel/avs/probes.c                 |  11 +-
 sound/soc/intel/avs/utils.c                  |  39 +++----
 sound/soc/intel/catpt/dsp.c                  |  11 +-
 sound/soc/intel/catpt/ipc.c                  |  12 +--
 20 files changed, 231 insertions(+), 336 deletions(-)
Signature · 1 line
2.43.0