From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53D1AC4321A for ; Fri, 28 Jun 2019 11:40:00 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 09F3D20645 for ; Fri, 28 Jun 2019 11:39:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WoKjQVwo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 09F3D20645 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92) (envelope-from ) id 1hgpDo-0003Wb-Mz; Fri, 28 Jun 2019 07:39:16 -0400 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1hgpDn-0003WJ-KX for kernelnewbies@kernelnewbies.org; Fri, 28 Jun 2019 07:39:15 -0400 Received: by mail-lj1-x22c.google.com with SMTP id v18so5650261ljh.6 for ; Fri, 28 Jun 2019 04:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=uBqOhFq8J7d7YLU3ia8K2hzTJo+/J9eFPyDC+HgMCnQ=; b=WoKjQVwoKPnC0XtXKGNUujUt7IKmCeEk/bb8orXL0YQ4cUI+igdlHrJ693D9dj/H42 pOjbOjtpwrNQvDk9H07i3V405eJHDKFonlQC/J1rAzBwIKIX5/Nn7l6lounySoZlngLD yOlYcKJ0ZUyvUhOiaz2OovvaXMh6YRQV3yFxRUbB9wPZmTGkG72zVO6I+M34oVKOPf0D EnQD3Q1zettTwcNHYHjJSgArWpyp46lHwnYoGZDHWzzVDg+gWIEZ9SIdgtirfdvFsYP8 8T+sxAqghiX5Vpk9SCAa2fy80EhAz02XoS7sSSeymISC6kPbK+3OZRSINm0fMnU4fQig V7XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=uBqOhFq8J7d7YLU3ia8K2hzTJo+/J9eFPyDC+HgMCnQ=; b=U3eRjXvO2xudc8KC0w5q9z1ccbeJhxV85yTASguI5vpfeeHook0tIGoHRRIZRpBf7B IKSkn8c4cWe/WufTP026fjLWdiCFxFucLsX0QIuUq/wIe6ahZIHl54oIbWfLKF7TXLPh 8u8uUwHMFPSHqodwt5ylLG0IAtTcyVaRst5LyBFplVjQOo2cd8nwpBVDdxNV0fsG/J0S JAV1k4gfoZTvevaBecZfxa1JVhKGDDN0S7vd6CtTAs9BqcCkay29i5EBGkes1xz9qsXu remT71UTQ7dchEcpPOXqdjeuASnPq6lCigQbjnHZqbIUDvgOSQZjOQIaNfB6CgsF7p23 K3Ug== X-Gm-Message-State: APjAAAVradguCjgwcFP583pRLJNk9tc0kCgszNG3IuO/BvOEo3Z8OeSW sEanpCLz54JFebq3dG3RJJ6zRPdgBtmH3USOSQ4PQA== X-Google-Smtp-Source: APXvYqyQ+6PaJUAwiS3H1bWnyJUxuyrIIERdrgOg2Wb9B2imQiG1iCQ8S6apRGSzVZL8a6fjSMjl5oEltMC/hfSU3BI= X-Received: by 2002:a2e:9858:: with SMTP id e24mr5746438ljj.91.1561721891879; Fri, 28 Jun 2019 04:38:11 -0700 (PDT) MIME-Version: 1.0 From: Manoj Tiwary Date: Fri, 28 Jun 2019 17:07:59 +0530 Message-ID: Subject: UVC ioctl call is failing To: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5455521383935419452==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============5455521383935419452== Content-Type: multipart/alternative; boundary="0000000000009a8223058c60b68f" --0000000000009a8223058c60b68f Content-Type: text/plain; charset="UTF-8" Hi All, I have iCatch camera connected to my ubuntu 16.04 desktop, I'm trying to use GET_CUR and SET_CUR commands to control the camera Extension Unit. I have a common api for both get and set which first queries the camera with get_len and then send get or set command. But When I call a set or get command repeatedly without any delay, the ioctl is failing due to timeout, If I set UVC_CTRL_CONTROL_TIMEOUT to 0 (infinite) or more or delay between (min 2 sec ) get and set commands It will complete successfully. But same thing is working when I tried in windows. Is delay required between repeated ioctl calls? If so, why? Thank you, manoj --0000000000009a8223058c60b68f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi All,

I have iCatch camera= connected to my ubuntu 16.04 desktop, I'm trying to use GET_CUR and SE= T_CUR commands to control the camera Extension Unit.

I have a common api for both get and set which first queries the camera = with get_len and then send get or set command.

But= When I call a set or get command repeatedly without any delay, the ioctl i= s failing due to timeout, If I set UVC_CTRL_CONTROL_TIMEOUT to 0 (infinite)= or more or delay between (min 2 sec ) get and set commands It will complet= e successfully.

But same thing is working whe= n I tried in windows.

Is delay required betwee= n repeated ioctl calls? If so, why?

Thank you,
manoj
--0000000000009a8223058c60b68f-- --===============5455521383935419452== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============5455521383935419452==--