Wireplumber 0.5 disable alsa devices and pro-audio
Updated at by ospiLooks like I had some oldies lying around on the disk as wireplumber greeted me with
wireplumber: Old configuration file detected: /home/muh_user/.config/wireplumber/main.lua.d/51-disaa-paskaa.lua
wireplumber: Old configuration file detected: /home/muh_user/.config/wireplumber/main.lua.d/52-alsa-bufferit.lua
Luckily there's a good guide for migrating unsupported lua-scripts to new spa-json files at Freedesktop.org - wireplumber migration and after some new bracketing and cleanup.
Disable devices
~/.config/wireplumber/wireplumber.conf.d/51-disaa-paskaa.conf
disables bunch devices like webcam audio, nvidia hdmi audio etc. wpctl status
and wpctl inspect <id>
to get device.name
.
monitor.alsa.rules = [
{
matches = [
{ "device.name" = "alsa_card.pci-0000_01_00.1" },
{ "device.name" = "alsa_card.usb-046d_Logitech_Webcam_C925e_16FE83DF-02" },
{ "device.name" = "alsa_card.pci-0000_00_1f.3" }
]
actions = {
update-props = {
device.disabled = true
}
}
}
]
And another to set pro-audio
profile for my usb interface, probably most of the settings are just for show except device.profile
.
monitor.alsa.rules = [
{
matches = [ { "device.name" = "alsa_card.usb-Solid_State_Logic_SSL_2_-00" } ]
actions = {
update-props = {
api.alsa.period-num = 2,
api.alsa.period-size = 64,
api.alsa.headroom = 0,
api.alsa.disable-batch = true,
device.profile = "pro-audio",
}
}
}
For the very best #yotld moments. Have a great day!