mixer-dsp: only ramp down when io was removed

Only ramp down when the IO was removed. We don't want to ramp down
because there was no buffer because of an xrun, because after the
ramp down, the port is removed from the mix ports and stays silent.
This commit is contained in:
Wim Taymans 2026-06-18 10:58:52 +02:00
parent 13c5e3c756
commit b6fc57a299

View file

@ -933,7 +933,7 @@ static int impl_node_process(void *object)
if (size >= sizeof(float))
inport->history[0] = s[size/sizeof(float)-1];
inio->status = SPA_STATUS_NEED_DATA;
} else if (inport->ramp_pos > 0) {
} else if (inio == NULL) {
/* removed port, ramp down */
struct ramp_info *ri = &ramps[n_ramps++];
ri->port = inport;