context: relax quantum change conditions

We can change the quantum of a node while it is running just fine so
relax the check.

This was copied from the rate change logic, which is avoided while the
node is running.

This fixes a regression in dynamic quantum switching.

Fixes #3574
This commit is contained in:
Wim Taymans 2023-10-16 16:18:18 +02:00
parent 7ecea07a63
commit 19b02003b0

View file

@ -1473,9 +1473,7 @@ again:
}
current_quantum = n->target_quantum;
if (!restore_quantum &&
(lock_quantum || need_resume || !running ||
(!force_quantum && (n->info.state > PW_NODE_STATE_IDLE)))) {
if (!restore_quantum && (lock_quantum || need_resume || !running)) {
pw_log_debug("%p: keep quantum:%u restore:%u lock:%u resume:%u "
"running:%u force:%u state:%s", context,
current_quantum, restore_quantum, lock_quantum, need_resume,