mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
add device.api property
This commit is contained in:
parent
d45569ce9e
commit
acd797d780
4 changed files with 5 additions and 0 deletions
|
|
@ -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[] = {
|
static const struct spa_dict_item node_info_items[] = {
|
||||||
|
{ "device.api", "alsa" },
|
||||||
{ "media.class", "Audio/Sink" },
|
{ "media.class", "Audio/Sink" },
|
||||||
{ "node.driver", "true" },
|
{ "node.driver", "true" },
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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[] = {
|
static const struct spa_dict_item node_info_items[] = {
|
||||||
|
{ "device.api", "alsa" },
|
||||||
{ "media.class", "Audio/Source" },
|
{ "media.class", "Audio/Source" },
|
||||||
{ "node.driver", "true" },
|
{ "node.driver", "true" },
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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[] = {
|
static const struct spa_dict_item info_items[] = {
|
||||||
|
{ "device.api", "v4l2" },
|
||||||
{ "media.class", "Video/Source" },
|
{ "media.class", "Video/Source" },
|
||||||
{ "media.role", "Camera" },
|
{ "media.role", "Camera" },
|
||||||
{ "node.pause-on-idle", "false" },
|
{ "node.pause-on-idle", "false" },
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,8 @@ extern "C" {
|
||||||
* Keys that start with "pipewire." are in general set-once and then
|
* Keys that start with "pipewire." are in general set-once and then
|
||||||
* read-only. They are usually used for security sensitive information that
|
* read-only. They are usually used for security sensitive information that
|
||||||
* needs to be fixed.
|
* needs to be fixed.
|
||||||
|
*
|
||||||
|
* Properties from the parent can also appear on children.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Peroperties usually set on the core object */
|
/* Peroperties usually set on the core object */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue