Re: [PATCH] [media] dvb: negative value assigned to unsigned int in CDRXD().

2012-03-06 Thread Dan Carpenter
On Wed, Mar 07, 2012 at 09:11:03AM +0530, santosh nayak wrote: > From: Santosh Nayak > > In CDRXD(), Negative number is assigned to unsigned variable > 'state->noise_cal.tdCal2. > > Members of 'SNoiseCal' should be 'signed short'. > In your changelogs could you please write something about how

Re: V4L2 MFC video decoding example application

2012-03-06 Thread Sachin Kamat
Hi Kamil, Thank you for this really cool app. Tested on Origen board for MPEG4 and H.264 streams and they work fine. Regards, Sachin On 06/03/2012, Kamil Debski wrote: > Hi, > > I would like to inform you that the example application for the MFC driver > has been prepared and was today released

[PATCH] [media] dvb: negative value assigned to unsigned int in CDRXD().

2012-03-06 Thread santosh nayak
From: Santosh Nayak In CDRXD(), Negative number is assigned to unsigned variable 'state->noise_cal.tdCal2. Members of 'SNoiseCal' should be 'signed short'. Signed-off-by: Santosh Nayak --- drivers/media/dvb/frontends/drxd_hard.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)

Re: My Microdia (SN9C201) webcam doesn't work properly in Linux anymore

2012-03-06 Thread Theodore Kilgore
On Wed, 7 Mar 2012, Xavion wrote: > Hi Hans > > >> The good news is that the nasty errors I was getting yesterday have > >> magically disappeared overnight! > > > > That is likely because the scene you're pointing at (or the lighting > > conditions) have changed, not all pictures compress equal

Re: [PATCH v3 5/5] v4l: Add driver for Micron MT9M032 camera sensor

2012-03-06 Thread Sakari Ailus
Hi Laurent, Thanks for the patch. I have a few comments below. Just one fairly general question: locking. Shouldn't you serialise accesses to sensor registers and your data, possibly by using a mutex? Laurent Pinchart wrote: > From: Martin Hostettler > > The MT9M032 is a parallel 1.6MP sensor

Re: My Microdia (SN9C201) webcam doesn't work properly in Linux anymore

2012-03-06 Thread Xavion
Hi Hans >> The good news is that the nasty errors I was getting yesterday have >> magically disappeared overnight! > > That is likely because the scene you're pointing at (or the lighting > conditions) have changed, not all pictures compress equally well > with JPEG. If you point the camera at the

IR mce remote

2012-03-06 Thread Issa Gorissen
Hi, I'm having this trouble with a MCE USB remote from SMK Manufacturing (USB ID 0609:0334). Kernel version is 3.1.9 on opensuse 12.1 32bit. The remote itself is a Sony RM-MCE20E (RC6 compatible). But problems also arise with the Hauppauge I've got. Whenever I push the same button rapidly, it wil

[PATCH 2/2] [media] dib9000: implement error handling for DibAcquireLock

2012-03-06 Thread Alexey Khoroshilov
DibAcquireLock() is implemented as mutex_lock_interruptible() but the driver does not handle unsuccessful locking. As a result it may lead to unlock of an unheld mutex. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/media/dvb/fronte

[PATCH 1/2] [media] dib9000: fix explicit lock mismatches

2012-03-06 Thread Alexey Khoroshilov
There are several error paths, where &state->platform.risc.mem_mbx_lock is not unlocked. The patch fixes it. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/media/dvb/frontends/dib9000.c |6 +- 1 files changed, 5 insertions(+)

A second easycap driver implementation

2012-03-06 Thread Ezequiel García
Hello, After some research on v4l2 and videbuf2, and considering that easycap driver is pretty outdated I've decided to start writing a new driver from scratch. I am using the excellent vivi driver and some usb video capture drivers as a starting point. And of course, I'm using the current easyca

A second easycap driver implementation

2012-03-06 Thread Ezequiel García
Hello, After some research on v4l2 and videbuf2, and considering that easycap driver is pretty outdated I've decided to start writing a new driver from scratch. I am using the excellent vivi driver and some usb video capture drivers as a starting point. And of course, I'm using the current easyca

Technotrend TT-Connect CT 3650 and dvb_ca

2012-03-06 Thread Johan Henæs
Hello Everyone ! I have three DVB-C devices of the type mentioned, connected to my mythtv-server which have been working great for a long time. As my cable provider now are planning to start encrypting all channels, I have bought a Xcrypt CAM module as needed. I soon realised that I needed to

Re: [PATCH v3 4/5] mt9p031: Use generic PLL setup code

2012-03-06 Thread Sakari Ailus
Thanks for the patch, Laurent! Laurent Pinchart wrote: > Compute the PLL parameters at runtime using the generic Aptina PLL > helper. > > Signed-off-by: Laurent Pinchart > --- > drivers/media/video/Kconfig |1 + > drivers/media/video/mt9p031.c | 62 > ++-

Re: [PATCH v3 2/5] mt9p031: Remove unused xskip and yskip fields in struct mt9p031

2012-03-06 Thread Sakari Ailus
Hi Laurent, Thanks for the patch. Laurent Pinchart wrote: > The fields are set but never used, remove them. > > Signed-off-by: Laurent Pinchart > --- > drivers/media/video/mt9p031.c |4 > 1 files changed, 0 insertions(+), 4 deletions(-) Reviewed-by: Sakari Ailus -- Sakari Ailus sa

Re: [PATCH v4 04/34] v4l: VIDIOC_SUBDEV_S_SELECTION and VIDIOC_SUBDEV_G_SELECTION IOCTLs

2012-03-06 Thread Sakari Ailus
Hi Laurent, Laurent Pinchart wrote: > On Tuesday 06 March 2012 21:55:52 Sakari Ailus wrote: >> Tomasz Stanislawski wrote: >>> On 03/06/2012 05:27 PM, Laurent Pinchart wrote: On Tuesday 06 March 2012 17:50:36 Sakari Ailus wrote: > On Mon, Mar 05, 2012 at 11:59:22AM +0100, Laurent Pinchart

Re: [PATCH v4 04/34] v4l: VIDIOC_SUBDEV_S_SELECTION and VIDIOC_SUBDEV_G_SELECTION IOCTLs

2012-03-06 Thread Laurent Pinchart
On Tuesday 06 March 2012 21:55:52 Sakari Ailus wrote: > Tomasz Stanislawski wrote: > > On 03/06/2012 05:27 PM, Laurent Pinchart wrote: > >> On Tuesday 06 March 2012 17:50:36 Sakari Ailus wrote: > >>> On Mon, Mar 05, 2012 at 11:59:22AM +0100, Laurent Pinchart wrote: > On Friday 02 March 2012 19

Re: [PATCH v4 04/34] v4l: VIDIOC_SUBDEV_S_SELECTION and VIDIOC_SUBDEV_G_SELECTION IOCTLs

2012-03-06 Thread Sakari Ailus
Hi Tomasz, Tomasz Stanislawski wrote: > On 03/06/2012 05:27 PM, Laurent Pinchart wrote: >> On Tuesday 06 March 2012 17:50:36 Sakari Ailus wrote: >>> On Mon, Mar 05, 2012 at 11:59:22AM +0100, Laurent Pinchart wrote: On Friday 02 March 2012 19:30:12 Sakari Ailus wrote: > Add support for VID

cron job: media_tree daily build: WARNINGS

