alsa: enable client-rt for alsa clients

So that the pipewire thread is running with RT priority.
This commit is contained in:
Wim Taymans 2021-08-09 15:28:00 +02:00
parent 5a4ef78480
commit 780f2d645d

View file

@ -1027,7 +1027,11 @@ static int snd_pcm_pipewire_open(snd_pcm_t **pcmp, const char *name,
} }
loop = pw_thread_loop_get_loop(pw->main_loop); loop = pw_thread_loop_get_loop(pw->main_loop);
pw->system = loop->system; pw->system = loop->system;
if ((pw->context = pw_context_new(loop, NULL, 0)) == NULL) { if ((pw->context = pw_context_new(loop,
pw_properties_new(
PW_KEY_CONFIG_NAME, "client-rt.conf",
NULL),
0)) == NULL) {
err = -errno; err = -errno;
goto error; goto error;
} }