From patchwork Mon Aug 24 22:57:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zvi Effron X-Patchwork-Id: 7067201 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B24579F358 for ; Mon, 24 Aug 2015 23:58:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C5AB5207E1 for ; Mon, 24 Aug 2015 23:58:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A73E7207DE for ; Mon, 24 Aug 2015 23:58:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754275AbbHXX6o (ORCPT ); Mon, 24 Aug 2015 19:58:44 -0400 Received: from vms173025pub.verizon.net ([206.46.173.25]:59329 "EHLO vms173025pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751540AbbHXX6n (ORCPT ); Mon, 24 Aug 2015 19:58:43 -0400 X-Greylist: delayed 3600 seconds by postgrey-1.27 at vger.kernel.org; Mon, 24 Aug 2015 19:58:43 EDT Received: from smtp.flippedperspective.com ([108.38.100.161]) by vms173025.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NTL0072EZTFRQA0@vms173025.mailsrvcs.net> for linux-media@vger.kernel.org; Mon, 24 Aug 2015 17:58:27 -0500 (CDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=WpDWSorv c=1 sm=1 tr=0 a=UlHki3UezFI+rQw38H0Fdw==:117 a=KlCLYjGrAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=uRRa74qj2VoA:10 a=n8F6EvXQejpWQT-B7uMA:9 Received: from salynn.flippedperspective.com (unknown [192.91.144.70]) by smtp.flippedperspective.com (Postfix) with ESMTPSA id 6FD5160AD5; Mon, 24 Aug 2015 22:58:27 +0000 (UTC) From: Zvi Effron To: linux-media@vger.kernel.org Cc: Laurent Pinchart , Mauro Carvalho Chehab , Zvi Effron Subject: [PATCH] add interface protocol 1 for Surface Pro 3 cameras Date: Mon, 24 Aug 2015 15:57:42 -0700 Message-id: <1440457062-2633-1-git-send-email-viz+kernel@flippedperspective.com> X-Mailer: git-send-email 2.4.3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The cameras on the Surface Pro 3 report interface protocol of 1. The generic USB video class doesn't work for them. This adds entries for the front and rear camera. Signed-off-by: Zvi Effron --- drivers/media/usb/uvc/uvc_driver.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c index 4b5b3e8..d2fdbc1 100644 --- a/drivers/media/usb/uvc/uvc_driver.c +++ b/drivers/media/usb/uvc/uvc_driver.c @@ -2142,6 +2142,22 @@ static struct usb_device_id uvc_ids[] = { .bInterfaceSubClass = 1, .bInterfaceProtocol = 0, .driver_info = UVC_QUIRK_PROBE_MINMAX }, + /* Microsoft Surface Pro 3 LifeCam Front */ + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = 0x045e, + .idProduct = 0x07be, + .bInterfaceClass = USB_CLASS_VIDEO, + .bInterfaceSubClass = 1, + .bInterfaceProtocol = 1 }, + /* Microsoft Surface Pro 3 LifeCam Rear */ + { .match_flags = USB_DEVICE_ID_MATCH_DEVICE + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = 0x045e, + .idProduct = 0x07bf, + .bInterfaceClass = USB_CLASS_VIDEO, + .bInterfaceSubClass = 1, + .bInterfaceProtocol = 1 }, /* Logitech Quickcam Fusion */ { .match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO,