From 2573b3ea30e6a98b9294d148208f3c0f6da11595 Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Mon, 27 May 2024 23:40:38 +0200 Subject: [PATCH] Added patch --- ...-default-if-it-s-found-and-supported.patch | 33 +++++++++++++++++++ ...-1.0.6.ebuild => pipewire-1.0.6-r1.ebuild} | 1 + 2 files changed, 34 insertions(+) create mode 100644 media-video/pipewire/files/0001-Use-libcamera-by-default-if-it-s-found-and-supported.patch rename media-video/pipewire/{pipewire-1.0.6.ebuild => pipewire-1.0.6-r1.ebuild} (99%) diff --git a/media-video/pipewire/files/0001-Use-libcamera-by-default-if-it-s-found-and-supported.patch b/media-video/pipewire/files/0001-Use-libcamera-by-default-if-it-s-found-and-supported.patch new file mode 100644 index 0000000..9ba1d6c --- /dev/null +++ b/media-video/pipewire/files/0001-Use-libcamera-by-default-if-it-s-found-and-supported.patch @@ -0,0 +1,33 @@ +From 04a2685a1d9aed399108b2dfdd20631bb6f3eb65 Mon Sep 17 00:00:00 2001 +From: Dan Johansen +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 +--- + .../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 diff --git a/media-video/pipewire/pipewire-1.0.6.ebuild b/media-video/pipewire/pipewire-1.0.6-r1.ebuild similarity index 99% rename from media-video/pipewire/pipewire-1.0.6.ebuild rename to media-video/pipewire/pipewire-1.0.6-r1.ebuild index f09c31f..9222464 100644 --- a/media-video/pipewire/pipewire-1.0.6.ebuild +++ b/media-video/pipewire/pipewire-1.0.6-r1.ebuild @@ -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() {