Skip to content

Commit 5a910fc

Browse files
adding 36i linux patch, focal, kernel 5.11
1 parent be5d453 commit 5a910fc

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

scripts/realsense-metadata-focal-master.patch

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From e6e4fd91cdfdb0b9cbb439916ebd12d61f1ff1b4 Mon Sep 17 00:00:00 2001
1+
From 4219d7a6e4f4c9c2b063402b167f1288dabba0ca Mon Sep 17 00:00:00 2001
22
From: Dmitry Perchanov <dmitry.perchanov@intel.com>
33
Date: Mon, 21 Aug 2023 15:10:57 +0300
44
Subject: [PATCH] Enabling UVC Metadata attributes with Ubuntu 20.04. Kernel
@@ -7,15 +7,15 @@ Subject: [PATCH] Enabling UVC Metadata attributes with Ubuntu 20.04. Kernel
77
Co-developed-by: Evgeni Raikhel <evgeni.raikhel@intel.com>
88
Signed-off-by: Dmitry Perchanov <dmitry.perchanov@intel.com>
99
---
10-
drivers/media/usb/uvc/uvc_driver.c | 279 +++++++++++++++++++++++++++++
10+
drivers/media/usb/uvc/uvc_driver.c | 288 +++++++++++++++++++++++++++++
1111
drivers/media/usb/uvc/uvcvideo.h | 2 +-
12-
2 files changed, 280 insertions(+), 1 deletion(-)
12+
2 files changed, 289 insertions(+), 1 deletion(-)
1313

1414
diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
15-
index 3be9bc97f..386832678 100644
15+
index b77eef67d..c0b9bd21a 100644
1616
--- a/drivers/media/usb/uvc/uvc_driver.c
1717
+++ b/drivers/media/usb/uvc/uvc_driver.c
18-
@@ -2916,6 +2916,285 @@ static const struct usb_device_id uvc_ids[] = {
18+
@@ -3029,6 +3029,294 @@ static const struct usb_device_id uvc_ids[] = {
1919
.bInterfaceSubClass = 1,
2020
.bInterfaceProtocol = 0,
2121
.driver_info = UVC_INFO_META(V4L2_META_FMT_D4XX) },
@@ -190,6 +190,15 @@ index 3be9bc97f..386832678 100644
190190
+ .bInterfaceSubClass = 1,
191191
+ .bInterfaceProtocol = 0,
192192
+ .driver_info = UVC_INFO_META(V4L2_META_FMT_D4XX) },
193+
+ /* Intel D436i depth camera */
194+
+ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE
195+
+ | USB_DEVICE_ID_MATCH_INT_INFO,
196+
+ .idVendor = 0x8086,
197+
+ .idProduct = 0x1156,
198+
+ .bInterfaceClass = USB_CLASS_VIDEO,
199+
+ .bInterfaceSubClass = 1,
200+
+ .bInterfaceProtocol = 0,
201+
+ .driver_info = UVC_INFO_META(V4L2_META_FMT_D4XX) },
193202
+ /* Intel L515 Pre-PRQ */
194203
+ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE
195204
+ | USB_DEVICE_ID_MATCH_INT_INFO,
@@ -302,10 +311,10 @@ index 3be9bc97f..386832678 100644
302311
{ USB_INTERFACE_INFO(USB_CLASS_VIDEO, 1, UVC_PC_PROTOCOL_UNDEFINED) },
303312
{ USB_INTERFACE_INFO(USB_CLASS_VIDEO, 1, UVC_PC_PROTOCOL_15) },
304313
diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h
305-
index a3dfacf06..898eebe42 100644
314+
index ced37a11a..01a3923b3 100644
306315
--- a/drivers/media/usb/uvc/uvcvideo.h
307316
+++ b/drivers/media/usb/uvc/uvcvideo.h
308-
@@ -181,7 +181,7 @@
317+
@@ -215,7 +215,7 @@
309318
/* Maximum number of packets per URB. */
310319
#define UVC_MAX_PACKETS 32
311320
/* Maximum status buffer size in bytes of interrupt URB. */
@@ -315,5 +324,5 @@ index a3dfacf06..898eebe42 100644
315324
#define UVC_CTRL_CONTROL_TIMEOUT 500
316325
#define UVC_CTRL_STREAMING_TIMEOUT 5000
317326
--
318-
2.34.1
327+
2.25.1
319328

0 commit comments

Comments
 (0)