public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
To: Subash Patel <subashrp@gmail.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	linux-media <linux-media@vger.kernel.org>,
	Hans Verkuil <hverkuil@xs4all.nl>,
	Tuukka Toivonen <tuukka.toivonen@intel.com>,
	Sylwester Nawrocki <s.nawrocki@samsung.com>,
	Tomasz Stanislawski <t.stanislaws@samsung.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>
Subject: Re: [ANN] Meeting minutes of the Cambourne meeting
Date: Tue, 09 Aug 2011 18:52:37 +0300	[thread overview]
Message-ID: <4E4157C5.10303@maxwell.research.nokia.com> (raw)
In-Reply-To: <4E410342.3010502@gmail.com>

Subash Patel wrote:
> Hi Sakari,

Hi Subash,

> I have a point with the pixel clock. During discussion we found that
> pixel clock get/set is required for user space to do fine control over
> the frame-rate etc. What if the user sets the pixel array clock which is
> above the system/if bus clock? Suppose we are setting the pixel clock

The pixel array clock should be calculated by the driver based on CSI-2
bus frequency (user specified), lanes (from board data), binning,
skipping and crop. This is since there are typically limitations for its
value, and the sensor driver can come up with a "best value" for it,
based on the information above. Exactly how, that depends on the sensor
driver and the sensor.

So the pixel array clock is read-only for the user, and the frame rate
can then be chosen using the blanking configuration.

> (which user space sets) to higher rate at sensor array, but for some
> reason the bus cannot handle that rate (either low speed or loaded) or
> lower PCLK at say CSI2 interface is being set. Are we not going to loose
> data due to this? Also, there would be data validation overhead in
> driver on what is acceptable PCLK values for a particular sensor on an
> interface etc.

This is something that must be handled independently of the way the
sensor pixel clock is configured. Typically the limitation is on either
the bus frequency or the pixel rate on the bus.

This actually can be better avoided when the user has a chance to choose
the bus frequency explicitly rather than receive just something the
driver happens to produce based on frame rate and resolution settings.

> I am still not favoring user space controlling this, and wish driver
> decides this for a given frame-rate requested by the user space :)
> 
> Frame-rate   resolution  HSYNC  VSYNC  PCLK(array)  PCLK (i/f bus) ...

You can still do that, but it comes with limitations. Any fixed set of
the above parameters is very hardware and use case dependent.

> Let user space control only first two, and driver decide rest (PCLK can
> be different at different ISP h/w units though)

I'm definitely not against this. We do have drivers which use this kind
of interface already and some vendors do not even provide enough
information to write a driver for their sensor offering any other kind
of interface.

Cheers,

-- 
Sakari Ailus
sakari.ailus@maxwell.research.nokia.com

  reply	other threads:[~2011-08-09 15:52 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-26 14:47 [ANN] Agenda for the Cambourne meeting Laurent Pinchart
2011-07-26 14:59 ` Laurent Pinchart
2011-08-08 15:50 ` [ANN] Meeting minutes of " Laurent Pinchart
2011-08-09  9:52   ` Subash Patel
2011-08-09 15:52     ` Sakari Ailus [this message]
     [not found]     ` <CAF5T7d=h=BBhmFNs3EBPMGzKAJg_fciq=iB_GKQGDB+oiL+XAg@mail.gmail.com>
2011-08-09 15:59       ` Sakari Ailus
     [not found]         ` <CAF5T7dkXFBkD8CtKLR5UNOtmjMiOC3F6gfryMvM6=sfybQDDnA@mail.gmail.com>
2011-08-10 10:25           ` Sakari Ailus
2011-08-10  9:36       ` Tuukka Toivonen
2011-08-11  7:38   ` Sakari Ailus
2011-08-28 11:28   ` Sylwester Nawrocki
2011-08-29 13:08     ` Laurent Pinchart
2011-08-29 22:20       ` Guennadi Liakhovetski
2011-08-29 22:26         ` Laurent Pinchart
2011-08-29 22:38           ` Guennadi Liakhovetski
2011-08-30 13:41         ` Mark Brown
2011-08-30 13:56           ` Grant Likely
2011-08-30 14:00             ` Mark Brown
2011-08-30 14:03             ` Guennadi Liakhovetski
2011-08-30 15:18               ` Grant Likely
2011-08-30 15:42                 ` Laurent Pinchart
2011-08-30 15:46                   ` Mark Brown
2011-08-30 20:12                     ` Laurent Pinchart
2011-08-30 20:19                       ` Mark Brown
     [not found]                         ` <CACxGe6v0Tm8oz5+vcrdjzk3x0DdvBoyeqEv=aZv=XEA=Ev7WpQ@mail.gmail.com>
2011-08-30 20:37                           ` Laurent Pinchart
2011-08-30 20:39                             ` Mark Brown
2011-08-30 15:59                   ` Guennadi Liakhovetski

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=4E4157C5.10303@maxwell.research.nokia.com \
    --to=sakari.ailus@maxwell.research.nokia.com \
    --cc=hverkuil@xs4all.nl \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=s.nawrocki@samsung.com \
    --cc=subashrp@gmail.com \
    --cc=t.stanislaws@samsung.com \
    --cc=tuukka.toivonen@intel.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