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

2012-03-06 Thread Hans de Goede
Hi, On 03/06/2012 01:44 AM, Xavion wrote: Hi Guys Thanks very much for the follow-up emails. Our time-zone differences prevented me from replying sooner. I'm guessing you guys are both in Europe, whereas I'm down and across in Australia. As I plan to use this webcam for home security, I

Re: [PATCH v4 24/34] omap3isp: Assume media_entity_pipeline_start may fail

2012-03-06 Thread Sakari Ailus
Hi Laurent, On Mon, Mar 05, 2012 at 12:26:44PM +0100, Laurent Pinchart wrote: Hi Sakari, Thanks for the patch. On Friday 02 March 2012 19:30:32 Sakari Ailus wrote: Since media_entity_pipeline_start() now does link validation, it may actually fail. Perform the error handling.

dma-buf feature tree: working model

2012-03-06 Thread Sumit Semwal
Hi all, Since the inclusion of dma-buf buffer sharing framework in 3.3 (thanks to Dave Airlie primarily), I have been volunteered to be its maintainer. Obviously there is a need for some simple rules about the dma-buf feature tree, so here we are: - there will be a 'for-next' branch for (N+1),

Re: [PATCH 2/3] dma-buf: add support for kernel cpu access

2012-03-06 Thread Semwal, Sumit
Hi Daniel, On Tue, Mar 6, 2012 at 12:27 AM, Daniel Vetter daniel.vet...@ffwll.ch wrote: On Fri, Mar 2, 2012 at 23:24, Rob Clark robdcl...@gmail.com wrote: Perhaps we should check somewhere for required dmabuf ops fxns (like kmap_atomic here), rather than just calling unconditionally what might

[RFCv2 PATCH 0/9] Integration of videobuf2 with dmabuf

2012-03-06 Thread Tomasz Stanislawski
Hello everyone, This patchset is an incremental patch to patchset created by Sumit Semwal [1]. The patches are dedicated to help find a better solution for support of buffer sharing by V4L2 API. It is expected to start discussion on the final installment for dma-buf in vb2-dma-contig allocator.

[RFCv2 PATCH 2/9] v4l: vb2-dma-contig: update and code refactoring

2012-03-06 Thread Tomasz Stanislawski
This patch combines updates and fixes to dma-contig allocator. Moreover the allocator code was refactored. The most important changes are: - functions were reordered - move compression of scatterlist to separete function - add support for multichunk but contiguous scatterlists - simplified

[RFCv2 PATCH 5/9] v4l: vb2: add buffer exporting via dmabuf

2012-03-06 Thread Tomasz Stanislawski
This patch adds extension to videobuf2-core. It allow to export a mmap buffer as a file descriptor. Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/media/video/videobuf2-core.c | 64

[RFCv2 PATCH 7/9] v4l: vb2-dma-contig: change map/unmap behaviour

2012-03-06 Thread Tomasz Stanislawski
The DMABUF documentation says that the map_dma_buf callback should return scatterlist that is mapped into a caller's address space. In practice, almost none of existing implementations of DMABUF exporter does it. This patch breaks the DMABUF specification in order to allow exchange DMABUF buffers

[RFCv2 PATCH 9/9] v4l: s5p-tv: mixer: integrate with dmabuf

2012-03-06 Thread Tomasz Stanislawski
Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/media/video/s5p-tv/Kconfig |1 + drivers/media/video/s5p-tv/mixer_video.c | 12 +++- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git

[RFCv2 PATCH 4/9] v4l: add buffer exporting via dmabuf

2012-03-06 Thread Tomasz Stanislawski
This patch adds extension to V4L2 api. It allow to export a mmap buffer as file descriptor. New ioctl VIDIOC_EXPBUF is added. It takes a buffer offset used by mmap and return a file descriptor on success. Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com Signed-off-by: Kyungmin Park

[RFCv2 PATCH 1/9] v4l: vb2: fixes for DMABUF support

2012-03-06 Thread Tomasz Stanislawski
This patch contains fixes to DMABUF support in vb2-core. - fixes number of arguments of call_memop macro - fixes setup of plane length - fixes handling of error pointers Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com ---

[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 t.stanisl...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/media/video/videobuf2-dma-contig.c | 128 1 files

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

2012-03-06 Thread Tomasz Stanislawski
Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/media/video/Kconfig |1 + drivers/media/video/s5p-fimc/fimc-capture.c | 11 ++- 2 files changed, 11 insertions(+), 1 deletions(-) diff

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 format

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 subdev API

[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

[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 laurent.pinch...@ideasonboard.com --- 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

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

2012-03-06 Thread Laurent Pinchart
From: Danny Kukawka danny.kuka...@bisect.de drivers/media/video/mt9p031.c included 'media/v4l2-subdev.h' twice, remove the duplicate. Signed-off-by: Danny Kukawka danny.kuka...@bisect.de Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/media/video/mt9p031.c |1 - 1

[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 laurent.pinch...@ideasonboard.com --- drivers/media/video/Kconfig |1 + drivers/media/video/mt9p031.c | 62 ++--- 2 files changed, 28

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 5/5] v4l: Add driver for Micron MT9M032 camera sensor

2012-03-06 Thread Laurent Pinchart
From: Martin Hostettler mar...@neutronstar.dyndns.org 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.

[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 laurent.pinch...@ideasonboard.com --- drivers/media/video/Kconfig |3 + drivers/media/video/Makefile |4 + drivers/media/video/aptina-pll.c | 174

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 laurent.pinch...@ideasonboard.com Acked-by: Sakari Ailus sakari.ai...@iki.fi --

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-camera.0

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-camera: probe of

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 function

Re: mx3-camera

2012-03-06 Thread Fabio Estevam
On Tue, Mar 6, 2012 at 10:22 AM, Alex Gershgorin al...@meprolight.com 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

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 Kernel boot message

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 Mar

[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

[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 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

[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 justinmatt...@gmail.com 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 justinmatt...@gmail.com --- drivers/staging/media/Kconfig

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 mar...@neutronstar.dyndns.org The MT9M032 is a parallel 1.6MP sensor from Micron controlled through I2C. The driver creates a V4L2 subdevice. It currently supports

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

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

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

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 mar...@neutronstar.dyndns.org The MT9M032 is a parallel 1.6MP sensor from Micron controlled through I2C.

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

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 { + struct v4l2_ctrl *hflip;

[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

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

2012-03-06 Thread Laurent Pinchart
From: Danny Kukawka danny.kuka...@bisect.de drivers/media/video/mt9p031.c included 'media/v4l2-subdev.h' twice, remove the duplicate. Signed-off-by: Danny Kukawka danny.kuka...@bisect.de Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/media/video/mt9p031.c |1 - 1

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

2012-03-06 Thread Laurent Pinchart
From: Martin Hostettler mar...@neutronstar.dyndns.org 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.

[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 laurent.pinch...@ideasonboard.com --- drivers/media/video/Kconfig |1 + drivers/media/video/mt9p031.c | 62 ++--- 2 files changed, 28

[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 laurent.pinch...@ideasonboard.com Acked-by: Sakari Ailus sakari.ai...@iki.fi --- drivers/media/video/Kconfig |3 + drivers/media/video/Makefile |4 +

[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 laurent.pinch...@ideasonboard.com --- 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

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 provided

[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

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

2012-03-06 Thread Laurent Pinchart
From: Danny Kukawka danny.kuka...@bisect.de drivers/media/video/mt9p031.c included 'media/v4l2-subdev.h' twice, remove the duplicate. Signed-off-by: Danny Kukawka danny.kuka...@bisect.de Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/media/video/mt9p031.c |1 - 1

[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 laurent.pinch...@ideasonboard.com Acked-by: Sakari Ailus sakari.ai...@iki.fi --- drivers/media/video/Kconfig |3 + drivers/media/video/Makefile |4 +

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

2012-03-06 Thread Laurent Pinchart
From: Martin Hostettler mar...@neutronstar.dyndns.org 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.

[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 laurent.pinch...@ideasonboard.com --- 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

[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 laurent.pinch...@ideasonboard.com --- drivers/media/video/Kconfig |1 + drivers/media/video/mt9p031.c | 62 ++--- 2 files changed, 28

[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

[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.

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

2012-03-06 Thread Sakari Ailus
Signed-off-by: Sakari Ailus sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- Documentation/DocBook/media/v4l/compat.xml | 10 + Documentation/DocBook/media/v4l/v4l2.xml |6 +++ .../DocBook/media/v4l/vidioc-queryctrl.xml |

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/media/video/omap3isp/ispvideo.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff

[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 sakari.ai...@iki.fi --- drivers/media/video/omap3isp/ispvideo.c |9 + drivers/media/video/omap3isp/ispvideo.h |1 + 2 files changed, 10 insertions(+), 0 deletions(-) diff --git

[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 sakari.ai...@iki.fi --- Documentation/DocBook/media/Makefile |4 +-

[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 sakari.ai...@iki.fi --- drivers/media/video/adp1653.c|8 +++---

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

2012-03-06 Thread Sakari Ailus
From: Sakari Ailus sakari.ai...@maxwell.research.nokia.com 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

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com

[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 sakari.ai...@iki.fi --- drivers/media/video/omap3isp/isp.c | 13 - 1 files changed, 12 insertions(+), 1 deletions(-)

[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 sakari.ai...@iki.fi ---

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/media/video/omap3isp/ispvideo.h |3 +++ 1 files changed, 3

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com ---

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/media/video/omap3isp/isp.h |4 include/media/omap3isp.h |4

[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 sakari.ai...@iki.fi --- drivers/media/video/omap3isp/ispccdc.c | 65 +

[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 sakari.ai...@iki.fi --- drivers/media/video/omap3isp/ispresizer.c | 15 drivers/media/video/omap3isp/ispvideo.c | 54

[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 sakari.ai...@iki.fi --- drivers/media/video/omap3isp/ispvideo.c | 52 -- 1 files changed, 28 insertions(+), 24 deletions(-)

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- arch/arm/mach-omap2/control.h |1 + 1 files changed, 1 insertions(+), 0

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com ---

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- include/media/v4l2-subdev.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[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 sakari.ai...@iki.fi --- Documentation/DocBook/media/v4l/pixfmt-srggb10.xml |2 +- .../DocBook/media/v4l/pixfmt-srggb10dpcm8.xml | 29

[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 sakari.ai...@iki.fi --- Documentation/DocBook/media/v4l/controls.xml

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/media/video/omap3isp/ispcsiphy.h | 15 ++-

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- include/media/v4l2-subdev.h | 30 +- 1 files changed, 13

[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 sakari.ai...@iki.fi --- Documentation/DocBook/media/v4l/controls.xml

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/media/video/v4l2-subdev.c | 37 +++-- 1

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com ---

[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 sakari.ai...@iki.fi --- Documentation/video4linux/4CCs.txt | 32 1 files changed, 32 insertions(+),

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- Documentation/video4linux/v4l2-framework.txt |9 + 1

[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:

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- Documentation/DocBook/media/v4l/compat.xml |7 +++

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com Tested-by:

[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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/media/video/vivi.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git

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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com -- Regards, Laurent

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_SELECTION

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 sakari.ai...@iki.fi

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 sakari.ai...@iki.fi Acked-by: Laurent Pinchart

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 ? #

Re: rtl2830: __udivdi3 undefined

2012-03-06 Thread Geert Uytterhoeven
On Sun, Mar 4, 2012 at 23:19, Gianluca Gennari gennar...@gmail.com 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 gennar...@gmail.com Thanks, that fixes it (div_u64() is do_div() on 32-bit).

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

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

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:30:12 Sakari

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 wrote: On

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 laurent.pinch...@ideasonboard.com --- drivers/media/video/mt9p031.c |4 1 files changed, 0 insertions(+), 4 deletions(-) Reviewed-by: Sakari

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 laurent.pinch...@ideasonboard.com --- drivers/media/video/Kconfig |1 + drivers/media/video/mt9p031.c | 62

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

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

  1   2   >