From acd797d780348b67d572cee0d84d1df0bf3df90c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 30 May 2019 16:59:30 +0200 Subject: [PATCH] add device.api property --- spa/plugins/alsa/alsa-sink.c | 1 + spa/plugins/alsa/alsa-source.c | 1 + spa/plugins/v4l2/v4l2-source.c | 1 + src/pipewire/keys.h | 2 ++ 4 files changed, 5 insertions(+) diff --git a/spa/plugins/alsa/alsa-sink.c b/spa/plugins/alsa/alsa-sink.c index f05c00084..e6c69eb3a 100644 --- a/spa/plugins/alsa/alsa-sink.c +++ b/spa/plugins/alsa/alsa-sink.c @@ -226,6 +226,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman } static const struct spa_dict_item node_info_items[] = { + { "device.api", "alsa" }, { "media.class", "Audio/Sink" }, { "node.driver", "true" }, }; diff --git a/spa/plugins/alsa/alsa-source.c b/spa/plugins/alsa/alsa-source.c index 9f8321ca3..47261edfb 100644 --- a/spa/plugins/alsa/alsa-source.c +++ b/spa/plugins/alsa/alsa-source.c @@ -226,6 +226,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman } static const struct spa_dict_item node_info_items[] = { + { "device.api", "alsa" }, { "media.class", "Audio/Source" }, { "node.driver", "true" }, }; diff --git a/spa/plugins/v4l2/v4l2-source.c b/spa/plugins/v4l2/v4l2-source.c index 6433d4e17..a3eb791e4 100644 --- a/spa/plugins/v4l2/v4l2-source.c +++ b/spa/plugins/v4l2/v4l2-source.c @@ -315,6 +315,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman } static const struct spa_dict_item info_items[] = { + { "device.api", "v4l2" }, { "media.class", "Video/Source" }, { "media.role", "Camera" }, { "node.pause-on-idle", "false" }, diff --git a/src/pipewire/keys.h b/src/pipewire/keys.h index 5db71af98..b0750761c 100644 --- a/src/pipewire/keys.h +++ b/src/pipewire/keys.h @@ -35,6 +35,8 @@ extern "C" { * Keys that start with "pipewire." are in general set-once and then * read-only. They are usually used for security sensitive information that * needs to be fixed. + * + * Properties from the parent can also appear on children. */ /* Peroperties usually set on the core object */