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.
Track-by: RSDEV-2233 Add D421 PID to Udev-rules manual script and manual patches for MD support Signed-off-by: Dmitry <[email protected]>
- Loading branch information
Showing
1 changed file
with
14 additions
and
5 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,17 +1,17 @@ | ||
From 04128af65169760ec4c8fba681ef278fc22b7ec1 Mon Sep 17 00:00:00 2001 | ||
From 3df5a4700229bd76b6c460e0b26529637f3ed172 Mon Sep 17 00:00:00 2001 | ||
From: Dmitry Perchanov <[email protected]> | ||
Date: Sun, 13 Aug 2023 12:13:21 +0300 | ||
Subject: [PATCH] Enabling UVC Metadata attributes, Ubuntu jammy 22.04. Kernel | ||
6.2 | ||
|
||
Signed-off-by: Dmitry Perchanov <[email protected]> | ||
--- | ||
drivers/media/usb/uvc/uvc_driver.c | 90 ++++++++++++++++++++++++++++++ | ||
drivers/media/usb/uvc/uvc_driver.c | 99 ++++++++++++++++++++++++++++++ | ||
drivers/media/usb/uvc/uvcvideo.h | 2 +- | ||
2 files changed, 91 insertions(+), 1 deletion(-) | ||
2 files changed, 100 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c | ||
index 362df9dd3..8f65b969b 100644 | ||
index 362df9dd3..3fedf65ab 100644 | ||
--- a/drivers/media/usb/uvc/uvc_driver.c | ||
+++ b/drivers/media/usb/uvc/uvc_driver.c | ||
@@ -2963,6 +2963,33 @@ static const struct usb_device_id uvc_ids[] = { | ||
|
@@ -48,7 +48,7 @@ index 362df9dd3..8f65b969b 100644 | |
/* Intel RealSense D4M */ | ||
{ .match_flags = USB_DEVICE_ID_MATCH_DEVICE | ||
| USB_DEVICE_ID_MATCH_INT_INFO, | ||
@@ -2972,6 +2999,69 @@ static const struct usb_device_id uvc_ids[] = { | ||
@@ -2972,6 +2999,78 @@ static const struct usb_device_id uvc_ids[] = { | ||
.bInterfaceSubClass = 1, | ||
.bInterfaceProtocol = 0, | ||
.driver_info = UVC_INFO_META(V4L2_META_FMT_D4XX) }, | ||
|
@@ -114,6 +114,15 @@ index 362df9dd3..8f65b969b 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) }, | ||
|