jack: group all jack nodes in the same application group

Make sure all jack nodes from the same pid are in the same group.

It is normally not a problem for different JACK clients to live in
different groups and be scheduled by different drivers with different
quantum and rate.

Some applications (like Carla), however, make multiple clients and
expect all of them to use the same quantum and rate. Enforce this by
adding all jack clients to the application jack group.
This commit is contained in:
Wim Taymans 2022-08-31 16:01:11 +02:00
parent 0126663238
commit c8ef655b3e

View file

@ -3361,6 +3361,8 @@ jack_client_t * jack_client_open (const char *client_name,
}
if (pw_properties_get(client->props, PW_KEY_NODE_NAME) == NULL)
pw_properties_set(client->props, PW_KEY_NODE_NAME, client_name);
if (pw_properties_get(client->props, PW_KEY_NODE_GROUP) == NULL)
pw_properties_setf(client->props, PW_KEY_NODE_GROUP, "jack-%d", getpid());
if (pw_properties_get(client->props, PW_KEY_NODE_DESCRIPTION) == NULL)
pw_properties_set(client->props, PW_KEY_NODE_DESCRIPTION, client_name);
if (pw_properties_get(client->props, PW_KEY_MEDIA_TYPE) == NULL)