forked from IntelRealSense/librealsense
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: patch: support for d421 focal kernel 5.13
Track-by: RSDEV-2233 Add D421 PID to Udev-rules manual script and manual patches for MD support Signed-off-by: dmipx <[email protected]>
- Loading branch information
Showing
1 changed file
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 7f1476ad8a599649a1067576d1efc4b28bb27e11 Mon Sep 17 00:00:00 2001 | ||
From 7480bd53bd1af5a11fc890e6b9a1a2991bfa6a28 Mon Sep 17 00:00:00 2001 | ||
From: Dmitry Perchanov <[email protected]> | ||
Date: Sun, 22 Jan 2023 13:46:16 +0200 | ||
Subject: [PATCH] Enabling UVC Metadata attributes with Ubuntu 20.04. Kernel | ||
|
@@ -8,15 +8,15 @@ Co-developed-by: Yu MENG <[email protected]> | |
Co-developed-by: Evgeni Raikhel <[email protected]> | ||
Signed-off-by: Dmitry Perchanov <[email protected]> | ||
--- | ||
drivers/media/usb/uvc/uvc_driver.c | 279 +++++++++++++++++++++++++++++ | ||
drivers/media/usb/uvc/uvc_driver.c | 288 +++++++++++++++++++++++++++++ | ||
drivers/media/usb/uvc/uvcvideo.h | 2 +- | ||
2 files changed, 280 insertions(+), 1 deletion(-) | ||
2 files changed, 289 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c | ||
index 9a791d8ef..6d875181a 100644 | ||
index 205d52412..e167ec854 100644 | ||
--- a/drivers/media/usb/uvc/uvc_driver.c | ||
+++ b/drivers/media/usb/uvc/uvc_driver.c | ||
@@ -3164,6 +3164,285 @@ static const struct usb_device_id uvc_ids[] = { | ||
@@ -3221,6 +3221,294 @@ static const struct usb_device_id uvc_ids[] = { | ||
.bInterfaceSubClass = 1, | ||
.bInterfaceProtocol = 0, | ||
.driver_info = UVC_INFO_META(V4L2_META_FMT_D4XX) }, | ||
|
@@ -298,15 +298,24 @@ index 9a791d8ef..6d875181a 100644 | |
+ .bInterfaceClass = USB_CLASS_VIDEO, | ||
+ .bInterfaceSubClass = 1, | ||
+ .bInterfaceProtocol = UVC_PC_PROTOCOL_15, | ||
+ .driver_info = UVC_INFO_META(V4L2_META_FMT_D4XX) }, | ||
+ /* Intel D421 Depth Module */ | ||
+ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | ||
+ | USB_DEVICE_ID_MATCH_INT_INFO, | ||
+ .idVendor = 0x8086, | ||
+ .idProduct = 0x1155, | ||
+ .bInterfaceClass = USB_CLASS_VIDEO, | ||
+ .bInterfaceSubClass = 1, | ||
+ .bInterfaceProtocol = 0, | ||
+ .driver_info = UVC_INFO_META(V4L2_META_FMT_D4XX) }, | ||
/* Generic USB Video Class */ | ||
{ USB_INTERFACE_INFO(USB_CLASS_VIDEO, 1, UVC_PC_PROTOCOL_UNDEFINED) }, | ||
{ USB_INTERFACE_INFO(USB_CLASS_VIDEO, 1, UVC_PC_PROTOCOL_15) }, | ||
diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h | ||
index c3ea6a538..99f9041f8 100644 | ||
index 3a551e3fa..82f60e855 100644 | ||
--- a/drivers/media/usb/uvc/uvcvideo.h | ||
+++ b/drivers/media/usb/uvc/uvcvideo.h | ||
@@ -187,7 +187,7 @@ | ||
@@ -221,7 +221,7 @@ | ||
/* Maximum number of packets per URB. */ | ||
#define UVC_MAX_PACKETS 32 | ||
/* Maximum status buffer size in bytes of interrupt URB. */ | ||
|
@@ -316,5 +325,5 @@ index c3ea6a538..99f9041f8 100644 | |
#define UVC_CTRL_CONTROL_TIMEOUT 5000 | ||
#define UVC_CTRL_STREAMING_TIMEOUT 5000 | ||
-- | ||
2.34.1 | ||
2.25.1 | ||
|