mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 18:18:15 +02:00
policy-device-profile: Use device.profile if set
Don't set best profile if device.profile property has been set with alsa_monitor.rules.
This commit is contained in:
parent
ca58c68ef9
commit
92e53bb7ba
1 changed files with 5 additions and 0 deletions
|
|
@ -152,6 +152,11 @@ function handleProfiles (device, new_device)
|
|||
Log.info ("Default profile not found for " .. dev_name)
|
||||
end
|
||||
|
||||
-- Do not set best profile if device.profile has been set
|
||||
if device.properties["device.profile"] ~= nil then
|
||||
return
|
||||
end
|
||||
|
||||
local best_profile = findBestProfile (device)
|
||||
if best_profile ~= nil then
|
||||
Log.info ("Found best profile " .. best_profile.name .. " for " .. dev_name)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue