From eae8d2d0b5b83a4b6dc80de88ea1fa0698a8ebe5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 14 Feb 2023 17:43:25 +0100 Subject: [PATCH] alsa: boost pro- profiles priority So that they are more likely to become the driver in the graph. --- src/scripts/monitors/alsa.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/monitors/alsa.lua b/src/scripts/monitors/alsa.lua index b959a4a2..d56c9f04 100644 --- a/src/scripts/monitors/alsa.lua +++ b/src/scripts/monitors/alsa.lua @@ -82,7 +82,9 @@ function createNode(parent, id, obj_type, factory, properties) priority = priority - (tonumber(dev) * 16) - tonumber(subdev) - if profile:find("^analog%-") then + if profile:find("^pro%-") then + priority = priority + 500 + elseif profile:find("^analog%-") then priority = priority + 9 elseif profile:find("^iec958%-") then priority = priority + 8