]> git.ipfire.org Git - thirdparty/linux.git/log
thirdparty/linux.git
2 months agoALSA: compress_offload: Add 64-bit safe timestamp infrastructure
Joris Verhaegen [Fri, 5 Sep 2025 09:12:54 +0000 (10:12 +0100)] 
ALSA: compress_offload: Add 64-bit safe timestamp infrastructure

The copied_total field in struct snd_compr_tstamp is a 32-bit
value that can overflow on long-running high-bitrate streams,
leading to incorrect calculations for buffer availablility.

This patch adds a 64-bit safe timestamping mechanism.
A new UAPI struct, snd_compr_tstamp64, is added which uses 64-bit
types for byte counters. The relevant ops structures across the
ASoC and core compress code are updated to use this new struct.
ASoC drivers are updated to use u64 counters.

Internal timestamps being u64 now, a compatibility function is added
to convert the 64-bit timestamp back to the 32-bit format for legacy
ioctl callers.

Reviewed-by: Miller Liang <millerliang@google.com>
Tested-by: Joris Verhaegen <verhaegen@google.com>
Signed-off-by: Joris Verhaegen <verhaegen@google.com>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250905091301.2711705-2-verhaegen@google.com
2 months agoALSA: scarlett2: Add Vocaster speaker/headphone mute controls
Geoffrey D. Bennett [Thu, 4 Sep 2025 15:53:51 +0000 (01:23 +0930)] 
ALSA: scarlett2: Add Vocaster speaker/headphone mute controls

Add support for the speaker and headphone mute controls on Focusrite
Vocaster interfaces. Unlike other Focusrite interfaces, these mute
controls are per-output, not per-channel.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Link: https://patch.msgid.link/aLm2Dy6+O/eLTGVn@m.b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 months agoALSA: cs4281: Send the PCM period elapsed notification properly
Chandra Mohan Sundar [Sat, 6 Sep 2025 16:21:54 +0000 (21:51 +0530)] 
ALSA: cs4281: Send the PCM period elapsed notification properly

As part of spin lock code cleanup using guard(), a new
variable (period_elapsed) was introduced. However this variable
is never set, causing period elapsed notification to be not sent.

Set the value of period_elapsed appropiately.

This issue was reported by static coverity analyzer.

Fixes: 7a5127c2c8a5a ("ALSA: cs4281: Use guard() for spin locks")
Signed-off-by: Chandra Mohan Sundar <chandramohan.explore@gmail.com>
Link: https://patch.msgid.link/20250906162158.564899-1-chandramohan.explore@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 months agoALSA: usb-audio: apply quirk for MOONDROP Quark2
Cryolitia PukNgae [Wed, 3 Sep 2025 05:09:48 +0000 (13:09 +0800)] 
ALSA: usb-audio: apply quirk for MOONDROP Quark2

It reports a MIN value -15360 for volume control, but will mute when
setting it less than -14208

Tested-by: Guoli An <anguoli@uniontech.com>
Signed-off-by: Cryolitia PukNgae <cryolitia@uniontech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250903-sound-v1-4-d4ca777b8512@uniontech.com
2 months agoALSA: usb-audio: apply "mixer_min_mute" quirks on some devices
Cryolitia PukNgae [Wed, 3 Sep 2025 05:09:47 +0000 (13:09 +0800)] 
ALSA: usb-audio: apply "mixer_min_mute" quirks on some devices

- QUIRK_FLAG_MIXER_CAPTURE_MIN_MUTE
- QUIRK_FLAG_MIXER_PLAYBACK_MIN_MUTE

Suggested-by: Guoli An <anguoli@uniontech.com>
Signed-off-by: Cryolitia PukNgae <cryolitia@uniontech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250903-sound-v1-3-d4ca777b8512@uniontech.com
2 months agoALSA: usb-audio: add quirk QUIRK_FLAG_MIXER_CAPTURE_MIN_MUTE
Cryolitia PukNgae [Wed, 3 Sep 2025 05:09:46 +0000 (13:09 +0800)] 
ALSA: usb-audio: add quirk QUIRK_FLAG_MIXER_CAPTURE_MIN_MUTE

