Skip to content

ASoC: SOF: Use guard()/scoped_guard() for locks when makes sense

Peter Ujfalusi linux-sound 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ASoC: SOF: Use guard()/scoped_guard() for mutex locks where it makes sensesound/soc/sof/ipc.c sound/soc/sof/ipc3-topology.c sound/soc/sof/ipc3.c +7 more+51 -1040 replies
2/7ASoC: SOF: Intel: Use guard()/scoped_guard() for mutex locks where it makes sensesound/soc/sof/intel/hda-dai-ops.c sound/soc/sof/intel/hda-mlink.c+20 -310 replies
3/7ASoC: SOF: amd: acp-ipc: Use guard() for spinlock_irq()sound/soc/sof/amd/acp-ipc.c+1 -30 replies
4/7ASoC: SOF: imx: imx-common: Use guard() for spinlock_irqsafe()sound/soc/sof/imx/imx-common.c+2 -60 replies
5/7ASoC: SOF: mediatek: mtk-adsp-common: Use guard() for spinlock_irqsavesound/soc/sof/mediatek/mtk-adsp-common.c+1 -30 replies
6/7ASoC: SOF: Intel: Use guard() for spinlocks where it makes sensesound/soc/sof/intel/atom.c sound/soc/sof/intel/bdw.c sound/soc/sof/intel/cnl.c +4 more+12 -430 replies
7/7ASoC: SOF: ipc/ops: Use guard() for spinlockssound/soc/sof/ipc.c sound/soc/sof/ops.c+8 -300 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchDaniel BalutaRanjani Sridharan
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b R-b
7/7R-b R-b

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

Read the v1 thread

Cover letter [PATCH 0/7] ASoC: SOF: Use guard()/scoped_guard() for locks when makes sense

Hi,

Only code refactoring, and no behavior change.

Replace most of the manual *lock/*unlock handling with guard use.

Regards,
Peter
---
Peter Ujfalusi (7):
ASoC: SOF: Use guard()/scoped_guard() for mutex locks where it makes
sense
ASoC: SOF: Intel: Use guard()/scoped_guard() for mutex locks where it
makes sense
ASoC: SOF: amd: acp-ipc: Use guard() for spinlock_irq()
ASoC: SOF: imx: imx-common: Use guard() for spinlock_irqsafe()
ASoC: SOF: mediatek: mtk-adsp-common: Use guard() for spinlock_irqsave
ASoC: SOF: Intel: Use guard() for spinlocks where it makes sense
ASoC: SOF: ipc/ops: Use guard() for spinlocks

 sound/soc/sof/amd/acp-ipc.c              |  4 +--
 sound/soc/sof/imx/imx-common.c           |  8 ++---
 sound/soc/sof/intel/atom.c               |  7 +---
 sound/soc/sof/intel/bdw.c                |  7 +---
 sound/soc/sof/intel/cnl.c                | 11 ++----
 sound/soc/sof/intel/hda-dai-ops.c        | 25 ++++++-------
 sound/soc/sof/intel/hda-ipc.c            | 11 ++----
 sound/soc/sof/intel/hda-mlink.c          | 29 +++++----------
 sound/soc/sof/intel/hda-stream.c         | 11 +++---
 sound/soc/sof/intel/mtl.c                |  5 +--
 sound/soc/sof/ipc.c                      |  9 ++---
 sound/soc/sof/ipc3-topology.c            |  6 ++--
 sound/soc/sof/ipc3.c                     |  8 ++---
 sound/soc/sof/ipc4-mtrace.c              | 24 +++++--------
 sound/soc/sof/ipc4-pcm.c                 |  3 +-
 sound/soc/sof/ipc4-topology.c            |  5 +--
 sound/soc/sof/ipc4.c                     |  8 ++---
 sound/soc/sof/mediatek/mtk-adsp-common.c |  4 +--
 sound/soc/sof/ops.c                      | 34 ++++--------------
 sound/soc/sof/ops.h                      | 10 ++----
 sound/soc/sof/sof-audio.c                | 46 +++++++++---------------
 sound/soc/sof/sof-client.c               | 40 ++++++---------------
 22 files changed, 95 insertions(+), 220 deletions(-)
Signature · 1 line
2.52.0