Added patch

This commit is contained in:
Gerben Jan Dijkman 2024-05-27 23:40:38 +02:00
parent 60e8e1fcf0
commit 2573b3ea30
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,33 @@
From 04a2685a1d9aed399108b2dfdd20631bb6f3eb65 Mon Sep 17 00:00:00 2001
From: Dan Johansen <strit@manjaro.org>
Date: Wed, 16 Nov 2022 13:29:43 +0100
Subject: [PATCH] Use libcamera by default if it's found and supported
libcamera support was recently added, so this makes applications able to
use that support. This is for testing before the patch can be handed
over to upstream.
Signed-off-by: Dan Johansen <strit@manjaro.org>
---
.../main.lua.d/60-libcamera-nodes-by-default.lua | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 src/config/main.lua.d/60-libcamera-nodes-by-default.lua
diff --git a/src/config/main.lua.d/60-libcamera-nodes-by-default.lua b/src/config/main.lua.d/60-libcamera-nodes-by-default.lua
new file mode 100644
index 0000000..3d91be7
--- /dev/null
+++ b/src/config/main.lua.d/60-libcamera-nodes-by-default.lua
@@ -0,0 +1,10 @@
+ table.insert(libcamera_monitor.rules, {
+ matches = {
+ {
+ { "node.name", "matches", "libcamera_input.*" },
+ },
+ },
+ apply_properties = {
+ ["priority.session"] = 1000,
+ },
+})
--
2.38.1

View File

@ -176,6 +176,7 @@ PDEPEND=">=media-video/wireplumber-0.5.2"
PATCHES=(
"${FILESDIR}"/${PN}-0.3.25-enable-failed-mlock-warning.patch
"${FILESDIR}"/0001-Use-libcamera-by-default-if-it-s-found-and-supported.patch
)
pkg_setup() {