Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add uvcvideo version update patch #12905

Merged
merged 2 commits into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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