audiomixer: only add the input port to mix_list

Adding the output port is not a problem because there is never a buffer
to consume and mix but it wastes cycles.
This commit is contained in:
Wim Taymans 2026-03-11 12:36:39 +01:00
parent 5f4b422ab1
commit 5cc63c1b34
2 changed files with 2 additions and 2 deletions

View file

@ -725,7 +725,7 @@ static int do_port_set_io(struct spa_loop *loop, bool async, uint32_t seq,
port->io[0] = info->data;
port->io[1] = info->data;
}
if (!port->active) {
if (port->direction == SPA_DIRECTION_INPUT && !port->active) {
spa_list_append(&info->impl->mix_list, &port->mix_link);
port->active = true;
}

View file

@ -718,7 +718,7 @@ static int do_port_set_io(struct spa_loop *loop, bool async, uint32_t seq,
port->io[0] = info->data;
port->io[1] = info->data;
}
if (!port->active) {
if (port->direction == SPA_DIRECTION_INPUT && !port->active) {
spa_list_append(&info->impl->mix_list, &port->mix_link);
port->active = true;
}