From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Ezequiel Garcia <elezegarcia@gmail.com>
Cc: Sakari Ailus <sakari.ailus@iki.fi>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
Hans Verkuil <hverkuil@xs4all.nl>
Subject: Re: [GIT PULL FOR 3.6] V4L2 API cleanups
Date: Thu, 05 Jul 2012 19:27:49 -0300 [thread overview]
Message-ID: <4FF614E5.6080602@redhat.com> (raw)
In-Reply-To: <CALF0-+XLj9RaEaovkVXu0hqs0YE3jwtFdUMqsUCXVoncPSH5jg@mail.gmail.com>
Em 05-07-2012 18:31, Ezequiel Garcia escreveu:
> On Thu, Jul 5, 2012 at 6:21 PM, Sakari Ailus <sakari.ailus@iki.fi> wrote:
>>
>> There was a discussion between Ezequiel and Hans that in my understanding
>> led to a conclusion there's no such use case, at least one which would be
>> properly supported by the hardware. (Please correct me if I'm mistaken.)
>>
>
> Concerning stk1160 devices with several video input (I own one with
> four video inputs),
> I can say that this is currently handled throught ioctl
> VIDIOC_S_INPUT. I.e, user must
> explicitly select one (and only one) input.
>
> In my very humble opinion (and assuming I understand this discussion properly)
> I think that if there is no hardware support for streaming multiple
> inputs at the same time,
> it's not kernel job to "simulate it" and cycle through several inputs
> and several buffer queues.
Sorry, but I don't agree: some devices are clearly targeted to be used with
multiple inputs being cycled.
For example, this one [1]:
http://www.geovision.com.tw/PT/Prod_GV800.asp
has only 4 BT878 chips, but each one can switch up to 4 cameras, and this
very same card is used on several commercial solutions for surveillance.
As far as I know, the input switching should be commanded externally, as
the hardware doesn't do that automatically. Even so, it has a high-speed
switch, so it should be fine to do it at vertical refresh time.
Implementing support for it using VIDIOC_S_INPUT is a very poor solution,
as an ioctl call may happen after the vertical retrace, causing artifacts.
The proper solution would be for the Kernel to switch to the next input during
the IRQ handler. So, when a frame for input 0 is received, the driver should be
switching to the next active input as soon as possible, in order to avoid
artifacts.
[1] Sorry, I were unable to discover the English version of this specific page.
Regards,
Mauro
next prev parent reply other threads:[~2012-07-05 22:28 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-10 20:22 [GIT PULL FOR 3.6] V4L2 API cleanups Sakari Ailus
2012-06-11 7:50 ` Laurent Pinchart
2012-06-11 9:39 ` Sakari Ailus
2012-06-16 22:03 ` Laurent Pinchart
2012-06-17 7:54 ` Sakari Ailus
2012-06-18 10:53 ` Laurent Pinchart
2012-07-05 20:46 ` Mauro Carvalho Chehab
2012-07-06 8:51 ` Laurent Pinchart
2012-07-05 20:55 ` Mauro Carvalho Chehab
2012-07-05 21:21 ` Sakari Ailus
2012-07-05 21:31 ` Ezequiel Garcia
2012-07-05 22:27 ` Mauro Carvalho Chehab [this message]
2012-07-05 21:41 ` Mauro Carvalho Chehab
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=4FF614E5.6080602@redhat.com \
--to=mchehab@redhat.com \
--cc=elezegarcia@gmail.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@iki.fi \
/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).