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:
Julian Bouzas 2022-01-27 09:45:11 -05:00
parent da023e1834
commit 2ba94f632b

View file

@ -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()