diff options
author | Scott Murray <scott.murray@konsulko.com> | 2021-08-24 09:57:08 -0400 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2021-08-25 12:50:36 +0000 |
commit | 502057487cf7346e136e058880a33ac298facb19 (patch) | |
tree | 387230ed28049327c097df986a90a06d9f8f7858 /meta-pipewire/recipes-multimedia/wireplumber/wireplumber-config-agl/10-default-policy.lua | |
parent | 61d41b58d300f2f9b8985361f93e698aa8888a65 (diff) |
pipewire: update to pw 0.3.30 and wp 0.4.0
* The pipewire recipe has been synced with the upstream yocto one
* WirePlumber configuration now has volume ducking enabled for
navigation messages. This means that music will now duck when
a navigation message plays instead of being corked.
* PipeWire's default configuration now lives in /usr/share/pipewire,
with the possibility to override it in /etc/pipewire. This allows
resetting to upstream defaults by removing /etc/pipewire
v2: add licenses to the layer to match the upstream recipe,
adapt licenses of sub-packages
v3: mark each package with the desired license instead of the mix
v4: simplify the license output of the sub-packages
Bug-AGL: SPEC-3844
Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
[manual backport of e17ac08 from master/lamprey]
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ibf72ed9536706e940abcaa08be92f19617f1ab1f
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/26569
Tested-by: Jenkins Job builder account
ci-image-build: Jenkins Job builder account
ci-image-boot-test: Jenkins Job builder account
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-pipewire/recipes-multimedia/wireplumber/wireplumber-config-agl/10-default-policy.lua')
-rw-r--r-- | meta-pipewire/recipes-multimedia/wireplumber/wireplumber-config-agl/10-default-policy.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/meta-pipewire/recipes-multimedia/wireplumber/wireplumber-config-agl/10-default-policy.lua b/meta-pipewire/recipes-multimedia/wireplumber/wireplumber-config-agl/10-default-policy.lua index 3c04652f0..f71b31316 100644 --- a/meta-pipewire/recipes-multimedia/wireplumber/wireplumber-config-agl/10-default-policy.lua +++ b/meta-pipewire/recipes-multimedia/wireplumber/wireplumber-config-agl/10-default-policy.lua @@ -2,12 +2,6 @@ default_policy = {} -default_policy.sessions = { - -- [session name] = { session properties } - ["audio"] = { ["media.type"] = "Audio" }, - --["video"] = { ["media.type"] = "Video" }, -} - default_policy.endpoints = { -- [endpoint name] = { endpoint properties } @@ -49,6 +43,10 @@ default_policy.policy = { ["move"] = false, -- moves session items when metadata target.node changes ["follow"] = true, -- moves session items to the default device when it has changed + -- how much to lower the volume of lower priority streams when ducking + -- note that this is a linear volume modifier (not cubic as in the mixer) + ["duck.level"] = 0.2, + ["roles"] = { ["Multimedia"] = { ["alias"] = { "Movie", "Music", "Game" }, @@ -67,7 +65,7 @@ default_policy.policy = { }, ["Navigation"] = { ["priority"] = 50, - ["action.default"] = "cork", + ["action.default"] = "duck", ["action.Navigation"] = "mix", }, ["Speech-High"] = { @@ -102,9 +100,11 @@ function default_policy.enable() load_module("si-standard-link") load_module("si-audio-endpoint") - -- Create sessions statically at startup - load_script("static-sessions.lua", default_policy.sessions) + -- API to access default nodes from scripts + load_module("default-nodes-api") + -- API to access mixer controls, needed for volume ducking + load_module("mixer-api") -- Create endpoints statically at startup load_script("static-endpoints.lua", default_policy.endpoints) |