From 6b0248d68cadc7b7d61b5d656cda5600e42e287c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 6 Apr 2026 10:39:08 +0200 Subject: [PATCH] Revert "impl-node: Don't suspend when links are busy" This reverts commit bb0efd777f187f10896c899ccebe93be0bf242f2. It is unclear what the problem was before this commit. If there are any pending operations, the suspend should simply cancel them. See #5207 --- src/pipewire/impl-node.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/pipewire/impl-node.c b/src/pipewire/impl-node.c index 77aef4bfc..c72dc7dcd 100644 --- a/src/pipewire/impl-node.c +++ b/src/pipewire/impl-node.c @@ -539,21 +539,6 @@ static int suspend_node(struct pw_impl_node *this) (this->info.state == PW_NODE_STATE_SUSPENDED && impl->pending_state == PW_NODE_STATE_SUSPENDED)) return 0; - spa_list_for_each(p, &this->input_ports, link) { - if (p->busy_count > 0) { - pw_log_debug("%p: can't suspend, input port %d busy:%d", - this, p->port_id, p->busy_count); - return -EBUSY; - } - } - spa_list_for_each(p, &this->output_ports, link) { - if (p->busy_count > 0) { - pw_log_debug("%p: can't suspend, output port %d busy:%d", - this, p->port_id, p->busy_count); - return -EBUSY; - } - } - node_deactivate(this); pw_log_debug("%p: suspend node driving:%d driver:%d prepared:%d", this,