From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from perceval.ideasonboard.com ([95.142.166.194]:58502 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753921Ab2APN5Q (ORCPT ); Mon, 16 Jan 2012 08:57:16 -0500 From: Laurent Pinchart To: Sakari Ailus Subject: Re: [PATCH 08/23] v4l: Image source control class Date: Mon, 16 Jan 2012 14:57:22 +0100 Cc: linux-media@vger.kernel.org, hverkuil@xs4all.nl, teturtia@gmail.com, dacohen@gmail.com, snjw23@gmail.com, andriy.shevchenko@linux.intel.com, t.stanislaws@samsung.com, tuukkat76@gmail.com, k.debski@gmail.com, riverful@gmail.com References: <4F0DFE92.80102@iki.fi> <1326317220-15339-8-git-send-email-sakari.ailus@iki.fi> In-Reply-To: <1326317220-15339-8-git-send-email-sakari.ailus@iki.fi> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201201161457.23258.laurent.pinchart@ideasonboard.com> Sender: linux-media-owner@vger.kernel.org List-ID: Hi Sakari, Thanks for the patch. On Wednesday 11 January 2012 22:26:45 Sakari Ailus wrote: > Add image source control class. This control class is intended to contain > low level controls which deal with control of the image capture process --- > the A/D converter in image sensors, for example. > > Signed-off-by: Sakari Ailus > --- > Documentation/DocBook/media/v4l/controls.xml | 112 > ++++++++++++++++++++ .../DocBook/media/v4l/vidioc-g-ext-ctrls.xml | > 6 + > drivers/media/video/v4l2-ctrls.c | 15 +++ > include/linux/videodev2.h | 11 ++ > 4 files changed, 144 insertions(+), 0 deletions(-) > > diff --git a/Documentation/DocBook/media/v4l/controls.xml > b/Documentation/DocBook/media/v4l/controls.xml index 3bc5ee8..467ace3 > 100644 > --- a/Documentation/DocBook/media/v4l/controls.xml > +++ b/Documentation/DocBook/media/v4l/controls.xml > @@ -3356,6 +3356,118 @@ interface and may change in the future. > > > > + > +
> + Image Source Control Reference > + > + > + Experimental > + > + This is an + linkend="experimental">experimental interface and may > + change in the future. > + > + > + > + The Image Source control class is intended for low-level > + control of image source devices such as image sensors. The > + devices feature an analogue to digital converter and a bus > + transmitter to transmit the image data out of the device. > + > + > + > + Image Source Control IDs > + > + > + > + > + > + > + > + > + > + > + ID > + Type > + align="left">Description + > + > + > + > + > + spanname="id">V4L2_CID_IMAGE_SOURCE_CLASS + > class > + > + > + The IMAGE_SOURCE class descriptor. > + > + > + spanname="id">V4L2_CID_IMAGE_SOURCE_VBLANK + > integer > + > + > + Vertical blanking. The idle > + preriod after every frame during which no image data is > + produced. The unit of vertical blanking is a line. Every > + line has length of the image width plus horizontal > + blanking at the pixel clock specified by struct > + v4l2_mbus_framefmt + />. > + > + > + spanname="id">V4L2_CID_IMAGE_SOURCE_HBLANK + > integer > + > + > + Horizontal blanking. The idle > + preriod after every line of image data during which no > + image data is produced. The unit of horizontal blanking is > + pixels. > + > + > + spanname="id">V4L2_CID_IMAGE_SOURCE_LINK_FREQ > + integer menu > + > + > + Image source's data bus frequency. > + Together with the media bus pixel code, bus type (clock > + cycles per sample), the data bus frequency defines the > + pixel clock. The > + frame rate can be calculated from the pixel clock, image > + width and height and horizontal and vertical blanking. The > + frame rate control is performed by selecting the desired > + horizontal and vertical blanking. The unit of this control > + is Hz. I think we're still missing an explanation of how those controls interact with each other, and how they should be used by userspace. > + > + > + > + spanname="id">V4L2_CID_IMAGE_SOURCE_ANALOGUE_GAIN try> + integer > + > + > + Analogue gain is gain affecting > + all colour components in the pixel matrix. The gain > + operation is performed in the analogue domain before A/D > + conversion. > + > + > + > + spanname="id">V4L2_CID_IMAGE_SOURCE_PIXEL_RATE > + 64-bit integer > + > + > + Pixel rate in the source pads of > + the subdev. This control is read-only and its unit is > + pixels / second. > + > + > + > + > + > +
> + > +
> + > > >