summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Bouzas <julian.bouzas@collabora.com>2020-01-30 14:14:13 -0500
committerWim Taymans <wtaymans@redhat.com>2020-02-04 13:25:25 +0100
commit25e81d844a74eb113d9c0f2add7dc9331cb159ab (patch)
treec27c81a8f4e0922e6761be995ea682d60234349e
parent4bd6f5a055c49dde12db8257688a5d982ee0df45 (diff)
spa: add SPA_PARAM_PORT_CONFIG_control param
Needed for nodes with optional configurable control ports.
-rw-r--r--spa/include/spa/param/param.h1
-rw-r--r--spa/include/spa/param/type-info.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/spa/include/spa/param/param.h b/spa/include/spa/param/param.h
index 039c19d6..93430198 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 f1bf9a92..08f38300 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 },
};