mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 01:50:04 +01:00
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:
parent
f0b224b210
commit
551353482a
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue