From patchwork Fri Jul 14 20:14:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Zabel X-Patchwork-Id: 9841625 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 9D19C602BD for ; Fri, 14 Jul 2017 20:14:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8ECE7287C2 for ; Fri, 14 Jul 2017 20:14:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83B52287C7; Fri, 14 Jul 2017 20:14:43 +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 C367B287C2 for ; Fri, 14 Jul 2017 20:14:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751118AbdGNUOj (ORCPT ); Fri, 14 Jul 2017 16:14:39 -0400 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) 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=xgR20hpN/LCpNs1vNIrQIF18QwKhgnHbqpss2yL4f1w=; b=l0LrovXmMctTZeav8RR5oOjKke/WOUL5Kk7jQ4B7HwWZ1WsoG/V4RWogVrdVJTz74I UfP/vKBjnG/JxlBtGrY91msegGLvfRBd7XCrNIrSshudkGr7RdBvRRMgpvBhnJUBEJAI jUBLdFbnuvx7JNU1EQU/NzCRyUnZ1OmKdKOlecCNmDxh6nTp4YFL9uhxjV4LGGMFz8fH PD0n3X9L8yZD69vUk5OXvd7fLCf+RlH1WfTP9Yq/+7/esWu3NAJK0yk/oa7hHZDbcG4w aGgARbi1gxJFDmkFBGlz0C7hKv9DtVHE+bTEoaJjq5mRtEzgbxdBRdzvN482usyMKC/A cStQ== 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=xgR20hpN/LCpNs1vNIrQIF18QwKhgnHbqpss2yL4f1w=; b=YXv3Zjlk1TxIyLnwSjVPu55R2r7uHLOy7SxMmlYCmMvHpftaJ1qmI4qrfgt9GkofTM EgQS6rBfyTsNxXU04okf/f4TsGdIPqb21SlAbLPUvKoWs21z8J8FWjh68VLiIViD4Nfz gwoOVTzpAGp4y/7otXM1rIUOe5d+3zRkwMIe0nTOip9HHiG8A3G2Je6FQFaY1KH4Mkrf ufDcT9po8H15lDIK6Nmcay1W6u9fkoDTnlEgJ786OlmlnSs3Qh5SLnT6zNkPvSBEi3Xz QG9u8qyEe3g5GLVKglgt1cALHM0/RkYc6SwZhyBhu3rTgjPYPiH6Q5DuGoZpLceK5OE5 K6TQ== X-Gm-Message-State: AIVw111ZYJqTY4sgEsu6ztanlW4RWUotan1xUPr5q5VZNTnI6QMEMo6D xTXu7AxU8TVYoLZN X-Received: by 10.80.172.21 with SMTP id v21mr8056556edc.141.1500063275330; Fri, 14 Jul 2017 13:14:35 -0700 (PDT) Received: from ped.lan ([31.18.254.68]) by smtp.googlemail.com with ESMTPSA id b4sm5308912eda.34.2017.07.14.13.14.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jul 2017 13:14:34 -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> X-Mailer: git-send-email 2.13.2 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 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 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;