From 25e81d844a74eb113d9c0f2add7dc9331cb159ab Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Thu, 30 Jan 2020 14:14:13 -0500 Subject: [PATCH] spa: add SPA_PARAM_PORT_CONFIG_control param Needed for nodes with optional configurable control ports. --- spa/include/spa/param/param.h | 1 + spa/include/spa/param/type-info.h | 1 + 2 files changed, 2 insertions(+) diff --git a/spa/include/spa/param/param.h b/spa/include/spa/param/param.h index 039c19d67..93430198b 100644 --- a/spa/include/spa/param/param.h +++ b/spa/include/spa/param/param.h @@ -111,6 +111,7 @@ enum spa_param_port_config { SPA_PARAM_PORT_CONFIG_direction, /**< direction, input/output (Id enum spa_direction) */ SPA_PARAM_PORT_CONFIG_mode, /**< (Id enum spa_param_port_config_mode) mode */ 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 */ }; diff --git a/spa/include/spa/param/type-info.h b/spa/include/spa/param/type-info.h index f1bf9a927..08f38300c 100644 --- a/spa/include/spa/param/type-info.h +++ b/spa/include/spa/param/type-info.h @@ -294,6 +294,7 @@ static const struct spa_type_info spa_type_param_port_config[] = { { SPA_PARAM_PORT_CONFIG_direction, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE "direction", spa_type_direction, }, { SPA_PARAM_PORT_CONFIG_mode, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE "mode", spa_type_param_port_config_mode }, { 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, SPA_TYPE_INFO_PARAM_PORT_CONFIG_BASE "format", NULL }, { 0, 0, NULL, NULL }, };