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.
This commit is contained in:
Damien Espitallier 2026-02-17 19:19:52 +01:00
parent 7956d7ceaf
commit 88cbe24201

View file

@ -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);