From: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: "Aguirre Rodriguez, Sergio Alberto" <saaguirre@ti.com>,
"DongSoo(Nathaniel) Kim" <dongsoo.kim@gmail.com>,
"Hiremath, Vaibhav" <hvaibhav@ti.com>,
"Toivonen Tuukka.O (Nokia-D/Oulu)" <tuukka.o.toivonen@nokia.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"Nagalla, Hari" <hnagalla@ti.com>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Re: [REVIEW PATCH 11/14] OMAP34XXCAM: Add driver
Date: Thu, 05 Mar 2009 22:11:02 +0200 [thread overview]
Message-ID: <49B031D6.1070203@maxwell.research.nokia.com> (raw)
In-Reply-To: <200903042344.32820.hverkuil@xs4all.nl>
Hans Verkuil wrote:
>> Situation 1
>> - Instance1: Select sensor 1, and Do queue/dequeue of buffers.
>> - Instance2: If sensor 1 is currently selected, Begin loop requesting
>> internally collected OMAP3ISP statistics (with V4L2 private based IOCTLs)
>> for performing user-side Auto-exposure, Auto White Balance, Auto Focus
>> algorithms. And Adjust gains (with S_CTRL) accordingly on sensor as a
>> result.
>
> Question: if you have multiple sensors, and sensor 1 is selected, can you
> still get statistics from sensor 2? Or is all this still limited to the
> selected sensor? Just want to make sure I understand it all.
The ISP does have submodules and there are some ways of configuring the
data path inside the ISP, but in general just one sensor can be used at
a time in meaningful way.
Sergio, please correct me if I'm wrong: the only case I know that you
can do is to use the ISP normally (data flowing through pretty much all
the ISP modules) with one sensor and write the output of another sensor
directly to memory in one of the parallel/CCP2/CSI2 receivers.
I guess there's no use case for this, however. So just one user at a
time for the OMAP 3 ISP.
Another thing comes to my mind, though.
Sergio has posted earlier a patchset containing a driver for using the
ISP to process images from memory to memory. The ISP driver is used
roughly the same way as with the omap34xxcam and real sensors. The
interface towards the userspace offered by the driver, however, is
different, you probably saw it (preview and resizer wrappers).
My opinion has been that the memory-to-memory operation of the ISP
should also offer V4L2 interface. V4L2, however, doesn't support such
devices at the moment. The only differences that I can see is that
1. the input is a video buffer instead of sensor and
2. the source format needs to be specified somehow since the ISP can
also do format conversion. So it's output and input at the same time.
But if we had one video device per ISP, then memory-to-memory operation
would be just one... input or output or what? :)
Earlier we were thinking of creating one device node for it.
> That is probably what the driver should do, yes. The V4L2 spec leaves it up
> to the driver whether you can switch inputs while a capture is in progress.
> In this case I think it is perfectly reasonably for the driver to
> return -EBUSY.
Ok.
>> I'm not clear if this single-node idea is really helping the user to have
>> a simpler usage in Situation 1, which I feel will become pretty common on
>> this driver...
>
> The spec is pretty clear about this, and existing v4l2 applications also
> expect this behavior. Also, suppose you have two video nodes, what happens
> when you want to use the inactive node? How can you tell it is inactive?
open() succeeds.
Currently you can have just one device node using the ISP open.
omap34xxcam_open() calls isp_get() which fails if the ISP use count was
non-zero (means one).
Or did I misunderstood something?
--
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com
next prev parent reply other threads:[~2009-03-05 20:11 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5e9665e10903021848u328e0cd4m5186344be15b817@mail.gmail.com>
[not found] ` <19F8576C6E063C45BE387C64729E73940427BC9B86@dbde02.ent.ti.com>
2009-03-03 5:13 ` [REVIEW PATCH 11/14] OMAP34XXCAM: Add driver DongSoo(Nathaniel) Kim
2009-03-03 7:36 ` Hans Verkuil
2009-03-04 0:42 ` DongSoo(Nathaniel) Kim
2009-03-04 7:39 ` Hans Verkuil
2009-03-04 7:49 ` Tuukka.O Toivonen
2009-03-04 19:22 ` Sakari Ailus
2009-03-04 21:05 ` Hans Verkuil
2009-03-04 21:46 ` Aguirre Rodriguez, Sergio Alberto
2009-03-04 22:44 ` Hans Verkuil
2009-03-04 23:30 ` Aguirre Rodriguez, Sergio Alberto
2009-03-05 7:39 ` Hans Verkuil
2009-03-05 20:11 ` Sakari Ailus [this message]
2009-03-05 21:24 ` Hans Verkuil
2009-03-10 12:14 ` Sakari Ailus
2009-03-04 23:42 ` Trent Piepho
2009-03-05 2:25 ` hermann pitton
2009-03-03 7:38 ` Sakari Ailus
2009-03-10 13:34 Hans Verkuil
-- strict thread matches above, loose matches on Subject: below --
2009-03-04 8:12 Hans Verkuil
[not found] <Acl1IyQQvIDQejCAQ5O/QnkHIBmt3w==>
2009-01-13 2:03 ` Aguirre Rodriguez, Sergio Alberto
2009-01-13 7:24 ` Hans Verkuil
2009-02-06 2:26 ` DongSoo Kim
2009-02-11 4:00 ` DongSoo Kim
2009-02-12 7:09 ` Sakari Ailus
2009-02-12 7:52 ` DongSoo Kim
2009-02-13 9:31 ` Arun KS
2009-02-13 10:04 ` DongSoo(Nathaniel) Kim
2009-02-13 10:02 ` Sakari Ailus
2009-02-13 10:11 ` DongSoo(Nathaniel) Kim
[not found] <Aclb0Ghhhph2tRyARSuubB27tGfovg==>
2008-12-11 20:38 ` Aguirre Rodriguez, Sergio Alberto
2009-02-23 8:26 ` DongSoo(Nathaniel) Kim
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=49B031D6.1070203@maxwell.research.nokia.com \
--to=sakari.ailus@maxwell.research.nokia.com \
--cc=dongsoo.kim@gmail.com \
--cc=hnagalla@ti.com \
--cc=hvaibhav@ti.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=saaguirre@ti.com \
--cc=tuukka.o.toivonen@nokia.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