Files
linux/include/sound
Cássio Gabriel c6c6f0aec6 ALSA: core: Add scoped cleanup helper for card references
Several ALSA paths acquire temporary card references with snd_card_ref()
and release them manually with snd_card_unref(). control_led.c already
defines a local cleanup helper for this pattern, while other core paths
still open-code the release.

Move the helper to the common ALSA core header and use it in control-layer
card-reference paths. This makes the ownership rule explicit and avoids
future missing-unref mistakes when adding early exits.

No functional change is intended.

Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260604-alsa-scoped-cleanups-v1-2-10c43152a728@gmail.com
2026-06-04 10:20:41 +02:00
..
2024-08-08 07:49:45 +02:00
2023-05-23 12:11:21 +02:00
2024-08-08 07:47:24 +02:00
2023-08-17 09:24:01 +02:00
2025-10-27 15:31:29 +00:00
2025-11-20 17:22:59 +00:00
2025-02-16 23:51:06 +00:00
2026-04-22 21:15:51 +01:00
2025-08-11 09:13:42 +02:00
2025-01-12 13:12:21 +01:00
2024-08-08 07:47:23 +02:00