From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:33483 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751115AbdGNUOg (ORCPT ); Fri, 14 Jul 2017 16:14:36 -0400 Received: by mail-wm0-f68.google.com with SMTP id j85so12565695wmj.0 for ; Fri, 14 Jul 2017 13:14:36 -0700 (PDT) From: Philipp Zabel To: linux-media@vger.kernel.org Cc: Laurent Pinchart , Philipp Zabel , Philipp Zabel Subject: [PATCH 2/3] [media] uvcvideo: flag variable length control on Oculus Rift CV1 Sensor Date: Fri, 14 Jul 2017 22:14:23 +0200 Message-Id: <20170714201424.23592-2-philipp.zabel@gmail.com> In-Reply-To: <20170714201424.23592-1-philipp.zabel@gmail.com> References: <20170714201424.23592-1-philipp.zabel@gmail.com> Sender: linux-media-owner@vger.kernel.org List-ID: The extension unit controls with selectors 11 and 12 are used to make the eSP770u webcam controller issue SPI transfers to configure the nRF51288 radio or to read the flash storage. Depending on internal state controlled by selector 11, selector 12 reports different lengths. Signed-off-by: Philipp Zabel --- drivers/media/usb/uvc/uvc_ctrl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_ctrl.c b/drivers/media/usb/uvc/uvc_ctrl.c index ce69e2c6937d..86cb16a2e7f4 100644 --- a/drivers/media/usb/uvc/uvc_ctrl.c +++ b/drivers/media/usb/uvc/uvc_ctrl.c @@ -1613,6 +1613,9 @@ static void uvc_ctrl_fixup_xu_info(struct uvc_device *dev, UVC_CTRL_FLAG_GET_MIN | UVC_CTRL_FLAG_GET_MAX | UVC_CTRL_FLAG_GET_DEF | UVC_CTRL_FLAG_SET_CUR | UVC_CTRL_FLAG_AUTO_UPDATE }, + { { USB_DEVICE(0x2833, 0x0211) }, 4, 12, + UVC_CTRL_FLAG_GET_RANGE | UVC_CTRL_FLAG_SET_CUR | + UVC_CTRL_FLAG_VARIABLE_LEN }, }; unsigned int i; -- 2.13.2