The same hardware problem to QUIRK_FLAG_MIXER_PLAYBACK_MIN_MUTE also
occurs on the capture streams on some USB devices. Add a new flag for
processing the quirk.

Link: https://lore.kernel.org/all/C22C1A172EBB9BD9+eccc2e4a-d21e-4a7d-848c-bbf3982feb94@uniontech.com/
Signed-off-by: Cryolitia PukNgae <cryolitia@uniontech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250903-sound-v1-2-d4ca777b8512@uniontech.com
2 months agoALSA: usb-audio: rename QUIRK_FLAG_MIXER_MIN_MUTE to QUIRK_FLAG_MIXER_PLAYBACK_MIN_MUTE
Cryolitia PukNgae [Wed, 3 Sep 2025 05:09:45 +0000 (13:09 +0800)] 
ALSA: usb-audio: rename QUIRK_FLAG_MIXER_MIN_MUTE to QUIRK_FLAG_MIXER_PLAYBACK_MIN_MUTE

As a preparation of introduction QUIRK_FLAG_MIXER_CAPTURE_MIN_MUTE

Also make it printing an info while applying

Signed-off-by: Cryolitia PukNgae <cryolitia@uniontech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250903-sound-v1-1-d4ca777b8512@uniontech.com
2 months agoALSA: hda/conexant: Fix typos in comments
Thorsten Blum [Tue, 2 Sep 2025 15:48:41 +0000 (17:48 +0200)] 
ALSA: hda/conexant: Fix typos in comments

s/OPLC/OLPC/

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250902154858.86102-2-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 months agoALSA: rme32: Fix serialization in snd_rme32_capture_adat_open()
Dan Carpenter [Wed, 3 Sep 2025 05:52:24 +0000 (08:52 +0300)] 
ALSA: rme32: Fix serialization in snd_rme32_capture_adat_open()

We accidentally deleted the wrong line of code when we did the
conversion to guard() locks.  If the rme32->capture_substream has
already been set we should return -EBUSY.

Fixes: 8bb75ae244c5 ("ALSA: rme32: Use guard() for spin locks")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aLfXmIQRFTXr5h8O@stanley.mountain
Signed-off-by: Takashi Iwai <tiwai@suse.de>
3 months agoALSA: hda/realtek: Use is_s4_resume() macro
Takashi Iwai [Tue, 2 Sep 2025 09:56:35 +0000 (11:56 +0200)] 
ALSA: hda/realtek: Use is_s4_resume() macro

Use the given macro for determining the resume state instead of
referring to the raw value.

Only a cleanup for now.  The infrastructure might be changed in
future, though.

Link: https://patch.msgid.link/20250902095636.21462-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
3 months agoALSA: misc: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:33 +0000 (17:13 +0200)] 
ALSA: misc: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-20-tiwai@suse.de
3 months agoALSA: virtio: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:32 +0000 (17:13 +0200)] 
ALSA: virtio: Use guard() for spin locks

Replace the manual spin lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-19-tiwai@suse.de
3 months agoALSA: ac97bus: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:31 +0000 (17:13 +0200)] 
ALSA: ac97bus: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-18-tiwai@suse.de
3 months agoALSA: atmel: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:30 +0000 (17:13 +0200)] 
ALSA: atmel: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-17-tiwai@suse.de
3 months agoALSA: pxa2xx: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:29 +0000 (17:13 +0200)] 
ALSA: pxa2xx: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-16-tiwai@suse.de
3 months agoALSA: aaci: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:28 +0000 (17:13 +0200)] 
ALSA: aaci: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-15-tiwai@suse.de
3 months agoALSA: aoa: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:27 +0000 (17:13 +0200)] 
ALSA: aoa: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-14-tiwai@suse.de
3 months agoALSA: sparc: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:26 +0000 (17:13 +0200)] 
ALSA: sparc: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-13-tiwai@suse.de
3 months agoALSA: vxpocket: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:25 +0000 (17:13 +0200)] 
ALSA: vxpocket: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-12-tiwai@suse.de
3 months agoALSA: pdaudiocf: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:24 +0000 (17:13 +0200)] 
ALSA: pdaudiocf: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-11-tiwai@suse.de
3 months agoALSA: at73c213: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:23 +0000 (17:13 +0200)] 
ALSA: at73c213: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-10-tiwai@suse.de
3 months agoALSA: xen: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:22 +0000 (17:13 +0200)] 
ALSA: xen: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-9-tiwai@suse.de
3 months agoALSA: x86: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:21 +0000 (17:13 +0200)] 
ALSA: x86: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-8-tiwai@suse.de
3 months agoALSA: x86: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:20 +0000 (17:13 +0200)] 
ALSA: x86: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-7-tiwai@suse.de
3 months agoALSA: synth: Use guard() for preset locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:19 +0000 (17:13 +0200)] 
ALSA: synth: Use guard() for preset locks

Define a macro for the preset locking/unlocking pairs for soundfont
using guard() macro as a further code cleanup.

The new macro is put in soundfont.h (and some function renames) along
with it for avoiding unnecessary troubles with clang.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-6-tiwai@suse.de
3 months agoALSA: synth: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:18 +0000 (17:13 +0200)] 
ALSA: synth: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-5-tiwai@suse.de
3 months agoALSA: synth: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:17 +0000 (17:13 +0200)] 
ALSA: synth: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-4-tiwai@suse.de
3 months agoALSA: i2c: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:16 +0000 (17:13 +0200)] 
ALSA: i2c: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-3-tiwai@suse.de
3 months agoALSA: i2c: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:15 +0000 (17:13 +0200)] 
ALSA: i2c: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-2-tiwai@suse.de
3 months agoALSA: caiaq: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:17 +0000 (17:07 +0200)] 
ALSA: caiaq: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-10-tiwai@suse.de
3 months agoALSA: bcd2000: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:16 +0000 (17:07 +0200)] 
ALSA: bcd2000: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-9-tiwai@suse.de
3 months agoALSA: usb: qcom: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:15 +0000 (17:07 +0200)] 
ALSA: usb: qcom: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

The manual mutex lock/unlock are still left in
handle_uaudio_stream_req() and its callee as they have a bit complex
locking patterns.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-8-tiwai@suse.de
3 months agoALSA: line6: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:14 +0000 (17:07 +0200)] 
ALSA: line6: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.  The core code of line6_pcm_release() is factored out,
so that it can be covered by guard() nicely, too.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-7-tiwai@suse.de
3 months agoALSA: hiface: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:13 +0000 (17:07 +0200)] 
ALSA: hiface: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-6-tiwai@suse.de
3 months agoALSA: hiface: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:12 +0000 (17:07 +0200)] 
ALSA: hiface: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-5-tiwai@suse.de
3 months agoALSA: usx2y: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:11 +0000 (17:07 +0200)] 
ALSA: usx2y: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-4-tiwai@suse.de
3 months agoALSA: ua101: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:10 +0000 (17:07 +0200)] 
ALSA: ua101: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-3-tiwai@suse.de
3 months agoALSA: ua101: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:09 +0000 (17:07 +0200)] 
ALSA: ua101: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-2-tiwai@suse.de
3 months agoALSA: serial-u16550: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:24 +0000 (17:00 +0200)] 
ALSA: serial-u16550: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-14-tiwai@suse.de
3 months agoALSA: portman2x4: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:23 +0000 (17:00 +0200)] 
ALSA: portman2x4: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-13-tiwai@suse.de
3 months agoALSA: mts64: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:22 +0000 (17:00 +0200)] 
ALSA: mts64: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-12-tiwai@suse.de
3 months agoALSA: mtpav: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:21 +0000 (17:00 +0200)] 
ALSA: mtpav: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-11-tiwai@suse.de
3 months agoALSA: mpu401: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:20 +0000 (17:00 +0200)] 
ALSA: mpu401: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-10-tiwai@suse.de
3 months agoALSA: dummy: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:19 +0000 (17:00 +0200)] 
ALSA: dummy: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-9-tiwai@suse.de
3 months agoALSA: vx: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:18 +0000 (17:00 +0200)] 
ALSA: vx: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-8-tiwai@suse.de
3 months agoALSA: opl4: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:17 +0000 (17:00 +0200)] 
ALSA: opl4: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-7-tiwai@suse.de
3 months agoALSA: opl4: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:16 +0000 (17:00 +0200)] 
ALSA: opl4: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-6-tiwai@suse.de
3 months agoALSA: opl3: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:15 +0000 (17:00 +0200)] 
ALSA: opl3: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-5-tiwai@suse.de
3 months agoALSA: opl3: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:14 +0000 (17:00 +0200)] 
ALSA: opl3: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-4-tiwai@suse.de
3 months agoALSA: aloop: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:13 +0000 (17:00 +0200)] 
ALSA: aloop: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-3-tiwai@suse.de
3 months agoALSA: aloop: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:12 +0000 (17:00 +0200)] 
ALSA: aloop: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-2-tiwai@suse.de
3 months agoALSA: wavefront: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:58 +0000 (16:52 +0200)] 
ALSA: wavefront: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-19-tiwai@suse.de
3 months agoALSA: wss: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:57 +0000 (16:52 +0200)] 
ALSA: wss: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-18-tiwai@suse.de
3 months agoALSA: wss: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:56 +0000 (16:52 +0200)] 
ALSA: wss: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-17-tiwai@suse.de
3 months agoALSA: sscape: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:55 +0000 (16:52 +0200)] 
ALSA: sscape: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-16-tiwai@suse.de
3 months agoALSA: emu8000: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:54 +0000 (16:52 +0200)] 
ALSA: emu8000: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-15-tiwai@suse.de
3 months agoALSA: sb: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:53 +0000 (16:52 +0200)] 
ALSA: sb: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-14-tiwai@suse.de
3 months agoALSA: sb: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:52 +0000 (16:52 +0200)] 
ALSA: sb: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-13-tiwai@suse.de
3 months agoALSA: opti9xx: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:51 +0000 (16:52 +0200)] 
ALSA: opti9xx: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-12-tiwai@suse.de
3 months agoALSA: opl3sa2: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:50 +0000 (16:52 +0200)] 
ALSA: opl3sa2: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-11-tiwai@suse.de
3 months agoALSA: msnd: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:49 +0000 (16:52 +0200)] 
ALSA: msnd: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-10-tiwai@suse.de
3 months agoALSA: gus: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:48 +0000 (16:52 +0200)] 
ALSA: gus: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-9-tiwai@suse.de
3 months agoALSA: gus: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:47 +0000 (16:52 +0200)] 
ALSA: gus: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

