mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 22:58:02 +02:00
si-standard-link: fix aux channels links
AUX channels can link to any other channel but when AUX channels are linked, they must match exactly. Fixes some issues with split devices with aux channels.
This commit is contained in:
parent
90d6e6042e
commit
486288363b
1 changed files with 2 additions and 2 deletions
|
|
@ -208,12 +208,12 @@ score_ports(struct port *out, struct port *in)
|
|||
(out->channel == SPA_AUDIO_CHANNEL_MONO && in->channel == SPA_AUDIO_CHANNEL_FC))
|
||||
score += 50;
|
||||
else if (in->channel == SPA_AUDIO_CHANNEL_UNKNOWN ||
|
||||
channel_is_aux(in->channel) ||
|
||||
in->channel == SPA_AUDIO_CHANNEL_MONO ||
|
||||
out->channel == SPA_AUDIO_CHANNEL_UNKNOWN ||
|
||||
channel_is_aux(out->channel) ||
|
||||
out->channel == SPA_AUDIO_CHANNEL_MONO)
|
||||
score += 10;
|
||||
else if (channel_is_aux(in->channel) != channel_is_aux(out->channel))
|
||||
score += 7;
|
||||
if (score > 0 && !in->visited)
|
||||
score += 5;
|
||||
if (score <= 10)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue