From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: Laurent Pinchart <laurent.pinchart@skynet.be>
Cc: video4linux-list@redhat.com
Subject: Re: uvc open/close race (Was Re: v4l1 compat wrapper version 0.3)
Date: Sat, 07 Jun 2008 08:31:33 +0200 [thread overview]
Message-ID: <484A2B45.1090200@hhs.nl> (raw)
In-Reply-To: <200806070054.51210.laurent.pinchart@skynet.be>
Laurent Pinchart wrote:
> Hi Hans,
>
>> Some notes:
>> 1) TRY_FMT should really never do I/O (but then I guess the
>> problem would still persists with S_FMT)
>
> Why not ? The UVC specification defines probe requests to negotiate the
> streaming format. Unlike for most other devices, the UVC model requires I/O
> in TRY_FMT.
>
I would expect the driver to ask the camera what format it supports once, at
probe and then cache that info, many applications do a lot of TRY_FMT calls in
quick succession, so doing the querying then and each time seems like a bad
idea to me. Esp as, as seen in my example try_fmt can now throw IO/errors
whichs is somewhat strange IMHO.
Quoting from:
http://lwn.net/Articles/227533/
"The VIDIOC_TRY_FMT handlers are optional for drivers, but omitting this
functionality is not recommended. If provided, this function is callable at any
time, even if the device is currently operating. It should not make any changes
to the actual hardware operating parameters; it is just a way for the
application to find out what is possible."
>> 2) I've also seen it fail at TRY_FMT 1 without first failing
>> a TRY_FMT 2, I guess that was just me doing arrow-up -> enter to
>> quickly :)
>
> Could you please tell me what webcam you used, as well as what kernel version
> you are running ?
I'm using a Logitech sphere usb id: 046d:08cc
Fedora kernel: kernel-2.6.25-8.fc9, which includes UVC (added by Fedora).
> I would also appreciate if you could check the kernel log
> for error messages after triggering the problem.
No messages I'm afraid.
Regards,
Hans
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-06-07 6:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-06 13:00 v4l1 compat wrapper version 0.3 Hans de Goede
2008-06-06 13:19 ` Laurent Pinchart
2008-06-06 14:19 ` uvc open/close race (Was Re: v4l1 compat wrapper version 0.3) Hans de Goede
2008-06-06 22:54 ` Laurent Pinchart
2008-06-07 6:31 ` Hans de Goede [this message]
2008-06-08 21:23 ` Laurent Pinchart
2008-06-08 22:00 ` Hans de Goede
2008-06-20 15:29 ` Laurent Pinchart
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=484A2B45.1090200@hhs.nl \
--to=j.w.r.degoede@hhs.nl \
--cc=laurent.pinchart@skynet.be \
--cc=video4linux-list@redhat.com \
/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