2012-03-06 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date:Tue Mar 6 19:00:18 CET 2012 git hash:e8ca6d20a65d9d94693a0ed99b12d95b882dc859 gcc version: i686-linux-gcc (GCC

Re: rtl2830: __udivdi3 undefined

2012-03-06 Thread Geert Uytterhoeven
On Sun, Mar 4, 2012 at 23:19, Gianluca Gennari wrote: > Probably the best solution is to use div_u64. > The following patch fixed the warning on my 32 bit system. > > Signed-off-by: Gianluca Gennari Thanks, that fixes it (div_u64() is do_div() on 32-bit). Acked-by: Geert Uytterhoeven > --- >

Lockup on second streamon with omap3-isp

2012-03-06 Thread jean-philippe francois
Hi, I have a custom dm3730 board, running a 3.2.0 kernel. The board is equipped with an aptina MT9J sensor on parallel interface. Whenever I try to run yavta twice, the second run leads to a soft lockup in omap3isp_video_queue_streamon (see below) What can I do / test to debug this issue ? # g

Re: [PATCH v5 23/35] omap3isp: Assume media_entity_pipeline_start may fail

2012-03-06 Thread Laurent Pinchart
Hi Sakari, Thanks for the patch. On Tuesday 06 March 2012 18:33:04 Sakari Ailus wrote: > Since media_entity_pipeline_start() now does link validation, it may > actually fail. Perform the error handling. > > Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart -- Regards, Laurent Pinchart

Re: [PATCH v5 09/35] v4l: Add subdev selections documentation

2012-03-06 Thread Laurent Pinchart
Hi Sakari, Thanks for the patch. On Tuesday 06 March 2012 18:32:50 Sakari Ailus wrote: > Add documentation for V4L2 subdev selection API. This changes also > experimental V4L2 subdev API so that scaling now works through selection API > only. > > Signed-off-by: Sakari Ailus Acked-by: Laurent P

Re: [PATCH v5 08/35] v4l: Add subdev selections documentation: svg and dia files

2012-03-06 Thread Laurent Pinchart
Hi Sakari, Thanks for the patch. On Tuesday 06 March 2012 18:32:49 Sakari Ailus wrote: > Add svga and dia files for V4L2 subdev selections documentation. > > Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line

Re: [PATCH v4 04/34] v4l: VIDIOC_SUBDEV_S_SELECTION and VIDIOC_SUBDEV_G_SELECTION IOCTLs

2012-03-06 Thread Tomasz Stanislawski
On 03/06/2012 05:27 PM, Laurent Pinchart wrote: > On Tuesday 06 March 2012 17:50:36 Sakari Ailus wrote: >> On Mon, Mar 05, 2012 at 11:59:22AM +0100, Laurent Pinchart wrote: >>> On Friday 02 March 2012 19:30:12 Sakari Ailus wrote: Add support for VIDIOC_SUBDEV_S_SELECTION and VIDIOC_SUBDEV_G_SE

[PATCH v5 03/35] vivi: Add an integer menu test control

2012-03-06 Thread Sakari Ailus
Add an integer menu test control for the vivi driver. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- drivers/media/video/vivi.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c inde

[PATCH v5 01/35] v4l: Introduce integer menu controls

2012-03-06 Thread Sakari Ailus
Create a new control type called V4L2_CTRL_TYPE_INTEGER_MENU. Integer menu controls are just like menu controls but the menu items are 64-bit integers rather than strings. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart Tested-by: Sylwester Nawrocki --- drivers/media/video/v4l2-ctrls.c

[PATCH v5 10/35] v4l: Mark VIDIOC_SUBDEV_G_CROP and VIDIOC_SUBDEV_S_CROP obsolete

2012-03-06 Thread Sakari Ailus
These two IOCTLS are obsoleted by VIDIOC_SUBDEV_G_SELECTION and VIDIOC_SUBDEV_S_SELECTION. Mark them obsolete. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- Documentation/DocBook/media/v4l/compat.xml |7 +++ .../DocBook/media/v4l/vidioc-subdev-g-crop.xml |9

[PATCH v5 15/35] media: Add link_validate() op to check links to the sink pad

2012-03-06 Thread Sakari Ailus
The purpose of the link_validate() op is to allow an entity driver to ensure that the properties of the pads at the both ends of the link are suitable for starting the pipeline. link_validate is called on sink pads on active links which belong to the active part of the graph. Signed-off-by: Sakari

[PATCH v5 16/35] v4l: Improve sub-device documentation for pad ops

2012-03-06 Thread Sakari Ailus
Document that format related configuration is done through pad ops in case the driver does use the media framework. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- Documentation/video4linux/v4l2-framework.txt |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --

[PATCH v5 13/35] v4l: Document raw bayer 4CC codes

2012-03-06 Thread Sakari Ailus
Document guidelines how 4CC codes should be named. Only raw bayer is included currently. Other formats should be documented later on. Signed-off-by: Sakari Ailus --- Documentation/video4linux/4CCs.txt | 32 1 files changed, 32 insertions(+), 0 deletions(-) cre

[PATCH v5 17/35] v4l: Implement v4l2_subdev_link_validate()

2012-03-06 Thread Sakari Ailus
v4l2_subdev_link_validate() is the default op for validating a link. In V4L2 subdev context, it is used to call a pad op which performs the proper link check without much extra work. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- Documentation/video4linux/v4l2-framework.txt | 12 +

[PATCH v5 07/35] v4l: Support s_crop and g_crop through s/g_selection

2012-03-06 Thread Sakari Ailus
Fall back to s_selection if s_crop isn't implemented by a driver. Same for g_selection / g_crop. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- drivers/media/video/v4l2-subdev.c | 37 +++-- 1 files changed, 35 insertions(+), 2 deletions(-) diff --g

[PATCH v5 11/35] v4l: Image source control class

2012-03-06 Thread Sakari Ailus
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 | 86 +++

[PATCH v5 06/35] v4l: Check pad number in get try pointer functions

2012-03-06 Thread Sakari Ailus
Unify functions to get try pointers and validate the pad number accessed by the user. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- include/media/v4l2-subdev.h | 30 +- 1 files changed, 13 insertions(+), 17 deletions(-) diff --git a/include/media/v4l2

[PATCH v5 24/35] omap3isp: Add lane configuration to platform data

2012-03-06 Thread Sakari Ailus
Add lane configuration (order of clock and data lane) to platform data on both CCP2 and CSI-2. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- drivers/media/video/omap3isp/ispcsiphy.h | 15 ++- include/media/omap3isp.h | 25 + 2

[PATCH v5 12/35] v4l: Image processing control class

2012-03-06 Thread Sakari Ailus
Add control class for image processing controls. The control class deals with controls processing image, for example digital gain or noise filtering, which can be present in any part of the pipeline. Signed-off-by: Sakari Ailus --- Documentation/DocBook/media/v4l/controls.xml | 82 ++

[PATCH v5 14/35] v4l: Add DPCM compressed raw bayer pixel formats

2012-03-06 Thread Sakari Ailus
Add three other colour orders for 10-bit to 8-bit DPCM compressed raw bayer pixel formats. Signed-off-by: Sakari Ailus --- Documentation/DocBook/media/v4l/pixfmt-srggb10.xml |2 +- .../DocBook/media/v4l/pixfmt-srggb10dpcm8.xml | 29 Documentation/DocBook/media/v4l

[PATCH v5 05/35] v4l: vdev_to_v4l2_subdev() should have return type "struct v4l2_subdev *"

2012-03-06 Thread Sakari Ailus
vdev_to_v4l2_subdev() should return struct v4l2_subdev *, not void *. Fix this. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- include/media/v4l2-subdev.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subde

[PATCH v5 22/35] omap3isp: Move setting constaints above media_entity_pipeline_start

2012-03-06 Thread Sakari Ailus
The clock rate for l3_ick will soon be read during pipeline validation which is now part of media_entity_pipeline_start(). For that reason we set constraints earlier on. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- drivers/media/video/omap3isp/ispvideo.c | 14 +++--- 1 f

[PATCH v5 21/35] omap3: add definition for CONTROL_CAMERA_PHY_CTRL

2012-03-06 Thread Sakari Ailus
This register is available only in OMAP3630. The original patch was submitted by Vimarsh Zutshi. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- arch/arm/mach-omap2/control.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/control.h b/arc

[PATCH v5 23/35] omap3isp: Assume media_entity_pipeline_start may fail

2012-03-06 Thread Sakari Ailus
Since media_entity_pipeline_start() now does link validation, it may actually fail. Perform the error handling. Signed-off-by: Sakari Ailus --- drivers/media/video/omap3isp/ispvideo.c | 52 -- 1 files changed, 28 insertions(+), 24 deletions(-) diff --git a/drivers/

[PATCH v5 32/35] omap3isp: Add resizer data rate configuration to resizer_link_validate

2012-03-06 Thread Sakari Ailus
The configuration of many other blocks depend on resizer maximum data rate. Get the value from resizer at link validation time. Signed-off-by: Sakari Ailus --- drivers/media/video/omap3isp/ispresizer.c | 15 drivers/media/video/omap3isp/ispvideo.c | 54

[PATCH v5 30/35] omap3isp: Move CCDC link validation to ccdc_link_validate()

2012-03-06 Thread Sakari Ailus
Perform CCDC link validation in ccdc_link_validate() instead of isp_video_validate_pipeline(). Also perform maximum data rate check in isp_video_check_external_subdevs(). Signed-off-by: Sakari Ailus --- drivers/media/video/omap3isp/ispccdc.c | 65 + drivers/media/video/oma

[PATCH v5 20/35] omap3isp: Move definitions required by board code under include/media.

2012-03-06 Thread Sakari Ailus
XCLK definitions are often required by the board code. Move them to public include file. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- drivers/media/video/omap3isp/isp.h |4 include/media/omap3isp.h |4 2 files changed, 4 insertions(+), 4 deletions(-) d

[PATCH v5 29/35] omap3isp: Default link validation for ccp2, csi2, preview and resizer

2012-03-06 Thread Sakari Ailus
Use default link validation for ccp2, csi2, preview and resizer. On ccp2, csi2 and ccdc we also collect information on external subdevs as one may be connected to those entities. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- drivers/media/video/omap3isp/ispccp2.c|1 + drive

[PATCH v5 26/35] omap3isp: Add information on external subdev to struct isp_pipeline

2012-03-06 Thread Sakari Ailus
Add pointer to external subdev, pixel rate of the external subdev and bpp of the format to struct isp_pipeline. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- drivers/media/video/omap3isp/ispvideo.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/m

[PATCH v5 27/35] omap3isp: Introduce isp_video_check_external_subdevs()

2012-03-06 Thread Sakari Ailus
isp_video_check_external_subdevs() will retrieve external subdev's bits-per-pixel and pixel rate for the use of other ISP subdevs at streamon time. isp_video_check_external_subdevs() is called after pipeline validation. Signed-off-by: Sakari Ailus --- drivers/media/video/omap3isp/ispvideo.c |

[PATCH v5 28/35] omap3isp: Use external rate instead of vpcfg

2012-03-06 Thread Sakari Ailus
From: Sakari Ailus Access pipe->external_rate instead of isp_ccdc.vpcfg.pixelclk. Also remove means to set the value for isp_ccdc_vpcfg.pixelclk. Signed-off-by: Sakari Ailus --- drivers/media/video/omap3isp/isp.c | 14 -- drivers/media/video/omap3isp/isp.h |1 - dri

[PATCH v5 33/35] omap3isp: Find source pad from external entity

2012-03-06 Thread Sakari Ailus
No longer assume pad number 0 is the source pad of the external entity. Find the source pad from the external entity and use it instead. Signed-off-by: Sakari Ailus --- drivers/media/video/omap3isp/isp.c | 13 - 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/driver

[PATCH v5 31/35] omap3isp: Configure CSI-2 phy based on platform data

2012-03-06 Thread Sakari Ailus
Configure CSI-2 phy based on platform data in the ISP driver. For that, the new V4L2_CID_IMAGE_SOURCE_PIXEL_RATE control is used. Previously the same was configured from the board code. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- drivers/media/video/omap3isp/isp.h |3 -

[PATCH v5 35/35] rm680: Add camera init

2012-03-06 Thread Sakari Ailus
From: Sakari Ailus This currently introduces an extra file to the arch/arm/mach-omap2 directory: board-rm680-camera.c. Keeping the device tree in mind, the context of the file could be represented as static data with one exception: the external clock to the sensor. This external clock is provide

[PATCH v5 18/35] v4l: Allow changing control handler lock

2012-03-06 Thread Sakari Ailus
Allow choosing the lock used by the control handler. This may be handy sometimes when a driver providing multiple subdevs does not want to use several locks to serialise its functions. Signed-off-by: Sakari Ailus --- drivers/media/video/adp1653.c|8 +++--- drivers/media/video/v4l2-ctrls.

[PATCH v5 09/35] v4l: Add subdev selections documentation

2012-03-06 Thread Sakari Ailus
Add documentation for V4L2 subdev selection API. This changes also experimental V4L2 subdev API so that scaling now works through selection API only. Signed-off-by: Sakari Ailus --- Documentation/DocBook/media/Makefile |4 +- Documentation/DocBook/media/v4l/compat.xml |

[PATCH v5 25/35] omap3isp: Collect entities that are part of the pipeline

2012-03-06 Thread Sakari Ailus
Collect entities which are part of the pipeline into a single bit mask. Signed-off-by: Sakari Ailus --- drivers/media/video/omap3isp/ispvideo.c |9 + drivers/media/video/omap3isp/ispvideo.h |1 + 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/

[PATCH v5 19/35] omap3isp: Support additional in-memory compressed bayer formats

2012-03-06 Thread Sakari Ailus
This also prevents accessing NULL pointer in csi2_try_format(). Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- drivers/media/video/omap3isp/ispvideo.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/omap3isp/ispvideo.c b/dri

[PATCH v5 02/35] v4l: Document integer menu controls

2012-03-06 Thread Sakari Ailus
Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- Documentation/DocBook/media/v4l/compat.xml | 10 + Documentation/DocBook/media/v4l/v4l2.xml |6 +++ .../DocBook/media/v4l/vidioc-queryctrl.xml | 39 +++- 3 files changed, 53 insertion

[PATCH v5 04/35] v4l: VIDIOC_SUBDEV_S_SELECTION and VIDIOC_SUBDEV_G_SELECTION IOCTLs

2012-03-06 Thread Sakari Ailus
Add support for VIDIOC_SUBDEV_S_SELECTION and VIDIOC_SUBDEV_G_SELECTION IOCTLs. They replace functionality provided by VIDIOC_SUBDEV_S_CROP and VIDIOC_SUBDEV_G_CROP IOCTLs and also add new functionality (composing). VIDIOC_SUBDEV_G_CROP and VIDIOC_SUBDEV_S_CROP continue to be supported. Signed-of

[PATCH v5 0/35] V4L2 subdev and sensor control changes, SMIA++ driver and N9 camera board code

2012-03-06 Thread Sakari Ailus
Hi everyone, This the fifth version of my patchset that contains: - Integer menu controls [2], - Selection IOCTL for subdevs [3], - Sensor control changes [5,7], - link_validate() media entity and V4L2 subdev pad ops, - OMAP 3 ISP driver improvements [4], - SMIA++ sensor driver, - rm680/rm696 boa

[PATCH v3 4/5] mt9p031: Use generic PLL setup code

2012-03-06 Thread Laurent Pinchart
Compute the PLL parameters at runtime using the generic Aptina PLL helper. Signed-off-by: Laurent Pinchart --- drivers/media/video/Kconfig |1 + drivers/media/video/mt9p031.c | 62 ++--- 2 files changed, 28 insertions(+), 35 deletions(-) diff --git a/

[PATCH v3 2/5] mt9p031: Remove unused xskip and yskip fields in struct mt9p031

2012-03-06 Thread Laurent Pinchart
The fields are set but never used, remove them. Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9p031.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/media/video/mt9p031.c b/drivers/media/video/mt9p031.c index dd937df..52dd9f8 100644 --- a/drivers/

[PATCH v3 5/5] v4l: Add driver for Micron MT9M032 camera sensor

2012-03-06 Thread Laurent Pinchart
From: Martin Hostettler The MT9M032 is a parallel 1.6MP sensor from Micron controlled through I2C. The driver creates a V4L2 subdevice. It currently supports cropping, gain, exposure and v/h flipping controls in monochrome mode with an external pixel clock. Signed-off-by: Martin Hostettler [Lo

[PATCH v3 3/5] v4l: Aptina-style sensor PLL support

2012-03-06 Thread Laurent Pinchart
Add a generic helper function to compute PLL parameters for PLL found in several Aptina sensors. Signed-off-by: Laurent Pinchart Acked-by: Sakari Ailus --- drivers/media/video/Kconfig |3 + drivers/media/video/Makefile |4 + drivers/media/video/aptina-pll.c | 174 +

[PATCH v3 1/5] mt9p031: Remove duplicate media/v4l2-subdev.h include

2012-03-06 Thread Laurent Pinchart
From: Danny Kukawka drivers/media/video/mt9p031.c included 'media/v4l2-subdev.h' twice, remove the duplicate. Signed-off-by: Danny Kukawka Acked-by: Laurent Pinchart --- drivers/media/video/mt9p031.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/

[PATCH v3 0/5] MT9M032 and MT9P031 sensor patches

2012-03-06 Thread Laurent Pinchart
Hi, I've missed a 64-bit division issue in v2. Here's a v3 that fixes that. Sorry for the noise. Danny Kukawka (1): mt9p031: Remove duplicate media/v4l2-subdev.h include Laurent Pinchart (3): mt9p031: Remove unused xskip and yskip fields in struct mt9p031 v4l: Aptina-style sensor PLL suppo

Re: [PATCH v4 04/34] v4l: VIDIOC_SUBDEV_S_SELECTION and VIDIOC_SUBDEV_G_SELECTION IOCTLs

2012-03-06 Thread Laurent Pinchart
On Tuesday 06 March 2012 17:50:36 Sakari Ailus wrote: > On Mon, Mar 05, 2012 at 11:59:22AM +0100, Laurent Pinchart wrote: > > On Friday 02 March 2012 19:30:12 Sakari Ailus wrote: > > > Add support for VIDIOC_SUBDEV_S_SELECTION and VIDIOC_SUBDEV_G_SELECTION > > > IOCTLs. They replace functionality p

[PATCH v2 2/5] mt9p031: Remove unused xskip and yskip fields in struct mt9p031

2012-03-06 Thread Laurent Pinchart
The fields are set but never used, remove them. Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9p031.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/media/video/mt9p031.c b/drivers/media/video/mt9p031.c index dd937df..52dd9f8 100644 --- a/drivers/

[PATCH v2 3/5] v4l: Aptina-style sensor PLL support

2012-03-06 Thread Laurent Pinchart
Add a generic helper function to compute PLL parameters for PLL found in several Aptina sensors. Signed-off-by: Laurent Pinchart Acked-by: Sakari Ailus --- drivers/media/video/Kconfig |3 + drivers/media/video/Makefile |4 + drivers/media/video/aptina-pll.c | 174 +

[PATCH v2 4/5] mt9p031: Use generic PLL setup code

2012-03-06 Thread Laurent Pinchart
Compute the PLL parameters at runtime using the generic Aptina PLL helper. Signed-off-by: Laurent Pinchart --- drivers/media/video/Kconfig |1 + drivers/media/video/mt9p031.c | 62 ++--- 2 files changed, 28 insertions(+), 35 deletions(-) diff --git a/

[PATCH v2 5/5] v4l: Add driver for Micron MT9M032 camera sensor

2012-03-06 Thread Laurent Pinchart
From: Martin Hostettler The MT9M032 is a parallel 1.6MP sensor from Micron controlled through I2C. The driver creates a V4L2 subdevice. It currently supports cropping, gain, exposure and v/h flipping controls in monochrome mode with an external pixel clock. Signed-off-by: Martin Hostettler [Lo

[PATCH v2 1/5] mt9p031: Remove duplicate media/v4l2-subdev.h include

2012-03-06 Thread Laurent Pinchart
From: Danny Kukawka drivers/media/video/mt9p031.c included 'media/v4l2-subdev.h' twice, remove the duplicate. Signed-off-by: Danny Kukawka Acked-by: Laurent Pinchart --- drivers/media/video/mt9p031.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/

[PATCH v2 0/5] MT9M032 and MT9P031 sensor patches

2012-03-06 Thread Laurent Pinchart
Hi, Here's the second version of the MT9M032 and MT9P031 sensor patches for v3.4. Compared to v1, only patch 5/5 has been changed to incorporate Sakari's comments. I've modified the exposure control to use line units instead of microseconds, renamed various constants to mimic the MT9P031 driver a

Re: [PATCH 5/5] v4l: Add driver for Micron MT9M032 camera sensor

2012-03-06 Thread Sakari Ailus
Hi Laurent, On Tue, Mar 06, 2012 at 05:08:01PM +0100, Laurent Pinchart wrote: ... > > > +struct mt9m032 { > > > + struct v4l2_subdev subdev; > > > + struct media_pad pad; > > > + struct mt9m032_platform_data *pdata; > > > + > > > + struct v4l2_ctrl_handler ctrls; > > > + struct { > > > + s

Re: [PATCH] ivtv: Fix build warning

2012-03-06 Thread Larry Finger
On 03/06/2012 07:29 AM, Danny Kukawka wrote: Am 04.03.2012 19:25, schrieb Larry Finger: In driver ivtv, there is a mismatch between the type of the radio module parameter and the storage variable, which leads to the following warning: CC [M] drivers/media/video/ivtv/ivtv-driver.o drivers/m

Re: [PATCH 5/5] v4l: Add driver for Micron MT9M032 camera sensor

2012-03-06 Thread Laurent Pinchart
Hi Sakari, Thanks for the review. On Tuesday 06 March 2012 17:04:04 Sakari Ailus wrote: > On Tue, Mar 06, 2012 at 01:09:46PM +0100, Laurent Pinchart wrote: > > From: Martin Hostettler > > > > The MT9M032 is a parallel 1.6MP sensor from Micron controlled through I2C. > > > > The driver creates

Re: [PATCH v4 04/34] v4l: VIDIOC_SUBDEV_S_SELECTION and VIDIOC_SUBDEV_G_SELECTION IOCTLs

2012-03-06 Thread Sakari Ailus
On Mon, Mar 05, 2012 at 11:59:22AM +0100, Laurent Pinchart wrote: > Hi Sakari, > > Thanks for the patch. > > On Friday 02 March 2012 19:30:12 Sakari Ailus wrote: > > Add support for VIDIOC_SUBDEV_S_SELECTION and VIDIOC_SUBDEV_G_SELECTION > > IOCTLs. They replace functionality provided by VIDIOC_S

V4L2 MFC video decoding example application

2012-03-06 Thread Kamil Debski
Hi, I would like to inform you that the example application for the MFC driver has been prepared and was today released to the open source. The application demonstrates how to setup and handle video stream decoding. It uses MFC for video decoding and FIMC for post processing (color conversion a

Re: [PATCH v4 08/34] v4l: Add subdev selections documentation: svg and dia files

2012-03-06 Thread Sakari Ailus
On Mon, Mar 05, 2012 at 12:07:30PM +0100, Laurent Pinchart wrote: > Hi Sakari, > > Thanks for the patch. This version is more readable. > > What about also making the red lines dotted/dashed ? Done. -- Sakari Ailus e-mail: sakari.ai...@iki.fi jabber/XMPP/Gmail: sai...@retiisi.org.uk -- To

Re: [PATCH 5/5] v4l: Add driver for Micron MT9M032 camera sensor

2012-03-06 Thread Sakari Ailus
Hi Laurent, Thanks for the patch. On Tue, Mar 06, 2012 at 01:09:46PM +0100, Laurent Pinchart wrote: > From: Martin Hostettler > > The MT9M032 is a parallel 1.6MP sensor from Micron controlled through I2C. > > The driver creates a V4L2 subdevice. It currently supports cropping, gain, > exposure

[PATCH V2]NEXT:drivers:staging:media Fix comments and some typos in staging/media/*

2012-03-06 Thread Justin P. Mattock
From: "Justin P. Mattock" linux-next: I like to spend some time reading code, in doing so I have found some typos in some of the comments. The patch below fixes what I have found. Signed-off-by: Justin P. Mattock --- drivers/staging/media/Kconfig |2 +- drivers/staging/media

[PATCH 2/2] as102: set optimal eLNA config values for each device

2012-03-06 Thread Gianluca Gennari
Ryley and me tested several eLNA configuration values with both a rooftop and a portable antenna. Ryley fuond out that the best value for his Elgato stick is indeed the current default value 0xC0. Instead, my stick is not capable of tuning VHF channels with 0xC0. With 0x80, VHF works but the tune

[PATCH 1/2] as102: add __packed attribute to structs defined inside packed structs

2012-03-06 Thread Gianluca Gennari
This patch fixes a regression in kernel 3.3 due to this patch: http://patchwork.linuxtv.org/patch/8332/ That patch changes "#pragma pack(1)" with "__packed" attributes, but it is not complete. In fact, in the as102 driver there are a lot of structs/unions defined inside other structs/unions. When

[PATCH 0/2] as102: fix regression in kernel 3.3

2012-03-06 Thread Gianluca Gennari
When I first tried the as102 driver in the 3.3 kernel, I was pleased to notice that finally my stick was able to tune VHF channels. It never worked in VHF even with the original Kernellabs driver. But a few days ago a linux user from Melbourne, Ryley, contacted me to let me know he had a completel

RE: mx3-camera

2012-03-06 Thread Alex Gershgorin
From: Alex Gershgorin Sent: Tuesday, March 06, 2012 3:22 PM To: Guennadi Liakhovetski Cc: linux-ker...@vger.kernel.org; Linux Media Mailing List; Sascha Hauer Subject: RE: mx3-camera Thanks Guennadi, >Hi Alex >(adding v4l and Sascha to CC) >On Tue, 6 M

RE: mx3-camera

2012-03-06 Thread Guennadi Liakhovetski
On Tue, 6 Mar 2012, Alex Gershgorin wrote: > Thanks Guennadi, > > >Hi Alex > > >(adding v4l and Sascha to CC) > > >On Tue, 6 Mar 2012, Alex Gershgorin wrote: > > > Hi Guennadi, > > > > I'm working on I.MX35 PDK platform with use 3.3.0-rc6 version of the Linux > > Kernel. > > Here is my Kern

Re: mx3-camera

2012-03-06 Thread Fabio Estevam
On Tue, Mar 6, 2012 at 10:22 AM, Alex Gershgorin wrote: > In i.MX35 (arch/arm/mach-imx/clock-imx35.c) it looks like this: > > _REGISTER_CLOCK(NULL, "csi", csi_clk) Yes, I will submit a patch to fix this. Regards, Fabio Estevam -- To unsubscribe from this list: send the line "unsubscribe linux-

Re: [PATCH] ivtv: Fix build warning

2012-03-06 Thread Danny Kukawka
Am 04.03.2012 19:25, schrieb Larry Finger: > In driver ivtv, there is a mismatch between the type of the radio module > parameter > and the storage variable, which leads to the following warning: > > CC [M] drivers/media/video/ivtv/ivtv-driver.o > drivers/media/video/ivtv/ivtv-driver.c: In fun

RE: mx3-camera

2012-03-06 Thread Alex Gershgorin
Thanks Guennadi, >Hi Alex >(adding v4l and Sascha to CC) >On Tue, 6 Mar 2012, Alex Gershgorin wrote: > Hi Guennadi, > > I'm working on I.MX35 PDK platform with use 3.3.0-rc6 version of the Linux > Kernel. > Here is my Kernel boot message > > "Linux video capture interface: v2.00 > mx3-camer

Re: mx3-camera

2012-03-06 Thread Guennadi Liakhovetski
Hi Alex (adding v4l and Sascha to CC) On Tue, 6 Mar 2012, Alex Gershgorin wrote: > Hi Guennadi, > > I'm working on I.MX35 PDK platform with use 3.3.0-rc6 version of the Linux > Kernel. > Here is my Kernel boot message > > "Linux video capture interface: v2.00 > mx3-camera: probe of mx3-came

Re: [PATCH 3/5] v4l: Aptina-style sensor PLL support

2012-03-06 Thread Sakari Ailus
Hi Laurent, On Tue, Mar 06, 2012 at 01:09:44PM +0100, Laurent Pinchart wrote: > Add a generic helper function to compute PLL parameters for PLL found in > several Aptina sensors. > > Signed-off-by: Laurent Pinchart Acked-by: Sakari Ailus -- Sakari Ailus e-mail: sakari.ai...@iki.fi jabber

[PATCH 3/5] v4l: Aptina-style sensor PLL support

2012-03-06 Thread Laurent Pinchart
Add a generic helper function to compute PLL parameters for PLL found in several Aptina sensors. Signed-off-by: Laurent Pinchart --- drivers/media/video/Kconfig |3 + drivers/media/video/Makefile |4 + drivers/media/video/aptina-pll.c | 174 +

[PATCH 5/5] v4l: Add driver for Micron MT9M032 camera sensor

2012-03-06 Thread Laurent Pinchart
From: Martin Hostettler The MT9M032 is a parallel 1.6MP sensor from Micron controlled through I2C. The driver creates a V4L2 subdevice. It currently supports cropping, gain, exposure and v/h flipping controls in monochrome mode with an external pixel clock. Signed-off-by: Martin Hostettler ---

Re: [PATCH v4 16/34] media: Collect entities that are part of the pipeline before link validation

2012-03-06 Thread Sakari Ailus
Hi Laurent, On Mon, Mar 05, 2012 at 12:13:39PM +0100, Laurent Pinchart wrote: > On Friday 02 March 2012 19:30:24 Sakari Ailus wrote: > > Make information available which entities are part of the pipeline before > > link_validate() ops are being called. > > > > Signed-off-by: Sakari Ailus > > ---

[PATCH 4/5] mt9p031: Use generic PLL setup code

2012-03-06 Thread Laurent Pinchart
Compute the PLL parameters at runtime using the generic Aptina PLL helper. Signed-off-by: Laurent Pinchart --- drivers/media/video/Kconfig |1 + drivers/media/video/mt9p031.c | 62 ++--- 2 files changed, 28 insertions(+), 35 deletions(-) diff --git a/

[PATCH 1/5] mt9p031: Remove duplicate media/v4l2-subdev.h include

2012-03-06 Thread Laurent Pinchart
From: Danny Kukawka drivers/media/video/mt9p031.c included 'media/v4l2-subdev.h' twice, remove the duplicate. Signed-off-by: Danny Kukawka Acked-by: Laurent Pinchart --- drivers/media/video/mt9p031.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/

[PATCH 2/5] mt9p031: Remove unused xskip and yskip fields in struct mt9p031

2012-03-06 Thread Laurent Pinchart
The fields are set but never used, remove them. Signed-off-by: Laurent Pinchart --- drivers/media/video/mt9p031.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/media/video/mt9p031.c b/drivers/media/video/mt9p031.c index dd937df..52dd9f8 100644 --- a/drivers/

[PATCH 0/5] MT9M032 and MT9P031 sensor patches

2012-03-06 Thread Laurent Pinchart
Hi everybody, Here are the MT9M032 and MT9P031 sensor patches that I'd like to push for v3.4. The mt9m032 is a new driver originally written by Martin Hostettler. I've taken over maintenance of the code and posted several enhancements patches to the list previously. This version is the result of

Re: [PATCH v4 09/34] v4l: Add subdev selections documentation

2012-03-06 Thread Sakari Ailus
Hi Laurent, On Mon, Mar 05, 2012 at 12:47:26PM +0100, Laurent Pinchart wrote: > Hi Sakari, > > Thanks for the patch. Thanks for the comments! > On Friday 02 March 2012 19:30:17 Sakari Ailus wrote: > > Add documentation for V4L2 subdev selection API. This changes also > > experimental V4L2 subde

Re: [PATCH v3 2/2] v4l2: add new pixel formats supported on dm365

2012-03-06 Thread 'Sakari Ailus'
Hi Manju, On Mon, Mar 05, 2012 at 07:45:18AM +, Hadli, Manjunath wrote: > On Sun, Mar 04, 2012 at 20:49:36, Sakari Ailus wrote: > > On Tue, Feb 07, 2012 at 03:35:14PM +0530, Manjunath Hadli wrote: > > > add new macro V4L2_PIX_FMT_SGRBG10ALAW8 and associated formats to > > > represent Bayer fo

[RFCv2 PATCH 8/9] v4l: fimc: integrate capture i-face with dmabuf

2012-03-06 Thread Tomasz Stanislawski
Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/Kconfig |1 + drivers/media/video/s5p-fimc/fimc-capture.c | 11 ++- 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/Kconfig b/drivers/media/vi

[RFCv2 PATCH 6/9] v4l: vb2-dma-contig: add support for DMABUF exporting

2012-03-06 Thread Tomasz Stanislawski
This patch adds support for exporting a dma-contig buffer using DMABUF interface. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 128 1 files changed, 128 insertions(+), 0 deletions(-) diff --git a/

  1   2   >