Skip to content

ALSA: hda: Use scoped_guard() for remaining manual mutex handling

[email protected] linux-sound lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ALSA: hda/cs35l41: Use scoped_guard() for fw_mutex in cs35l41_hda_bind()sound/hda/codecs/side-codecs/cs35l41_hda.c+28 -290 replies
2/3ALSA: hda/cs35l56: Use scoped_guard() for irq_lock in cs35l56_hda_fw_load()sound/hda/codecs/side-codecs/cs35l56_hda.c+51 -530 replies
3/3ALSA: hda: Use scoped_guard() for open_mutex in azx_pcm_open()sound/hda/common/controller.c+82 -770 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] ALSA: hda: Use scoped_guard() for remaining manual mutex handling

From: wangdicheng <[email protected]>

Replace the remaining manual mutex_lock/mutex_unlock pairs in the HD-Audio subsystem with scoped_guard(), which provides automatic lock release through RAII-style scope management.

No functional changes in any patch.

wangdicheng (3):
ALSA: hda/cs35l41: Use scoped_guard() for fw_mutex in

    cs35l41_hda_bind()
  ALSA: hda/cs35l56: Use scoped_guard() for irq_lock in
    cs35l56_hda_fw_load()

ALSA: hda: Use scoped_guard() for open_mutex in azx_pcm_open()

 sound/hda/codecs/side-codecs/cs35l41_hda.c |  57 ++++----
 sound/hda/codecs/side-codecs/cs35l56_hda.c | 104 +++++++-------
 sound/hda/common/controller.c              | 159 +++++++++++----------
 3 files changed, 161 insertions(+), 159 deletions(-)
Signature · 1 line
2.25.1