mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
alsa: add api.alsa.auto-link option
Add an option to automatically use snd_pcm_link when the follower clock is matching the driver. Only set this to true in pro-audio and when nodes are scheduled together. See #3556
This commit is contained in:
parent
0dfa05117b
commit
896fea62c2
3 changed files with 6 additions and 1 deletions
|
|
@ -131,6 +131,8 @@ static int alsa_set_param(struct state *state, const char *k, const char *s)
|
|||
state->multi_rate = spa_atob(s);
|
||||
} else if (spa_streq(k, "api.alsa.htimestamp")) {
|
||||
state->htimestamp = spa_atob(s);
|
||||
} else if (spa_streq(k, "api.alsa.auto-link")) {
|
||||
state->auto_link = spa_atob(s);
|
||||
} else if (spa_streq(k, "latency.internal.rate")) {
|
||||
state->process_latency.rate = atoi(s);
|
||||
} else if (spa_streq(k, "latency.internal.ns")) {
|
||||
|
|
@ -3034,7 +3036,7 @@ int spa_alsa_prepare(struct state *state)
|
|||
spa_list_for_each(follower, &state->followers, driver_link) {
|
||||
if (follower != state && !follower->matching) {
|
||||
spa_alsa_prepare(follower);
|
||||
if (!follower->linked)
|
||||
if (!follower->linked && state->auto_link)
|
||||
do_link(state, follower);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue