From 84699032be0a6a8a5e0174c5ca09c1cdc7ae2148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Mon, 5 Feb 2024 23:34:59 +0100 Subject: [PATCH] spa: alsa: react to "new" udev action as well Previously, only "change" and "remove" were considered. --- spa/plugins/alsa/alsa-udev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/alsa/alsa-udev.c b/spa/plugins/alsa/alsa-udev.c index d5ad3a523..06ad891fd 100644 --- a/spa/plugins/alsa/alsa-udev.c +++ b/spa/plugins/alsa/alsa-udev.c @@ -900,7 +900,7 @@ static void impl_on_fd_events(struct spa_source *source) start_inotify(this); - if (spa_streq(action, "change")) { + if (spa_streq(action, "add") || spa_streq(action, "change")) { process_udev_device(this, ACTION_CHANGE, udev_device); } else if (spa_streq(action, "remove")) { process_udev_device(this, ACTION_REMOVE, udev_device);