monitor/alsa: Also include alsa.* device properties for rule matching

UCM alsa nodes don't seem to have the 'alsa.*' properties from the device
included, which make it harder to match those nodes with alsa rules. This
patch adds all the 'alsa.*' properties in the UCM node to solve this.
This commit is contained in:
Julian Bouzas 2025-11-13 11:09:41 -05:00
parent f0b224b210
commit 551353482a

View file

@ -297,9 +297,9 @@ function createNode(parent, id, obj_type, factory, properties)
properties["node.description"] = desc:gsub("(:)", " ")
end
-- add api.alsa.card.* properties for rule matching purposes
-- add api.alsa.card.* and alsa.* properties for rule matching purposes
for k, v in pairs(dev_props) do
if k:find("^api%.alsa%.card%..*") then
if k:find("^api%.alsa%.card%..*") or k:find("^alsa%..*") then
properties[k] = v
end
end