Skip to content

spa/alsa-udev: fix /proc/asound handling without CONFIG_SND_VERBOSE_PROCFS

P V requested to merge pvir/pipewire:alsa-udev-proc-fix into master

For kernels compiled with CONFIG_SND_VERBOSE_PROCFS=n, the pcmXX /proc/asound entries do not exist. In that case, the "device busy" check cannot be done, but we should still check existence of PCM devices correctly.

Count the number of PCM devices from /dev/snd, which should work also without /proc/asound or /sysfs/class/sound.

Fixes #2094 (closed)

Merge request reports