spa: alsa: react to "new" udev action as well

Previously, only "change" and "remove" were considered.

(cherry picked from commit 84699032be)
This commit is contained in:
Barnabás Pőcze 2024-02-05 23:34:59 +01:00 committed by Robert Mader
parent 062a1039e9
commit 9599e7e394

View file

@ -903,7 +903,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);