From 22de7513c1e74da8712c36f5e6309c0b986caca7 Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Wed, 6 Mar 2024 10:46:24 -0500 Subject: [PATCH] scripts: rescan linkables when device EnumRoute param changes This is needed for some devices that expose both Headset and Speaker nodes, so that the applications are automatically linked to the Headset node or Speakers node automatically when plugging and unplugging a headset. --- src/scripts/linking/rescan.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/linking/rescan.lua b/src/scripts/linking/rescan.lua index 406f0573..f22dc9cf 100644 --- a/src/scripts/linking/rescan.lua +++ b/src/scripts/linking/rescan.lua @@ -177,7 +177,7 @@ SimpleEventHook { -- on device Routes changed EventInterest { Constraint { "event.type", "=", "device-params-changed" }, - Constraint { "event.subject.param-id", "=", "Route" }, + Constraint { "event.subject.param-id", "c", "Route", "EnumRoute" }, }, -- on any "default" target changed EventInterest {