mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-27 06:46:48 -04: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
50905a2d18
commit
16330d6982
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)
|
static void process_card(struct impl *this, enum action action, struct card *card)
|
||||||
{
|
{
|
||||||
if (card->ignored)
|
|
||||||
return;
|
|
||||||
|
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case ACTION_CHANGE: {
|
case ACTION_CHANGE: {
|
||||||
|
if (card->ignored)
|
||||||
|
return;
|
||||||
|
|
||||||
check_access(this, card);
|
check_access(this, card);
|
||||||
if (card->accessible && !card->emitted) {
|
if (card->accessible && !card->emitted) {
|
||||||
int res = emit_added_object_info(this, card);
|
int res = emit_added_object_info(this, card);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue