alsa: rename vm.type to cpu.vm.name to be consistent with pipewire master

See 7e9e261fa6
This commit is contained in:
George Kiagiadakis
2024-03-18 17:03:44 +02:00
parent d0b7dde4e9
commit a79d002402
2 changed files with 4 additions and 4 deletions

View File

@@ -6,11 +6,11 @@ monitor.alsa.rules = [
matches = [
{
node.name = "~alsa_input.pci.*"
vm.type = "~.*"
cpu.vm.name = "~.*"
}
{
node.name = "~alsa_output.pci.*"
vm.type = "~.*"
cpu.vm.name = "~.*"
}
]
actions = {

View File

@@ -144,10 +144,10 @@ function createNode(parent, id, obj_type, factory, properties)
end
end
-- add vm.type for rule matching purposes
-- add cpu.vm.name for rule matching purposes
local vm_type = Core.get_vm_type()
if nonempty(vm_type) then
properties["vm.type"] = vm_type
properties["cpu.vm.name"] = vm_type
end
-- apply properties from rules defined in JSON .conf file