forked from pool/wireplumber
Antonio Larrosa
23c5d9eadf
- Back to version 0.4.6, and add patches incrementally to bisect it and find the issue * 0001-policy-node-fix-typo-when-finding-best-target.patch * 0002-policy-node-schedule-a-rescan-without-timeout-if-def.patch * 0003-policy-node-find-best-linkable-if-default-one-cannot.patch * 0004-spa-pod-fix-different-architecture-errors-for-boolea.patch * 0005-config-update-the-endpoints-config.patch * 0006-policy-endpoint-client.lua-fix-record-with-endpoints.patch * 0007-default-nodes-check-if-the-ports-exist-in-rescan_om.patch * 0008-scripts-monitors-log-warning-if-spa-devices-were-not.patch - Remove revert from previous change: * 0001-reversed-default-nodes-check-if-default-node-has-available-ro.patch OBS-URL: https://build.opensuse.org/request/show/948445 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/wireplumber?expand=0&rev=24
127 lines
3.2 KiB
Diff
127 lines
3.2 KiB
Diff
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
|
|
|