Skip to content

Commit

Permalink
PR #12905 from Nir-Az: Add uvcvideo version update patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed May 12, 2024
2 parents cac91e2 + aa671d1 commit 6702e3d
Show file tree
Hide file tree
Showing 2 changed files with 27 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
26 changes: 26 additions & 0 deletions scripts/realsense-uvc-driver-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From fddfc8b3055abe1ccb3d03eacbe8028043d81257 Mon Sep 17 00:00:00 2001
From: Nir <nir.azkiel@intel.com>
Date: Thu, 9 May 2024 21:21:31 +0300
Subject: [PATCH] add uvcvideo version update patch

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

diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h
index 6fb0a78b1..d522b0f10 100644
--- a/drivers/media/usb/uvc/uvcvideo.h
+++ b/drivers/media/usb/uvc/uvcvideo.h
@@ -45,7 +45,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 6702e3d

Please sign in to comment.