Use port device name when available, this usually identifies a device profile...
Use port device name when available, this usually identifies a device profile by its actual hardware device. Useful for controllers like HDMI which can bundle devices together
Also fixes a Pulse active_profile
deprecation.
Fixes #139
There is a trim workaround because the product name for ports is set to a minimum length by Pulse for some reason, PipeWire does not do this.
pulseaudio#3831
pactl --format=json list cards | python -m json.tool | grep -P " \"device.product.name"
"device.product.name": "27QHD240\n "
"device.product.name": "ASUS MG279\n "
[0] % pw-cli info all | grep MG
* alsa.name = "ASUS MG279"
* node.nick = "ASUS MG279"
"[ASUS MG279]" and the second device too is added here compared to normal:
I don't do C++, please have mercy.
Edited by Martin Rys