mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04: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
|
|
@ -390,6 +390,7 @@ static int add_pro_profile(pa_card *impl, uint32_t index)
|
|||
pa_proplist_setf(m->output_proplist, "device.profile.pro", "true");
|
||||
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_set(m->input_proplist, "api.alsa.auto-link", "true");
|
||||
pa_alsa_close(&m->output_pcm);
|
||||
m->supported = true;
|
||||
pa_channel_map_init_auto(&m->channel_map, m->sample_spec.channels, PA_CHANNEL_MAP_AUX);
|
||||
|
|
@ -423,6 +424,7 @@ static int add_pro_profile(pa_card *impl, uint32_t index)
|
|||
pa_proplist_setf(m->input_proplist, "device.profile.pro", "true");
|
||||
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_set(m->input_proplist, "api.alsa.auto-link", "true");
|
||||
pa_alsa_close(&m->input_pcm);
|
||||
m->supported = true;
|
||||
pa_channel_map_init_auto(&m->channel_map, m->sample_spec.channels, PA_CHANNEL_MAP_AUX);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue