From 33f3744a634a80d6491eccedf4beacea1383e3ba Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Thu, 26 Jan 2023 17:25:14 +0100 Subject: [PATCH] Sound(Linux): Treat default port as always active This fixes no shown sound devices when no audio is currently played --- src/detection/sound/sound_linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/detection/sound/sound_linux.c b/src/detection/sound/sound_linux.c index ef7cd2f00..e36bf2963 100644 --- a/src/detection/sound/sound_linux.c +++ b/src/detection/sound/sound_linux.c @@ -31,6 +31,7 @@ static void paServerInfoCallback(pa_context *c, const pa_server_info *i, void *u if(ffStrbufEqualS(&device->manufacturer, i->default_sink_name)) { device->main = true; + device->active = true; // Treat the default sink as always active break; } }