mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-25 13:40:04 +01:00
monitor: alsa: Forward the 'session.suspend-timeout-seconds' property to loopback device
This commit is contained in:
parent
ff81169cce
commit
5e509f29d9
1 changed files with 3 additions and 1 deletions
|
|
@ -47,6 +47,7 @@ function CreateLoopback (properties)
|
||||||
local pri_driver = properties ["priority.driver"]
|
local pri_driver = properties ["priority.driver"]
|
||||||
local pri_session = properties ["priority.session"]
|
local pri_session = properties ["priority.session"]
|
||||||
local cpd = properties ["card.profile.device"]
|
local cpd = properties ["card.profile.device"]
|
||||||
|
local sts = properties ["session.suspend-timeout-seconds"]
|
||||||
local stream_media_class = nil
|
local stream_media_class = nil
|
||||||
local stream_props = nil
|
local stream_props = nil
|
||||||
local device_props = nil
|
local device_props = nil
|
||||||
|
|
@ -89,7 +90,8 @@ function CreateLoopback (properties)
|
||||||
["device.id"] = dev_id,
|
["device.id"] = dev_id,
|
||||||
["card.profile.device"] = cpd,
|
["card.profile.device"] = cpd,
|
||||||
["priority.driver"] = tonumber(pri_driver) + 1,
|
["priority.driver"] = tonumber(pri_driver) + 1,
|
||||||
["priority.session"] = tonumber(pri_session) + 1
|
["priority.session"] = tonumber(pri_session) + 1,
|
||||||
|
["session.suspend-timeout-seconds"] = sts
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Set args
|
-- Set args
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue