mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 05:28:01 +02:00
policy-node: schedule rescan if device params changed
Allows auto-switching to headphones if echo-cancel module is enabled, and the audio device has different nodes for speakers and headephones.
This commit is contained in:
parent
da023e1834
commit
2ba94f632b
1 changed files with 6 additions and 0 deletions
|
|
@ -777,6 +777,12 @@ linkables_om:connect("object-removed", function (om, si)
|
|||
end
|
||||
end)
|
||||
|
||||
devices_om:connect("object-added", function (om, device)
|
||||
device:connect("params-changed", function (d, param_name)
|
||||
scheduleRescan ()
|
||||
end)
|
||||
end)
|
||||
|
||||
metadata_om:activate()
|
||||
endpoints_om:activate()
|
||||
clients_om:activate()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue