Skip to content

alsa-ucm: Check UCM verb before working with device status

Some versions of the ALSA libraries run into a segmentation fault when we query a UCM device/modifier status without first setting a UCM verb. It's not a reasonable thing to do anyway, so check for this case and return an error. Also do the check in other helpers.

(This doesn't actually happen in PulseAudio, but I ran into it in PipeWire while trying to port UCM changes there...)

Merge request reports