spa: give meaning to port_enum_params with SPA_ID_INVALID port_id

This is to iterate params that are common to all ports, such as
EnumFormat or the supported IO areas. Mostly interesting for mixer and
splitter nodes so that we don't have to create a new port just to query
things.
This commit is contained in:
Wim Taymans 2024-04-12 17:23:24 +02:00
parent bf273690fd
commit 77ed5ccb31
5 changed files with 32 additions and 22 deletions

View file

@ -827,7 +827,8 @@ static int setup_mixer(struct pw_impl_port *port, const struct spa_pod *param)
return res;
}
pw_log_debug("mix node handle:%p iface:%p", handle, iface);
pw_log_debug("mix node %s (%s) handle:%p iface:%p", factory_name, fallback_lib,
handle, iface);
pw_impl_port_set_mix(port, (struct spa_node*)iface,
PW_IMPL_PORT_MIX_FLAG_MULTI |
PW_IMPL_PORT_MIX_FLAG_NEGOTIATE);