Skip to content

Commit

Permalink
add uvcvideo version update patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed May 7, 2024
1 parent 55239bd commit d854d8a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/patch-realsense-ubuntu-lts-hwe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ then
# Patching kernel for RealSense devices
echo -e "\e[32mApplying patches for \e[36m${ubuntu_codename}-${kernel_branch}\e[32m line\e[0m"
echo -e "\e[32mApplying realsense-uvc patch\e[0m"
patch -p1 < ../scripts/realsense-uvc-driver-version.patch
patch -p1 < ../scripts/realsense-camera-formats-${ubuntu_codename}-${kernel_branch}.patch || patch -p1 < ../scripts/realsense-camera-formats-${ubuntu_codename}-master.patch
if [ ${skip_md_patch} -eq 0 ]; then
echo -e "\e[32mApplying realsense-metadata patch\e[0m"
Expand Down
27 changes: 27 additions & 0 deletions scripts/realsense-uvc-driver-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 327de73504d2d5ac897d86fe15c3aceaeb051da8 Mon Sep 17 00:00:00 2001
From: Nir <nir.azkiel@intel.com>
Date: Tue, 7 May 2024 23:02:47 +0300
Subject: [PATCH] make realsense uvcvideo driver version unique

---
drivers/media/usb/uvc/uvcvideo.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h
index 6fb0a78b1..b35431ae1 100644
--- a/drivers/media/usb/uvc/uvcvideo.h
+++ b/drivers/media/usb/uvc/uvcvideo.h
@@ -44,8 +44,8 @@
/* ------------------------------------------------------------------------
* Driver specific constants.
*/
-
-#define DRIVER_VERSION "1.1.1"
+#define DRIVER_VERSION_SUFFIX "realsense-patch"
+#define DRIVER_VERSION "1.1.1-" DRIVER_VERSION_SUFFIX

/* Number of isochronous URBs. */
#define UVC_URBS 5
--
2.34.1

0 comments on commit d854d8a

Please sign in to comment.