From patchwork Sun Jul 16 14:53:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Zabel X-Patchwork-Id: 9843423 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BEED7602BD for ; Sun, 16 Jul 2017 14:53:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B47AC28409 for ; Sun, 16 Jul 2017 14:53:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9283284FC; Sun, 16 Jul 2017 14:53:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39D5028409 for ; Sun, 16 Jul 2017 14:53:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751490AbdGPOxR (ORCPT ); Sun, 16 Jul 2017 10:53:17 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35313 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751268AbdGPOxP (ORCPT ); Sun, 16 Jul 2017 10:53:15 -0400 Received: by mail-wm0-f67.google.com with SMTP id u23so18845112wma.2 for ; Sun, 16 Jul 2017 07:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=19bUmYZKZfa1q2DXrbXXGr7O99KHL/w8YNfCVMQnQXk=; b=Lp+PFFHivwS4ZkAez9Yplb3cNSJFqo00B/mHp2/hDlDQOAmOr9j3M3U0LrWOMWiFYL nQ4/odGjHnp0+Gtu5yzoaEeAXTf9LhnJ4Bu7K5oiQIArYW76hReXvzdNbMh+p4x/oMsa 1E60xezyn4mZKNaJXp7KRTpGG7YIIIsFTyQMOy4zpj8mZhFphqimsxwfxHBEy4yZszKK TPwdN/RdVNIcgJ2FW5PW/iqbBU0V0g8u6/yTX7Y59onJp2xbciNRfPUNjdzZ+WI2mEnL kI6xRf9hByQRZsWOu+zjqc3Cj2owLw8Je2Lcj6f+GDXptOvBoWfgfIKxuBu8ss4ehHrF z6nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=19bUmYZKZfa1q2DXrbXXGr7O99KHL/w8YNfCVMQnQXk=; b=tikUaZTg9khygRE9QxQc0ucrGKd39yHAGgjt5aqpSQv1xAqizEeIDSqAOq2JOlqdzX /vf0PMSPsT5TIISpVEKF7KWfveubCOf0xy9tXkGoDPOGV9u3nfygK9nqGoIchK63Oz9P a8IUd5fj+5jIV+yiIwo2fqqVkscqGe0nfMiJ9A490/U/3CWOpL8aduFthC+ST/uwNuqT QUID6wuwNqM9+Aj8dTh6AQ1B9lm6Dpv5dWwgkcu0gE5K8vOcqDrM58QG9MGXGwZkJlb0 SIYYAilG62cQXDPfMLkDcjx55ttSBOJA23LhxU6Pcg6IAi+dsfxhaMiMdYOzil3rjHHc T3kg== X-Gm-Message-State: AIVw111uaclDsVnxW6gVKtCSzVi89eXTxIy453JiP9KPhDy1UwK6pK0k UWqEqm9jNENdFp4R X-Received: by 10.80.143.163 with SMTP id y32mr14243290edy.103.1500216793792; Sun, 16 Jul 2017 07:53:13 -0700 (PDT) Received: from ped.lan (ip1f12fb64.dynamic.kabel-deutschland.de. [31.18.251.100]) by smtp.googlemail.com with ESMTPSA id c11sm7865922eda.0.2017.07.16.07.53.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Jul 2017 07:53:13 -0700 (PDT) From: Philipp Zabel To: linux-media@vger.kernel.org Cc: Laurent Pinchart , Philipp Zabel , Philipp Zabel Subject: [PATCH v2 2/3] [media] uvcvideo: flag variable length control on Oculus Rift CV1 Sensor Date: Sun, 16 Jul 2017 16:53:04 +0200 Message-Id: <20170716145305.19934-2-philipp.zabel@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170716145305.19934-1-philipp.zabel@gmail.com> References: <20170716145305.19934-1-philipp.zabel@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 43e8851cc381..1d60321a6777 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;