From ba30a4fcecd6f0bb6e2feef2e51a7b828a6e150d Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Mon, 27 Jun 2022 17:35:29 +0300 Subject: [PATCH] si-audio-adapter: skip control ports from the list of ports to be linked Related to: #294 --- modules/module-si-audio-adapter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/module-si-audio-adapter.c b/modules/module-si-audio-adapter.c index a6480179..703c0655 100644 --- a/modules/module-si-audio-adapter.c +++ b/modules/module-si-audio-adapter.c @@ -744,6 +744,10 @@ si_audio_adapter_get_ports (WpSiLinkable * item, const gchar * context) port_id = wp_proxy_get_bound_id (WP_PROXY (port)); props = wp_pipewire_object_get_properties (WP_PIPEWIRE_OBJECT (port)); + /* skip control ports for now */ + if (spa_atob (wp_properties_get (props, PW_KEY_PORT_CONTROL))) + continue; + /* try to find the audio channel; if channel is NULL, this will silently leave the channel_id to its default value, 0 */ channel = wp_properties_get (props, PW_KEY_AUDIO_CHANNEL);