mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-04 15:10:20 +00:00
acp: only disable tsched when linking
Disable timer based scheduling only if we are going to link the devices together. See #3556
This commit is contained in:
parent
acbe75d9a1
commit
2278dd1460
|
@ -437,11 +437,13 @@ static int add_pro_profile(pa_card *impl, uint32_t index)
|
||||||
pa_proplist_setf(m->output_proplist, "node.group", "pro-audio-%u", index);
|
pa_proplist_setf(m->output_proplist, "node.group", "pro-audio-%u", index);
|
||||||
pa_proplist_setf(m->output_proplist, "node.link-group", "pro-audio-%u", index);
|
pa_proplist_setf(m->output_proplist, "node.link-group", "pro-audio-%u", index);
|
||||||
pa_proplist_setf(m->output_proplist, "api.alsa.auto-link", "true");
|
pa_proplist_setf(m->output_proplist, "api.alsa.auto-link", "true");
|
||||||
|
pa_proplist_setf(m->output_proplist, "api.alsa.disable-tsched", "true");
|
||||||
}
|
}
|
||||||
PA_IDXSET_FOREACH(m, ap->input_mappings, idx) {
|
PA_IDXSET_FOREACH(m, ap->input_mappings, idx) {
|
||||||
pa_proplist_setf(m->input_proplist, "node.group", "pro-audio-%u", index);
|
pa_proplist_setf(m->input_proplist, "node.group", "pro-audio-%u", index);
|
||||||
pa_proplist_setf(m->input_proplist, "node.link-group", "pro-audio-%u", index);
|
pa_proplist_setf(m->input_proplist, "node.link-group", "pro-audio-%u", index);
|
||||||
pa_proplist_setf(m->input_proplist, "api.alsa.auto-link", "true");
|
pa_proplist_setf(m->input_proplist, "api.alsa.auto-link", "true");
|
||||||
|
pa_proplist_setf(m->input_proplist, "api.alsa.disable-tsched", "true");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -514,7 +514,6 @@ int spa_alsa_init(struct state *state, const struct spa_dict *info)
|
||||||
|
|
||||||
state->multi_rate = true;
|
state->multi_rate = true;
|
||||||
state->htimestamp = false;
|
state->htimestamp = false;
|
||||||
state->disable_tsched = state->is_pro;
|
|
||||||
for (i = 0; info && i < info->n_items; i++) {
|
for (i = 0; info && i < info->n_items; i++) {
|
||||||
const char *k = info->items[i].key;
|
const char *k = info->items[i].key;
|
||||||
const char *s = info->items[i].value;
|
const char *s = info->items[i].value;
|
||||||
|
|
Loading…
Reference in a new issue