policy: fix record not working 73/27073/4
authorAshok Sidipotu <ashok.sidipotu@collabora.com>
Thu, 6 Jan 2022 01:16:45 +0000 (06:46 +0530)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 13 Jan 2022 22:33:24 +0000 (22:33 +0000)
Define a capture endpoint to get record working.

Change-Id: I3356736676bf112249b078ffeb16548cfa3daea3
Signed-off-by: Ashok Sidipotu <ashok.sidipotu@collabora.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/27073
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>
meta-pipewire/recipes-multimedia/wireplumber/wireplumber-config-agl/10-default-policy.lua

index 57fa921..333f520 100644 (file)
@@ -4,7 +4,10 @@ default_policy = {}
 
 default_policy.endpoints = {
   -- [endpoint name] = { endpoint properties }
-
+  ["endpoint.capture"] = {
+    ["media.class"] = "Audio/Source",
+    ["role"] = "Capture",
+  },
   ["endpoint.multimedia"] = {
     ["media.class"] = "Audio/Sink",
     ["role"] = "Multimedia",
@@ -53,6 +56,13 @@ default_policy.policy = {
   ["duck.level"] = 0.2,
 
   ["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"] = 25,