From 4683f1fa4418d3ea93623294e7896d946ae4ffb9 Mon Sep 17 00:00:00 2001 From: Ashok Sidipotu Date: Fri, 15 Mar 2024 16:58:41 +0000 Subject: [PATCH] wireplumber.conf: run stream-state.lua before m-standard-event-source Restore-stream hook is missing some of the node-added events if it is run after they are reported by the m-standard-event-source Fixes: #577 --- src/config/wireplumber.conf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/config/wireplumber.conf b/src/config/wireplumber.conf index c43b33e0..36be3525 100644 --- a/src/config/wireplumber.conf +++ b/src/config/wireplumber.conf @@ -537,6 +537,13 @@ wireplumber.components = [ provides = script.create-role-items requires = [ si.audio-virtual ] } + { + type = virtual, provides = policy.node + requires = [ hooks.node.create-session-item ] + wants = [ hooks.node.suspend + hooks.stream.state + hooks.filter.forward-format ] + } ## Linking hooks { @@ -611,11 +618,8 @@ wireplumber.components = [ policy.device.routes policy.default-nodes policy.linking.standard - hooks.node.create-session-item + policy.node support.standard-event-source ] - wants = [ hooks.node.suspend - hooks.stream.state - hooks.filter.forward-format ] } { type = virtual, provides = policy.role-priority-system