Skip to content
Permalink
Browse files

Add back patch for Surface Pro 4 / Surface Book cameras

  • Loading branch information...
shvr committed Dec 14, 2015
1 parent 382418b commit b0a2fb8cedfd7410f5db780308f50db3549e6bd7
Showing with 51 additions and 2 deletions.
  1. +48 −0 Microsoft-Surface-Pro-4-Surface-Book-camera-support.patch
  2. +3 −2 kernel.spec
@@ -0,0 +1,48 @@
From 927cf119485bdfb9272365ae0d4ac66152c186af Mon Sep 17 00:00:00 2001
From: Donavan Lance <tusklahoma@gmail.com>
Date: Sun, 13 Dec 2015 22:37:39 -0500
Subject: [PATCH] Microsoft Surface Pro 4 / Surface Book camera support

Signed-off-by: Donavan Lance <tusklahoma@gmail.com>
---
drivers/media/usb/uvc/uvc_driver.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
index d11fd6a..8f5ec2f 100644
--- a/drivers/media/usb/uvc/uvc_driver.c
+++ b/drivers/media/usb/uvc/uvc_driver.c
@@ -2145,6 +2145,30 @@ static struct usb_device_id uvc_ids[] = {
.bInterfaceSubClass = 1,
.bInterfaceProtocol = 0,
.driver_info = UVC_QUIRK_PROBE_MINMAX },
+ /* Microsoft Surface Pro 4 */
+ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE
+ | USB_DEVICE_ID_MATCH_INT_INFO,
+ .idVendor = 0x045e,
+ .idProduct = 0x090c,
+ .bInterfaceClass = USB_CLASS_VIDEO,
+ .bInterfaceSubClass = 1,
+ .bInterfaceProtocol = 1 },
+ /* Microsoft Surface Book Front */
+ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE
+ | USB_DEVICE_ID_MATCH_INT_INFO,
+ .idVendor = 0x045e,
+ .idProduct = 0x090b,
+ .bInterfaceClass = USB_CLASS_VIDEO,
+ .bInterfaceSubClass = 1,
+ .bInterfaceProtocol = 1 },
+ /* Microsoft Surface Book Rear */
+ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE
+ | USB_DEVICE_ID_MATCH_INT_INFO,
+ .idVendor = 0x045e,
+ .idProduct = 0x091a,
+ .bInterfaceClass = USB_CLASS_VIDEO,
+ .bInterfaceSubClass = 1,
+ .bInterfaceProtocol = 1 },
/* Logitech Quickcam Fusion */
{ .match_flags = USB_DEVICE_ID_MATCH_DEVICE
| USB_DEVICE_ID_MATCH_INT_INFO,
--
2.5.0

@@ -488,8 +488,9 @@ Source5005: kbuild-AFTER_LINK.patch

# Git trees.

#Surface Pro 3
Patch9998: Add-multitouch-support-for-Microsoft-Type-Cover-3.patch
# Microsoft Surface
Patch9997: Add-multitouch-support-for-Microsoft-Type-Cover-3.patch
Patch9998: Microsoft-Surface-Pro-4-Surface-Book-camera-support.patch
Patch9999: uvcvideo-Enable-UVC-1.5-device-detection.patch

# Standalone patches

0 comments on commit b0a2fb8

Please sign in to comment.
You can’t perform that action at this time.