Takashi Iwai
02ba95351a
ALSA: cs46xx: 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-20-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
7a5127c2c8
ALSA: cs4281: 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-19-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
40bc78567f
ALSA: cmipci: 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-18-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
d0d95e9bd8
ALSA: cmipci: 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-17-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
22ec127926
ALSA: ca0106: 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-16-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
637a399944
ALSA: bt87x: 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-15-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
290adc48a2
ALSA: aw2: 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-14-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
ca10ce1caf
ALSA: aw2: 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-13-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
5f7e725e02
ALSA: atiixp: 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-12-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
9608fe85ff
ALSA: atiixp: 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-11-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
7f08b008af
ALSA: ad1889: 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-10-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
fe0f9c2e72
ALSA: als4000: 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-9-tiwai@suse.de
2025-09-01 13:52:38 +02:00
Takashi Iwai
f28745ab9f
ALSA: als300: 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-8-tiwai@suse.de
2025-09-01 13:52:38 +02:00
Takashi Iwai
d062d6977e
ALSA: ens137x: 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-7-tiwai@suse.de
2025-09-01 13:52:38 +02:00
Takashi Iwai
d701303bf4
ALSA: ens137x: 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-6-tiwai@suse.de
2025-09-01 13:52:38 +02:00
Takashi Iwai
e96f601e7d
ALSA: azt3328: 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-5-tiwai@suse.de
2025-09-01 13:52:38 +02:00
Takashi Iwai
ee7ddc5c01
ALSA: ali5451: 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-4-tiwai@suse.de
2025-09-01 13:52:38 +02:00
Takashi Iwai
fcee249f98
ALSA: ac97: 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-3-tiwai@suse.de
2025-09-01 13:52:38 +02:00
Takashi Iwai
0a36f7d69d
ALSA: ac97: 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-2-tiwai@suse.de
2025-09-01 13:52:38 +02:00
Takashi Iwai
914c62f218
ALSA: firewire: motu: Use guard() for spin locks
...
Clean up the code using guard() for spin locks.
Merely code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Link: https://patch.msgid.link/20250830080351.25600-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de >
2025-08-30 10:04:22 +02:00
Takashi Iwai
38ac99ff0a
ALSA: firewire: lib: Use guard() for spin locks
...
Clean up the code using guard() for spin locks.
Merely code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-20-tiwai@suse.de
2025-08-30 10:02:27 +02:00
Takashi Iwai
8885ab5f21
ALSA: firewire: tascam: Use guard() for spin locks
...
Clean up the code using guard() for spin locks.
Merely code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-19-tiwai@suse.de
2025-08-30 10:02:27 +02:00
Takashi Iwai
cae230e4d0
ALSA: firewire: oxfw: Use guard() for spin locks
...
Clean up the code using guard() for spin locks.
Merely code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-18-tiwai@suse.de
2025-08-30 10:02:27 +02:00
Takashi Iwai
0b8bf8d00f
ALSA: firewire: fireworks: Use guard() for spin locks
...
Clean up the code using guard() for spin locks.
Merely code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-16-tiwai@suse.de
2025-08-30 10:02:22 +02:00
Takashi Iwai
05af2f7069
ALSA: firewire: fireface: Use guard() for spin locks
...
Clean up the code using guard() for spin locks.
Merely code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-15-tiwai@suse.de
2025-08-30 10:02:21 +02:00
Takashi Iwai
0385fd947b
ALSA: firewire: digi00x: Use guard() for spin locks
...
Clean up the code using guard() for spin locks.
Merely code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-14-tiwai@suse.de
2025-08-30 10:02:21 +02:00
Takashi Iwai
17653c9128
ALSA: firewire: dice: Use guard() for spin locks
...
Clean up the code using guard() for spin locks.
Merely code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-13-tiwai@suse.de
2025-08-30 10:02:21 +02:00
Takashi Iwai
9c2ca41d57
ALSA: firewire: bebob: Use guard() for spin locks
...
Clean up the code using guard() for spin locks.
Merely code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-12-tiwai@suse.de
2025-08-30 10:02:21 +02:00
Takashi Iwai
6061b4accb
ALSA: firewire: lib: Use guard() for mutex locks
...
Replace the manual mutex lock/unlock pairs with guard() for code
simplification.
Only code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-11-tiwai@suse.de
2025-08-30 10:02:21 +02:00
Takashi Iwai
b8ed2b1432
ALSA: firewire: isight: Use guard() for mutex locks
...
Replace the manual mutex lock/unlock pairs with guard() for code
simplification.
Only code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-10-tiwai@suse.de
2025-08-30 10:02:21 +02:00
Takashi Iwai
a1c55ef6e9
ALSA: firewire: fireface: Use guard() for mutex locks
...
Replace the manual mutex lock/unlock pairs with guard() for code
simplification.
Only code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-9-tiwai@suse.de
2025-08-30 10:02:21 +02:00
Takashi Iwai
61a5f22fb1
ALSA: firewire: tascam: Use guard() for mutex locks
...
Replace the manual mutex lock/unlock pairs with guard() for code
simplification.
Only code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-8-tiwai@suse.de
2025-08-30 10:02:21 +02:00
Takashi Iwai
751298f88e
ALSA: firewire: oxfw: Use guard() for mutex locks
...
Replace the manual mutex lock/unlock pairs with guard() for code
simplification.
Only code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-7-tiwai@suse.de
2025-08-30 10:02:21 +02:00
Takashi Iwai
b9ac651964
ALSA: firewire: motu: Use guard() for mutex locks
...
Replace the manual mutex lock/unlock pairs with guard() for code
simplification.
Only code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-6-tiwai@suse.de
2025-08-30 10:02:21 +02:00
Takashi Iwai
760c91a25a
ALSA: firewire: fireworks: Use guard() for mutex locks
...
Replace the manual mutex lock/unlock pairs with guard() for code
simplification.
Only code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-5-tiwai@suse.de
2025-08-30 10:02:21 +02:00
Takashi Iwai
a4b45e101d
ALSA: firewire: digi00x: Use guard() for mutex locks
...
Replace the manual mutex lock/unlock pairs with guard() for code
simplification.
Only code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-4-tiwai@suse.de
2025-08-30 10:02:21 +02:00
Takashi Iwai
089843177f
ALSA: firewire: dice: Use guard() for mutex locks
...
Replace the manual mutex lock/unlock pairs with guard() for code
simplification.
Only code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-3-tiwai@suse.de
2025-08-30 10:02:20 +02:00
Takashi Iwai
34d988f095
ALSA: firewire: bebob: Use guard() for mutex locks
...
Replace the manual mutex lock/unlock pairs with guard() for code
simplification.
Only code refactoring, and no behavior change.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250828132802.9032-2-tiwai@suse.de
2025-08-30 10:02:20 +02:00
Takashi Iwai
14f628cb58
Merge branch 'for-linus' into for-next
...
Pull 6.17 devel branch for further auto-cleanup updates.
Signed-off-by: Takashi Iwai <tiwai@suse.de >
2025-08-30 09:42:45 +02:00
Gergo Koteles
d5f8458e34
ALSA: hda: tas2781: reorder tas2563 calibration variables
...
The tasdev_load_calibrated_data() function expects the calibration data
values in the cali_data buffer as R0, R0Low, InvR0, Power, TLim which
is not the same as what tas2563_save_calibration() writes to the buffer.
Reorder the EFI variables in the tas2563_save_calibration() function
to put the values in the buffer in the correct order.
Fixes: 4fe2385134 ("ALSA: hda/tas2781: Move and unified the calibrated-data getting function for SPI and I2C into the tas2781_hda lib")
Cc: <stable@vger.kernel.org >
Signed-off-by: Gergo Koteles <soyer@irl.hu >
Link: https://patch.msgid.link/20250829160450.66623-2-soyer@irl.hu
Signed-off-by: Takashi Iwai <tiwai@suse.de >
2025-08-30 09:41:33 +02:00
Gergo Koteles
e5a00dafc7
ALSA: hda: tas2781: fix tas2563 EFI data endianness
...
Before conversion to unify the calibration data management, the
tas2563_apply_calib() function performed the big endian conversion and
wrote the calibration data to the device. The writing is now done by the
common tasdev_load_calibrated_data() function, but without conversion.
Put the values into the calibration data buffer with the expected
endianness.
Fixes: 4fe2385134 ("ALSA: hda/tas2781: Move and unified the calibrated-data getting function for SPI and I2C into the tas2781_hda lib")
Cc: <stable@vger.kernel.org >
Signed-off-by: Gergo Koteles <soyer@irl.hu >
Link: https://patch.msgid.link/20250829160450.66623-1-soyer@irl.hu
Signed-off-by: Takashi Iwai <tiwai@suse.de >
2025-08-30 09:41:17 +02:00
Takashi Sakamoto
aea3493246
ALSA: firewire-motu: drop EPOLLOUT from poll return values as write is not supported
...
The ALSA HwDep character device of the firewire-motu driver incorrectly
returns EPOLLOUT in poll(2), even though the driver implements no operation
for write(2). This misleads userspace applications to believe write() is
allowed, potentially resulting in unnecessarily wakeups.
This issue dates back to the driver's initial code added by a commit
71c3797779 ("ALSA: firewire-motu: add hwdep interface"), and persisted
when POLLOUT was updated to EPOLLOUT by a commit a9a08845e9 ('vfs: do
bulk POLL* -> EPOLL* replacement("").').
This commit fixes the bug.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp >
Link: https://patch.msgid.link/20250829233749.366222-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de >
2025-08-30 09:32:45 +02:00
Takashi Iwai
da24e6b3c2
ALSA: seq: oss/rw: Cleanup with guard
...
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/20250827080520.7544-12-tiwai@suse.de
2025-08-29 11:52:36 +02:00
Takashi Iwai
80ccbe91ad
ALSA: seq: oss/synth: Clean up with guard and auto cleanup
...
Use the auto-cleanup for the refcount management of seq_oss_synth
object. The explicit call of snd_use_lock_free() is dropped by the
magic __free(seq_oss_synth) attribute.
Along with that, replace the manual mutex and spin locks with
guard().
Only code refactoring, and no behavior change.
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250827080520.7544-11-tiwai@suse.de
2025-08-29 11:52:36 +02:00
Takashi Iwai
895a46e034
ALSA: seq: oss/midi: Cleanup with guard and auto-cleanup
...
Use the auto-cleanup for the refcount management of seq_oss_midi
object. The explicit call of snd_use_lock_free() is dropped by the
magic __free(seq_oss_midi) attribute.
Along with that, replace the manual mutex and spin locks with
guard().
Only code refactoring, and no behavior change.
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250827080520.7544-10-tiwai@suse.de
2025-08-29 11:52:36 +02:00
Takashi Iwai
1291fc664d
ALSA: seq: oss: Clean up core code with guard()
...
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/20250827080520.7544-9-tiwai@suse.de
2025-08-29 11:52:36 +02:00
Takashi Iwai
9314e34e37
ALSA: seq: Clean up fifo locking with guard
...
Yet more cleanup, now for seq_fifo.c about its refcount calls; the
manual refcount calls (either snd_use_lock_*() or snd_seq_fifo_lock())
are replaced with guard(snd_seq_fifo).
Only code refactoring, and no behavior change.
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250827080520.7544-8-tiwai@suse.de
2025-08-29 11:52:36 +02:00
Takashi Iwai
04a86185b7
ALSA: seq: Clean up queue locking with auto cleanup
...
Yet more cleanup with the auto-cleanup macro: now we replace the
queuefree() calls with the magic pointer attribute
__free(snd_seq_queue).
Only code refactoring, and no behavior change.
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250827080520.7544-7-tiwai@suse.de
2025-08-29 11:52:35 +02:00
Takashi Iwai
0869afc958
ALSA: seq: Clean up port locking with auto cleanup
...
Like the previous change in seq_clientmgr.c, introduce a new
auto-cleanup macro for the snd_seq_port_unlock(), and apply it
appropriately.
Only code refactoring, and no behavior change.
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250827080520.7544-6-tiwai@suse.de
2025-08-29 11:52:35 +02:00
Takashi Iwai
99e1663395
ALSA: seq: Use auto-cleanup for client refcounting
...
The current code manages the refcount of client in a way like:
snd_seq_client *client;
client = clientptr(id);
....
snd_seq_client_unlock(client);
Now we introduce an auto-cleanup macro to manage the unlock
implicitly, namely, the above will be replaced like:
snd_seq_client *client __free(snd_seq_client) = NULL;
client = clientptr(id);
and we can forget the unref call.
A part of the code in snd_seq_deliver_single_event() is factored out
to a function, so that the auto-cleanups can be applied cleanly.
This also allows us to replace some left mutex lock/unlock with
guard(), and also reduce scoped_guard() to the normal guard(), too.
Only code refactoring, and no behavior change.
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250827080520.7544-5-tiwai@suse.de
2025-08-29 11:52:35 +02:00