Skip to content

Commit

Permalink
scripts: patch: support for d421
Browse files Browse the repository at this point in the history
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
dmipx committed Jul 3, 2024
1 parent 4ebc982 commit 7152a51
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions scripts/realsense-metadata-jammy-hwe-6.2.patch
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[] = {
Expand Down Expand Up @@ -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) },
Expand Down Expand Up @@ -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) },
Expand Down

0 comments on commit 7152a51

Please sign in to comment.