From: "Jean-Philippe François" <jp.francois@cynove.com>
To: "Karicheri, Muralidharan" <m-karicheri2@ti.com>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
"davinci-linux-open-source@linux.davincidsp.com"
<davinci-linux-open-source@linux.davincidsp.com>,
Muralidharan Karicheri <a0868495@dal.design.ti.com>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Re: mt9t031 (was RE: [PATCH] adding support for setting bus parameters in sub device)
Date: Thu, 11 Jun 2009 10:01:15 +0200 [thread overview]
Message-ID: <4A30B9CB.8030902@cynove.com> (raw)
In-Reply-To: <A69FA2915331DC488A831521EAE36FE40139A08E4F@dlee06.ent.ti.com>
Karicheri, Muralidharan a écrit :
>
>>> We need
>>> streaming capability in the driver. This is how our driver works
>>> with mt9t031 sensor
>>> raw-bus (10 bit)
>>> vpfe-capture ----------------- mt9t031 driver
>>> | |
>>> V V
>>> VPFE MT9T031
>>>
>>> VPFE hardware has internal timing and DMA controller to
>>> copy data frame by frame from the sensor output to SDRAM.
>>> The PCLK form the sensor is used to generate the internal
>>> timing.
>> So, what is missing in the driver apart from the ability to specify
>> a frame-rate?
>>
> [MK] Does the mt9t031 output one frame (snapshot) like in a camera or can it output frame continuously along with PCLK, Hsync and Vsync signals like in a video streaming device. VPFE capture can accept frames continuously from the sensor synchronized to PCLK, HSYNC and VSYNC and output frames to application using QBUF/DQBUF. In our implementation, we have timing parameters for the sensor to do streaming at various resolutions and fps. So application calls S_STD to set these timings. I am not sure if this is an acceptable way of implementing it. Any comments?
>
PCLK, HSYNC, VSYNC are generated by the CMOS sensor. I don't think you
can set the timings. Depending on sensor settings, pixel clock speed etc
.., the frame rate will vary.
You could perhaps play with the CMOS sensor registers so that when
settings a standard, the driver somehow set the various exposition
parameter and pll settings to get a specified framerate.
This will vary with each sensor and each platform (because of
pixelclock). More over, chances are that it will be conflicting with
other control.
For example if you set a fixed gain and autoexpo, some sensor will see
a drop in fps under low light conditions. I think this kind of
arbitration should be left to userspace.
Unless the sensor supports a specific standard, I don't think the driver
should try to make behind the scene modification to camera sensor
register in response to a S_STD ioctl.
JP François
> Thanks
>
> Murali
>
>> Thanks
>> Guennadi
>> ---
>> Guennadi Liakhovetski, Ph.D.
>> Freelance Open-Source Software Developer
>> http://www.open-technology.de/
>
> _______________________________________________
> Davinci-linux-open-source mailing list
> Davinci-linux-open-source@linux.davincidsp.com
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>
next prev parent reply other threads:[~2009-06-11 8:01 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 20:54 [PATCH] adding support for setting bus parameters in sub device m-karicheri2
2009-06-10 18:32 ` Guennadi Liakhovetski
2009-06-10 19:49 ` Hans Verkuil
2009-06-10 19:59 ` Guennadi Liakhovetski
2009-06-10 20:51 ` Hans Verkuil
2009-06-10 21:15 ` Karicheri, Muralidharan
2009-06-10 21:30 ` Guennadi Liakhovetski
2009-06-10 21:51 ` Hans Verkuil
2009-06-10 23:12 ` Guennadi Liakhovetski
2009-06-11 13:37 ` Karicheri, Muralidharan
2009-06-12 12:15 ` Guennadi Liakhovetski
2009-06-10 20:28 ` Karicheri, Muralidharan
2009-06-10 21:09 ` mt9t031 (was RE: [PATCH] adding support for setting bus parameters in sub device) Guennadi Liakhovetski
2009-06-10 21:29 ` Karicheri, Muralidharan
2009-06-10 21:37 ` Guennadi Liakhovetski
2009-06-10 21:45 ` Karicheri, Muralidharan
2009-06-10 23:13 ` Guennadi Liakhovetski
2009-06-11 15:00 ` Karicheri, Muralidharan
2009-06-11 15:58 ` Guennadi Liakhovetski
2009-06-11 16:30 ` Karicheri, Muralidharan
2009-06-11 8:01 ` Jean-Philippe François [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-06-11 8:35 Hans Verkuil
2009-06-11 9:13 ` Hans de Goede
2009-06-11 9:33 Hans Verkuil
2009-06-11 9:40 ` Hans de Goede
2009-06-11 14:43 ` Karicheri, Muralidharan
2009-06-11 10:39 Hans Verkuil
2009-06-11 14:40 ` Karicheri, Muralidharan
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=4A30B9CB.8030902@cynove.com \
--to=jp.francois@cynove.com \
--cc=a0868495@dal.design.ti.com \
--cc=davinci-linux-open-source@linux.davincidsp.com \
--cc=g.liakhovetski@gmx.de \
--cc=linux-media@vger.kernel.org \
--cc=m-karicheri2@ti.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