From 88cbe2420169185b0489cc38b43116e107395822 Mon Sep 17 00:00:00 2001 From: Damien Espitallier Date: Tue, 17 Feb 2026 19:19:52 +0100 Subject: [PATCH] alsa-udev: Allow ACTION_REMOVE on ignored cards Move the card->ignored check to only apply to ACTION_CHANGE, not ACTION_REMOVE. This ensures that ignored cards can still be properly removed when they are unplugged. --- spa/plugins/alsa/alsa-udev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spa/plugins/alsa/alsa-udev.c b/spa/plugins/alsa/alsa-udev.c index 7d1ae9a3a..8537c9760 100644 --- a/spa/plugins/alsa/alsa-udev.c +++ b/spa/plugins/alsa/alsa-udev.c @@ -725,11 +725,11 @@ static bool check_access(struct impl *this, struct card *card) static void process_card(struct impl *this, enum action action, struct card *card) { - if (card->ignored) - return; - switch (action) { case ACTION_CHANGE: { + if (card->ignored) + return; + check_access(this, card); if (card->accessible && !card->emitted) { int res = emit_added_object_info(this, card);