alsa: boost pro- profiles priority

So that they are more likely to become the driver in the graph.
This commit is contained in:
Wim Taymans 2023-02-14 17:43:25 +01:00 committed by George Kiagiadakis
parent b8201d2716
commit eae8d2d0b5

View file

@ -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