kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: Manoj Tiwary <manojtiwary22@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: UVC ioctl call is failing
Date: Fri, 28 Jun 2019 17:07:59 +0530	[thread overview]
Message-ID: <CAM-QqPBRxnqiDCyp5x8WotYMhzHXW+cinjz6s2Jz_Li6n7O+pg@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 649 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 853 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

                 reply	other threads:[~2019-06-28 11:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAM-QqPBRxnqiDCyp5x8WotYMhzHXW+cinjz6s2Jz_Li6n7O+pg@mail.gmail.com \
    --to=manojtiwary22@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).