As replaced with the guard(mutex), no longer used snd_gf1_mem_lock()
is dropped, too.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-8-tiwai@suse.de
3 months agoALSA: es18xx: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:46 +0000 (16:52 +0200)] 
ALSA: es18xx: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-7-tiwai@suse.de
3 months agoALSA: es1688: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:45 +0000 (16:52 +0200)] 
ALSA: es1688: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-6-tiwai@suse.de
3 months agoALSA: cs423x: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:44 +0000 (16:52 +0200)] 
ALSA: cs423x: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-5-tiwai@suse.de
3 months agoALSA: cs423x: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:43 +0000 (16:52 +0200)] 
ALSA: cs423x: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-4-tiwai@suse.de
3 months agoALSA: cmi8330: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:42 +0000 (16:52 +0200)] 
ALSA: cmi8330: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-3-tiwai@suse.de
3 months agoALSA: ad1816a: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:41 +0000 (16:52 +0200)] 
ALSA: ad1816a: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-2-tiwai@suse.de
3 months agoALSA: ymfpci: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:36 +0000 (16:43 +0200)] 
ALSA: ymfpci: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-62-tiwai@suse.de
3 months agoALSA: vx222: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:35 +0000 (16:43 +0200)] 
ALSA: vx222: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-61-tiwai@suse.de
3 months agoALSA: via82xx: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:34 +0000 (16:43 +0200)] 
ALSA: via82xx: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-60-tiwai@suse.de
3 months agoALSA: trident: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:33 +0000 (16:43 +0200)] 
ALSA: trident: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-59-tiwai@suse.de
3 months agoALSA: trident: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:32 +0000 (16:43 +0200)] 
ALSA: trident: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-58-tiwai@suse.de
3 months agoALSA: sonicvibes: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:31 +0000 (16:43 +0200)] 
ALSA: sonicvibes: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-57-tiwai@suse.de
3 months agoALSA: sis7019: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:30 +0000 (16:43 +0200)] 
ALSA: sis7019: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-56-tiwai@suse.de
3 months agoALSA: sis7019: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:29 +0000 (16:43 +0200)] 
ALSA: sis7019: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-55-tiwai@suse.de
3 months agoALSA: rme9652: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:28 +0000 (16:43 +0200)] 
ALSA: rme9652: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-54-tiwai@suse.de
3 months agoALSA: hdspm: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:27 +0000 (16:43 +0200)] 
ALSA: hdspm: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-53-tiwai@suse.de
3 months agoALSA: hdsp: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:26 +0000 (16:43 +0200)] 
ALSA: hdsp: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-52-tiwai@suse.de
3 months agoALSA: rme96: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:25 +0000 (16:43 +0200)] 
ALSA: rme96: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-51-tiwai@suse.de
3 months agoALSA: rme32: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:24 +0000 (16:43 +0200)] 
ALSA: rme32: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-50-tiwai@suse.de
3 months agoALSA: pcxhr: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:23 +0000 (16:43 +0200)] 
ALSA: pcxhr: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-49-tiwai@suse.de
3 months agoALSA: oxygen: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:22 +0000 (16:43 +0200)] 
ALSA: oxygen: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-48-tiwai@suse.de
3 months agoALSA: oxygen: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:21 +0000 (16:43 +0200)] 
ALSA: oxygen: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-47-tiwai@suse.de
3 months agoALSA: nm256: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:20 +0000 (16:43 +0200)] 
ALSA: nm256: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-46-tiwai@suse.de
3 months agoALSA: nm256: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:19 +0000 (16:43 +0200)] 
ALSA: nm256: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-45-tiwai@suse.de
3 months agoALSA: mixart: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:18 +0000 (16:43 +0200)] 
ALSA: mixart: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-44-tiwai@suse.de
3 months agoALSA: maestro3: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:17 +0000 (16:43 +0200)] 
ALSA: maestro3: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-43-tiwai@suse.de
3 months agoALSA: lx6464es: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:16 +0000 (16:43 +0200)] 
ALSA: lx6464es: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-42-tiwai@suse.de
3 months agoALSA: lola: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:15 +0000 (16:43 +0200)] 
ALSA: lola: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-41-tiwai@suse.de
3 months agoALSA: lola: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:14 +0000 (16:43 +0200)] 
ALSA: lola: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-40-tiwai@suse.de
3 months agoALSA: korg1212: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:13 +0000 (16:43 +0200)] 
ALSA: korg1212: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-39-tiwai@suse.de
3 months agoALSA: korg1212: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:12 +0000 (16:43 +0200)] 
ALSA: korg1212: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-38-tiwai@suse.de
3 months agoALSA: intel8x0: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:11 +0000 (16:43 +0200)] 
ALSA: intel8x0: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-37-tiwai@suse.de
3 months agoALSA: ice1712: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:10 +0000 (16:43 +0200)] 
ALSA: ice1712: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-36-tiwai@suse.de
3 months agoALSA: ice1712: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:09 +0000 (16:43 +0200)] 
ALSA: ice1712: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-35-tiwai@suse.de
3 months agoALSA: fm801: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:08 +0000 (16:43 +0200)] 
ALSA: fm801: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-34-tiwai@suse.de
3 months agoALSA: es1968: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:07 +0000 (16:43 +0200)] 
ALSA: es1968: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-33-tiwai@suse.de
3 months agoALSA: es1968: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:06 +0000 (16:43 +0200)] 
ALSA: es1968: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-32-tiwai@suse.de