Devices with changed nick/descriptor forget settings
This bug was ported from p-m-s to WP with f8d60fce. Reverting this commit fixes it again.
Bug can be triggered with a config like
-- rg -v -N '^(\s*--.*|\s*)$' /etc/wireplumber/main.lua.d/50-alsa-config.lua
alsa_monitor.properties = {
["alsa.reserve"] = true,
["alsa.midi.monitoring"] = true,
}
alsa_monitor.rules = {
{
matches = {
{
{ "device.name", "matches", "alsa_card.*" },
},
},
apply_properties = {
["api.alsa.use-acp"] = true,
["api.acp.auto-profile"] = false,
["api.acp.auto-port"] = false,
},
},
{
matches = {
{
{ "node.name", "matches", "alsa_input.*" },
},
{
{ "node.name", "matches", "alsa_output.*" },
},
},
apply_properties = {
}
},
{
matches = {
{
{ "device.name", "matches", "alsa_card.pci-0000_0a_00.1" },
}
},
apply_properties = {
["device.nick"] = "Teufelchen",
["device.description"] = "Teufelchen",
["device.profile"] = "output:hdmi-stereo-extra3",
}
},
{
matches = {
{
{ "device.name", "matches", "alsa_card.pci-0000_0c_00.4" }
}
},
apply_properties = {
["device.profile"] = "output:iec958-stereo",
["device.nick"] = "Onboard_Audio",
["device.description"] = "Onboard Audio",
}
}
}
Edited by darix