From c298d7faefe2d612c484d9b4ec939f780581e701 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 24 Jan 2024 11:19:14 +0100 Subject: [PATCH] pulse-server: the device changed when EnumRoute changes We use EnumRoute of the card to fill in the ports of the device so when EnumRoute changes, the associated devices also needs a change event. --- src/modules/module-protocol-pulse/manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/module-protocol-pulse/manager.c b/src/modules/module-protocol-pulse/manager.c index eb1c667ae..1cf3944e9 100644 --- a/src/modules/module-protocol-pulse/manager.c +++ b/src/modules/module-protocol-pulse/manager.c @@ -373,7 +373,8 @@ static void device_event_param(void *data, int seq, if (p == NULL) return; - if (id == SPA_PARAM_Route && !has_param(&o->this.param_list, p)) { + if ((id == SPA_PARAM_Route || id == SPA_PARAM_EnumRoute) && + !has_param(&o->this.param_list, p)) { uint32_t idx, device; if (spa_pod_parse_object(param, SPA_TYPE_OBJECT_ParamRoute, NULL,