From 306c90618fe907a991c1276e29ae543c7d681a92 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 524c295fa..68281bc4a 100644 --- a/src/modules/module-protocol-pulse/manager.c +++ b/src/modules/module-protocol-pulse/manager.c @@ -378,7 +378,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,