Skip to content

spa/alsa-udev: retry busy devices on inotify close event, not timeout

P V requested to merge pvir/pipewire:alsa-udev-close-wait into master

Alsa device acp probe results to missing profiles if some PCM devices are busy. Currently, we retry based on a timeout and give up after some retries. However, exposing cards with missing profiles is never useful.

Never expose cards if some PCM devices are busy. Instead, retry adding device on inotify fd close events, which arrive when some process has closed a PCM device.

When probing for devices in alsa-udev, check via /proc to avoid inotify busy loop.

See #2057

Edited by P V

Merge request reports