spa: add port config group name

Make a portconfig group name. All ports from the same group have the
same port.group property and can be configured with the corresponding
PortConfig.
This commit is contained in:
Wim Taymans 2024-06-26 10:15:35 +02:00
parent 4eed79ee81
commit cf72a5945b
3 changed files with 25 additions and 5 deletions

View file

@ -39,6 +39,7 @@ static const struct spa_type_info spa_type_param_port_config[] = {
{ SPA_PARAM_PORT_CONFIG_monitor, SPA_TYPE_Bool, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE "monitor", NULL },
{ SPA_PARAM_PORT_CONFIG_control, SPA_TYPE_Bool, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE "control", NULL },
{ SPA_PARAM_PORT_CONFIG_format, SPA_TYPE_OBJECT_Format, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE "format", NULL },
{ SPA_PARAM_PORT_CONFIG_group, SPA_TYPE_String, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE "group", NULL },
{ 0, 0, NULL, NULL },
};

View file

@ -33,6 +33,7 @@ enum spa_param_port_config {
SPA_PARAM_PORT_CONFIG_monitor, /**< (Bool) enable monitor output ports on input ports */
SPA_PARAM_PORT_CONFIG_control, /**< (Bool) enable control ports */
SPA_PARAM_PORT_CONFIG_format, /**< (Object) format filter */
SPA_PARAM_PORT_CONFIG_group, /**< (String) the port group name */
};
/**