SHA256
1
0
forked from pool/wireplumber
wireplumber/0005-config-update-the-endpoints-config.patch

127 lines
3.2 KiB
Diff
Raw Normal View History

From 99dfa7d38a66943fc04181a2b82fe6da91402c4f Mon Sep 17 00:00:00 2001
From: Ashok Sidipotu <ashok.sidipotu@collabora.com>
Date: Tue, 11 Jan 2022 15:30:30 +0530
Subject: [PATCH 05/14] config: update the endpoints config
-Sync endpoints config from AGL.
-Add a capture endpoint.
---
.../policy.lua.d/50-endpoints-config.lua | 84 +++++++++++++++----
1 file changed, 70 insertions(+), 14 deletions(-)
diff --git a/src/config/policy.lua.d/50-endpoints-config.lua b/src/config/policy.lua.d/50-endpoints-config.lua
index 4bdf82a..6241509 100644
--- a/src/config/policy.lua.d/50-endpoints-config.lua
+++ b/src/config/policy.lua.d/50-endpoints-config.lua
@@ -4,36 +4,92 @@
--[[
default_policy.policy.roles = {
+ ["Capture"] = {
+ ["alias"] = { "Multimedia", "Music", "Voice", "Capture" },
+ ["priority"] = 25,
+ ["action.default"] = "cork",
+ ["action.capture"] = "mix",
+ ["media.class"] = "Audio/Source",
+ },
["Multimedia"] = {
["alias"] = { "Movie", "Music", "Game" },
- ["priority"] = 10,
- ["action.default"] = "mix",
+ ["priority"] = 25,
+ ["action.default"] = "cork",
+ },
+ ["Speech-Low"] = {
+ ["priority"] = 30,
+ ["action.default"] = "cork",
+ ["action.Speech-Low"] = "mix",
+ },
+ ["Custom-Low"] = {
+ ["priority"] = 35,
+ ["action.default"] = "cork",
+ ["action.Custom-Low"] = "mix",
},
- ["Notification"] = {
- ["priority"] = 20,
+ ["Navigation"] = {
+ ["priority"] = 50,
["action.default"] = "duck",
- ["action.Notification"] = "mix",
+ ["action.Navigation"] = "mix",
},
- ["Alert"] = {
- ["priority"] = 30,
+ ["Speech-High"] = {
+ ["priority"] = 60,
+ ["action.default"] = "cork",
+ ["action.Speech-High"] = "mix",
+ },
+ ["Custom-High"] = {
+ ["priority"] = 65,
["action.default"] = "cork",
- ["action.Alert"] = "mix",
+ ["action.Custom-High"] = "mix",
+ },
+ ["Communication"] = {
+ ["priority"] = 75,
+ ["action.default"] = "cork",
+ ["action.Communication"] = "mix",
+ },
+ ["Emergency"] = {
+ ["alias"] = { "Alert" },
+ ["priority"] = 99,
+ ["action.default"] = "cork",
+ ["action.Emergency"] = "mix",
},
}
default_policy.endpoints = {
+ ["endpoint.capture"] = {
+ ["media.class"] = "Audio/Source",
+ ["role"] = "Capture",
+ },
["endpoint.multimedia"] = {
["media.class"] = "Audio/Sink",
["role"] = "Multimedia",
},
- ["endpoint.notifications"] = {
+ ["endpoint.speech_low"] = {
+ ["media.class"] = "Audio/Sink",
+ ["role"] = "Speech-Low",
+ },
+ ["endpoint.custom_low"] = {
["media.class"] = "Audio/Sink",
- ["role"] = "Notification",
+ ["role"] = "Custom-Low",
},
- ["endpoint.alert"] = {
+ ["endpoint.navigation"] = {
["media.class"] = "Audio/Sink",
- ["role"] = "Alert",
+ ["role"] = "Navigation",
+ },
+ ["endpoint.speech_high"] = {
+ ["media.class"] = "Audio/Sink",
+ ["role"] = "Speech-High",
+ },
+ ["endpoint.custom_high"] = {
+ ["media.class"] = "Audio/Sink",
+ ["role"] = "Custom-High",
+ },
+ ["endpoint.communication"] = {
+ ["media.class"] = "Audio/Sink",
+ ["role"] = "Communication",
+ },
+ ["endpoint.emergency"] = {
+ ["media.class"] = "Audio/Sink",
+ ["role"] = "Emergency",
},
}
-
-]]--
+]]--
\ No newline at end of file
--
2.34.1