Skip to content

spa/alsa-udev: Check accessibility of pcm devices as well

Fabian Vogt requested to merge fvogt/pipewire:pcmaccessibility into master

The order of attribute changes is random, so it's possible that controlCX is accessible before the other devices, which marks the device as available but it actually fails to open. Only consider the device accessible if both control and PCM devices can be accessed.

This requires reacting to ATTRIB changes of pcm devices as well now.

Fixes #2534 (closed)

Unfortunately this currently adds some overhead. The code (also previously) checks accessibility even on CLOSE events, which is now a heavier task.

Merge request reports