Skip to content
Snippets Groups Projects
Commit 244fa28d authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

si-standard-link: allow linking MONO capture clients

In case we have a multi-channel capture device and a mono client,
treat the MONO port as UNKNOWN and let it link with the first
port available on the device

Easy to test with arecord, which by default captures in MONO
parent 816fcaf4
Branches apertis/v2022pre apertis/v2023dev0
Tags apertis/0.4.5-1+apertis1
No related merge requests found
......@@ -309,7 +309,8 @@ create_links (WpSiStandardLink * self, WpTransition * transition,
if (link_all ||
out_channel == in_channel ||
out_channel == SPA_AUDIO_CHANNEL_UNKNOWN ||
in_channel == SPA_AUDIO_CHANNEL_UNKNOWN)
in_channel == SPA_AUDIO_CHANNEL_UNKNOWN ||
in_channel == SPA_AUDIO_CHANNEL_MONO)
{
g_autoptr (WpProperties) props = NULL;
WpLink *link;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment