Commit 48628836 authored by Wim Taymans's avatar Wim Taymans
Browse files

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.
parent 90d6e604
Pipeline #423698 passed with stages
in 3 minutes and 10 seconds
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment