mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-03 01:40:51 -05:00
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:
parent
7956d7ceaf
commit
88cbe24201
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue