Re: [RFCv7 PATCH 0/4] Add poll_requested_events() function.

2012-02-02 Thread Enke Chen
Hi, folks: I would like to voice my support for Hans' patch. 1) The functionality provided by this patch is needed. I have been involved in an app that implements a use-land sockets (using FUSE). Passing the accurate poll events is essential in the app. We have been using a local patch that

[PATCH v2 18/31] omap3isp: Move definitions required by board code under include/media.

2012-02-02 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 v2 12/31] v4l: Add DPCM compressed formats

2012-02-02 Thread Sakari Ailus
Add three other colour orders for 10-bit to 8-bit DPCM compressed 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/pixfmt.xml

[PATCH v2 10/31] v4l: Image processing control class

2012-02-02 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 v2 01/31] v4l: Introduce integer menu controls

2012-02-02 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 --- drivers/media/video/v4l2-ctrls.c | 74

[PATCH v2 13/31] media: Add link_validate() op to check links to the sink pad

2012-02-02 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 v2 04/31] v4l: VIDIOC_SUBDEV_S_SELECTION and VIDIOC_SUBDEV_G_SELECTION IOCTLs

2012-02-02 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 v2 19/31] omap3: add definition for CONTROL_CAMERA_PHY_CTRL

2012-02-02 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 v2 20/31] omap3isp: Assume media_entity_pipeline_start may fail

2012-02-02 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 | 20 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/media/video

[PATCH v2 07/31] v4l: Add subdev selections documentation

2012-02-02 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 |2 +- Documentation/DocBook/media/v4l/compat.xml |

[PATCH v2 17/31] omap3isp: Support additional in-memory compressed bayer formats

2012-02-02 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 v2 16/31] v4l: Allow changing control handler lock

2012-02-02 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 v2 14/31] v4l: Improve sub-device documentation for pad ops

2012-02-02 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 --- Documentation/video4linux/v4l2-framework.txt |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/Documentation/video4li

[PATCH v2 08/31] v4l: Mark VIDIOC_SUBDEV_G_CROP and VIDIOC_SUBDEV_S_CROP obsolete

2012-02-02 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 --- Documentation/DocBook/media/v4l/compat.xml |7 +++ .../DocBook/media/v4l/vidioc-subdev-g-crop.xml |9 ++--- 2 files changed,

[PATCH v2 25/31] omap3isp: Implement proper CCDC link validation, check pixel rate

2012-02-02 Thread Sakari Ailus
Implement correct link validation for the CCDC. Use external_rate from isp_pipeline to configurat vp divisor and check that external_rate does not exceed our data rate limitations. Signed-off-by: Sakari Ailus --- drivers/media/video/omap3isp/ispccdc.c | 69 +-- 1 fi

[PATCH v2 22/31] omap3isp: Add information on external subdev to struct isp_pipeline

2012-02-02 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 --- drivers/media/video/omap3isp/ispvideo.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/omap3isp/ispvideo

[PATCH v2 31/31] rm680: Add camera init

2012-02-02 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 v2 03/31] vivi: Add an integer menu test control

2012-02-02 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 v2 15/31] v4l: Implement v4l2_subdev_link_validate()

2012-02-02 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 --- Documentation/video4linux/v4l2-framework.txt | 12 + drivers/media/video/v4

[PATCH v2 26/31] omap3isp: Move setting constaints above media_entity_pipeline_start

2012-02-02 Thread Sakari Ailus
Signed-off-by: Sakari Ailus --- drivers/media/video/omap3isp/ispvideo.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/media/video/omap3isp/ispvideo.c b/drivers/media/video/omap3isp/ispvideo.c index f1c68ca..2e4786d 100644 --- a/drivers/media/video/oma

[PATCH v2 29/31] omap3isp: Remove isp_validate_pipeline and other old stuff

2012-02-02 Thread Sakari Ailus
Remove isp_set_pixel_clock(). Remove set_pixel_clock() callback from platform callbacks since the same information is now passed to the ISP driver by other means. Remove struct ispccdc_vp since the only field in this structure, pixelclk, is no longer used. Remove isp_video_is_shiftable() --- thi

[PATCH v2 28/31] omap3isp: Add resizer data rate configuration to resizer_set_stream

2012-02-02 Thread Sakari Ailus
Signed-off-by: Sakari Ailus --- drivers/media/video/omap3isp/ispresizer.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/omap3isp/ispresizer.c b/drivers/media/video/omap3isp/ispresizer.c index 6ce2349..81e1bc4 100644 --- a/drivers/media/video/omap

[PATCH v2 24/31] omap3isp: Default link validation for ccp2, csi2, preview and resizer

2012-02-02 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. The CCDC link validation still must be done separately. Also set pipe->external correctly as we go Signed-off-by: Sak

[PATCH v2 09/31] v4l: Image source control class

2012-02-02 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 v2 27/31] omap3isp: Configure CSI-2 phy based on platform data

2012-02-02 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 --- drivers/media/video/omap3isp/ispcsi2.c | 10 +++- drivers/media/video/omap

[PATCH v2 23/31] omap3isp: Introduce omap3isp_get_external_info()

2012-02-02 Thread Sakari Ailus
omap3isp_get_external_info() will retrieve external subdev's bits-per-pixel and pixel rate for the use of other ISP subdevs at streamon time. omap3isp_get_external_info() is used during pipeline validation. Signed-off-by: Sakari Ailus --- drivers/media/video/omap3isp/isp.c | 48 +++

[PATCH v2 05/31] v4l: Support s_crop and g_crop through s/g_selection

2012-02-02 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 v2 21/31] omap3isp: Add lane configuration to platform data

2012-02-02 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 v2 11/31] v4l: Document raw bayer 4CC codes

2012-02-02 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 v2 02/31] v4l: Document integer menu controls

2012-02-02 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 v2 0/31] V4L2 subdev and sensor control changes, SMIA++ driver and N9 camera board code

2012-02-02 Thread Sakari Ailus
Hi everyone, This the second 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 bo

Re: PCTV 290e page allocation failure

2012-02-02 Thread Gianluca Gennari
Il 03/02/2012 00:12, Devin Heitmueller ha scritto: > On Thu, Feb 2, 2012 at 6:06 PM, Gianluca Gennari wrote: >> Il 02/02/2012 20:07, Devin Heitmueller ha scritto: >> Hi Devin, >> thanks for the explanation. The CPU is MIPS based (not ARM) but I guess >> there is not much of a difference from this

Re: PCTV 290e page allocation failure

2012-02-02 Thread Devin Heitmueller
On Thu, Feb 2, 2012 at 6:06 PM, Gianluca Gennari wrote: > Il 02/02/2012 20:07, Devin Heitmueller ha scritto: > Hi Devin, > thanks for the explanation. The CPU is MIPS based (not ARM) but I guess > there is not much of a difference from this point of view. > As I mentioned in my first reply, I neve

Re: PCTV 290e page allocation failure

2012-02-02 Thread Gianluca Gennari
Il 02/02/2012 20:56, Andy Furniss ha scritto: > Gianluca Gennari wrote: > >> Hi Andy, >> I'm getting the same problem on a totally different system. > > Hi Gianluca, > > Thanks for the reply - it's good to know it's not just me. > > What kernel are you using? > > I see someone else had problem

Re: PCTV 290e page allocation failure

2012-02-02 Thread Gianluca Gennari
Il 02/02/2012 20:07, Devin Heitmueller ha scritto: > On Thu, Feb 2, 2012 at 2:02 PM, Gianluca Gennari wrote: >> I'm trying to reproduce the problem with another em28xx-dvb device to >> see if it is not restricted to the PCTV 290e. Before the PCTV 290e, I >> was using a different device with a driv

Re: [RFCv7 PATCH 2/4] poll: add poll_requested_events() and poll_does_not_wait() functions

2012-02-02 Thread Andrew Morton
On Thu, 2 Feb 2012 11:26:55 +0100 Hans Verkuil wrote: > From: Hans Verkuil > > In some cases the poll() implementation in a driver has to do different > things depending on the events the caller wants to poll for. An example is > when a driver needs to start a DMA engine if the caller polls fo

Re: [RFCv7 PATCH 0/4] Add poll_requested_events() function.

2012-02-02 Thread Andrew Morton
On Thu, 2 Feb 2012 11:26:53 +0100 Hans Verkuil wrote: > The first version of this patch was posted July 1st, 2011. I really hope that > it won't take another six months to get a review from a fs developer. As this > LWN article (http://lwn.net/Articles/450658/) said: 'There has been little > dis

Re: DVB TS/PES filters

2012-02-02 Thread Malcolm Priestley
On Thu, 2012-02-02 at 19:04 +, Tony Houghton wrote: > On Wed, 01 Feb 2012 18:40:44 +0100 > Lars Hanisch wrote: > > > Am 01.02.2012 14:32, schrieb Tony Houghton: > > > On Thu, 26 Jan 2012 15:40:15 + Tony Houghton > > > wrote: > > > > > >> I could do with a little more information about DMX

[PATCH] media, adp1653: Remove unneeded include of version.h from drivers/media/video/adp1653.c

2012-02-02 Thread Jesper Juhl
Signed-off-by: Jesper Juhl --- drivers/media/video/adp1653.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) compile tested only. diff --git a/drivers/media/video/adp1653.c b/drivers/media/video/adp1653.c index 12eedf4..badbdb6 100644 --- a/drivers/media/video/adp1653.c +++ b/drive

Re: [RFCv1 2/4] v4l:vb2: add support for shared buffer (dma_buf)

2012-02-02 Thread Clark, Rob
On Thu, Feb 2, 2012 at 2:23 PM, Daniel Vetter wrote: > On Thu, Feb 2, 2012 at 11:19, Laurent Pinchart > wrote: >>> On omap4 v4l2+drm example I have running, it is actually the DRM driver >>> doing the "IOMMU" programming.. so v4l2 camera really doesn't need to care >>> about it.  (And the IOMMU

Re: [RFCv1 2/4] v4l:vb2: add support for shared buffer (dma_buf)

2012-02-02 Thread Daniel Vetter
On Thu, Feb 2, 2012 at 11:19, Laurent Pinchart wrote: >> On omap4 v4l2+drm example I have running, it is actually the DRM driver >> doing the "IOMMU" programming.. so v4l2 camera really doesn't need to care >> about it.  (And the IOMMU programming here is pretty fast.)  But I suppose >> this mayb

Re: PCTV 290e page allocation failure

2012-02-02 Thread Andy Furniss
Gianluca Gennari wrote: Hi Andy, I'm getting the same problem on a totally different system. Hi Gianluca, Thanks for the reply - it's good to know it's not just me. What kernel are you using? I see someone else had problems with > 3.0, I've got a 3.08 built on this box, I'll try it out whe

Re: [PATCH 02/15] mm: page_alloc: update migrate type of pages on pcp when isolating

2012-02-02 Thread Michal Nazarewicz
On Tue, Jan 31, 2012 at 05:23:59PM +0100, Marek Szyprowski wrote: Pages, which have incorrect migrate type on free finally causes pageblock migration type change from MIGRATE_CMA to MIGRATE_MOVABLE. On Thu, 02 Feb 2012 13:47:29 +0100, Mel Gorman wrote: I'm not quite seeing this. In free_hot_c

Re: PCTV 290e page allocation failure

2012-02-02 Thread Devin Heitmueller
On Thu, Feb 2, 2012 at 2:02 PM, Gianluca Gennari wrote: > I'm trying to reproduce the problem with another em28xx-dvb device to > see if it is not restricted to the PCTV 290e. Before the PCTV 290e, I > was using a different device with a driver based on the dvb-usb > framework, and I never observe

Re: DVB TS/PES filters

2012-02-02 Thread Tony Houghton
On Wed, 01 Feb 2012 18:40:44 +0100 Lars Hanisch wrote: > Am 01.02.2012 14:32, schrieb Tony Houghton: > > On Thu, 26 Jan 2012 15:40:15 + Tony Houghton > > wrote: > > > >> I could do with a little more information about DMX_SET_PES_FILTER. > >> Specifically I want to use an output type of DMX_O

Re: PCTV 290e page allocation failure

2012-02-02 Thread Gianluca Gennari
Il 02/02/2012 18:28, Andy Furniss ha scritto: > Hi. > > I've got an old PIII 256M Ram PC that for years has served as an always > on TV streamer/recorder and gateway/server box. > > It had 2 PCI dvb cards until now I have a PCTV 290e so replaced one card > with a USB2 PCI card. > > At first the

cron job: media_tree daily build: WARNINGS

2012-02-02 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:Thu Feb 2 19:00:20 CET 2012 git hash:59b30294e14fa6a370fdd2bc2921cca1f977ef16 gcc version: i686-linux-gcc (GCC

Re: [PATCH] Re: linux-next: Tree for Feb 2 (media/radio/wl128x)

2012-02-02 Thread Manjunatha Halli
insertions(+), 2 deletions(-) --- linux-next-20120202.orig/drivers/media/radio/wl128x/Kconfig +++ linux-next-20120202/drivers/media/radio/wl128x/Kconfig @@ -4,8 +4,8 @@ menu "Texas Instruments WL128x FM driver (ST based)" config RADIO_WL128X tristate "Texas Instrum

[PATCH] Re: linux-next: Tree for Feb 2 (media/radio/wl128x)

2012-02-02 Thread Randy Dunlap
undefined reference to `st_register' (.text+0xe7016): undefined reference to `st_unregister' (.text+0xe70ce): undefined reference to `st_unregister' Signed-off-by: Randy Dunlap Cc: Manjunatha Halli --- drivers/media/radio/wl128x/Kconfig |4 ++-- 1 file changed, 2 insertions(+

[PATCH 1/1] [media] hdpvr: fix race conditon during start of streaming

2012-02-02 Thread Janne Grunau
status has to be set to STREAMING before the streaming worker is queued. hdpvr_transmit_buffers() will exit immediately otherwise. Reported-by: Joerg Desch CC: sta...@kernel.org --- drivers/media/video/hdpvr/hdpvr-video.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a

PCTV 290e page allocation failure

2012-02-02 Thread Andy Furniss
Hi. I've got an old PIII 256M Ram PC that for years has served as an always on TV streamer/recorder and gateway/server box. It had 2 PCI dvb cards until now I have a PCTV 290e so replaced one card with a USB2 PCI card. At first the PCTV worked OK, but now I've been getting a page allocation

Re: linux-next: Tree for Feb 2 (media/radio/wl128x)

2012-02-02 Thread Manjunatha Halli
Hi Randy Dunlap, In config file you are missing the CONFIG_TI_ST config which builds the TI's shared transport driver upon which the FM driver works. Please select this config in drivers/misc/ti-st/Kconfig which will solve the problem. Regards Manju On 02/02/2012 12:07 PM, Randy Dunlap wro

Re: linux-next: Tree for Feb 2 (media/radio/wl128x)

2012-02-02 Thread Randy Dunlap
On 02/01/2012 07:45 PM, Stephen Rothwell wrote: > Hi all, > > Changes since 20120201: drivers/built-in.o: In function `fmc_prepare': (.text+0xe6d60): undefined reference to `st_register' drivers/built-in.o: In function `fmc_prepare': (.text+0xe7016): undefined reference to `st_unregister' driver

Re: [RFCv1 2/4] v4l:vb2: add support for shared buffer (dma_buf)

2012-02-02 Thread Sumit Semwal
On 2 February 2012 19:31, Clark, Rob wrote: > On Thu, Feb 2, 2012 at 4:19 AM, Laurent Pinchart > wrote: >> Hi Rob, >> >> On Tuesday 31 January 2012 16:38:35 Clark, Rob wrote: >>> On Mon, Jan 30, 2012 at 4:01 PM, Sakari Ailus wrote: >>> >> So to summarize I understand your constraints - gpu drive

Re: OV2640 and iMX25PDK - help needed

2012-02-02 Thread javier Martin
Hi, On 2 February 2012 15:01, Fabio Estevam wrote: > On 2/1/12, Guennadi Liakhovetski wrote: >> Hello Gonzalo >> >> On Tue, 31 Jan 2012, Fernandez Gonzalo wrote: >> >>> Hi all, >>> >>> I've been working for a while with an iMX25PDK using the BSP provided by >>> Freescale (L2.6.31). The camera dr

Re: [RFCv1 2/4] v4l:vb2: add support for shared buffer (dma_buf)

2012-02-02 Thread Clark, Rob
On Thu, Feb 2, 2012 at 4:19 AM, Laurent Pinchart wrote: > Hi Rob, > > On Tuesday 31 January 2012 16:38:35 Clark, Rob wrote: >> On Mon, Jan 30, 2012 at 4:01 PM, Sakari Ailus wrote: >> >> So to summarize I understand your constraints - gpu drivers have worked >> >> like v4l a few years ago. The thi

Re: OV2640 and iMX25PDK - help needed

2012-02-02 Thread Fabio Estevam
On 2/1/12, Guennadi Liakhovetski wrote: > Hello Gonzalo > > On Tue, 31 Jan 2012, Fernandez Gonzalo wrote: > >> Hi all, >> >> I've been working for a while with an iMX25PDK using the BSP provided by >> Freescale (L2.6.31). The camera driver (V4L2-int) and examples do the >> job quite well but I nee

RE: OV2640 and iMX25PDK - help needed

2012-02-02 Thread Fernandez Gonzalo
Hi Guennadi, >Hello Gonzalo > >On Tue, 31 Jan 2012, Fernandez Gonzalo wrote: > >>> Hi all, >>> >>> I've been working for a while with an iMX25PDK using the BSP provided by >>> Freescale (L2.6.31). The camera driver (V4L2-int) and examples do the >>> job quite well but I need to move my design to

Re: [PATCH 02/15] mm: page_alloc: update migrate type of pages on pcp when isolating

2012-02-02 Thread Mel Gorman
On Tue, Jan 31, 2012 at 05:23:59PM +0100, Marek Szyprowski wrote: > > > >>+ page = pfn_to_page(pfn); > > > >>+ if (PageBuddy(page)) { > > > >>+ pfn += 1 << page_order(page); > > > >>+ } else if (page_count(page) == 0) { > > > >>+

Re: [PATCH 6/6] hid-core: ignore the Keene FM transmitter.

2012-02-02 Thread Jiri Kosina
On Thu, 2 Feb 2012, Hans Verkuil wrote: > From: Hans Verkuil > > The Keene FM transmitter USB device has the same USB ID as > the Logitech AudioHub Speaker, but it should ignore the hid. > Check if the name is that of the Keene device. > > Signed-off-by: Hans Verkuil Mauro, feel free to take

[PATCH 1/6] v4l2: standardize log start/end message.

2012-02-02 Thread Hans Verkuil
From: Hans Verkuil For drivers that properly use the v4l2 framework (i.e. set v4l2_dev in the video_device struct), the start and end messages of VIDIOC_LOG_STATUS are now generated automatically. People tended to forget these, but the v4l2-ctl tool scans for these messages, and it also makes it

[PATCH 6/6] hid-core: ignore the Keene FM transmitter.

2012-02-02 Thread Hans Verkuil
From: Hans Verkuil The Keene FM transmitter USB device has the same USB ID as the Logitech AudioHub Speaker, but it should ignore the hid. Check if the name is that of the Keene device. Signed-off-by: Hans Verkuil --- drivers/hid/hid-core.c | 10 ++ drivers/hid/hid-ids.h |1 + 2

[PATCH 5/6] radio-keene: add a driver for the Keene FM Transmitter.

2012-02-02 Thread Hans Verkuil
From: Hans Verkuil Signed-off-by: Hans Verkuil --- drivers/media/radio/Kconfig | 10 + drivers/media/radio/Makefile |1 + drivers/media/radio/radio-keene.c | 427 + 3 files changed, 438 insertions(+), 0 deletions(-) create mode 100644 drive

[PATCH 2/6] v4l2-subdev: add start/end messages for log_status.

2012-02-02 Thread Hans Verkuil
From: Hans Verkuil Add the start and end messages for log_status when called from a subdev device node. Signed-off-by: Hans Verkuil Cc: Laurent Pinchart --- drivers/media/video/v4l2-subdev.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/media/vid

[PATCH 3/6] v4l2-ctrls: add helper functions for control events.

2012-02-02 Thread Hans Verkuil
From: Hans Verkuil Many drivers just support control events, and most radio drivers just need to poll for control events. Add some functions to simplify those jobs. Signed-off-by: Hans Verkuil --- drivers/media/video/v4l2-ctrls.c | 20 include/media/v4l2-ctrls.h |

[PATCH 4/6] vivi: use v4l2_ctrl_subscribe_event.

2012-02-02 Thread Hans Verkuil
From: Hans Verkuil Signed-off-by: Hans Verkuil --- drivers/media/video/vivi.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index cef8c91..28d7112 100644 --- a/drivers/media/video/vivi.c +++ b/driver

[PATCH 0/6] Add support functions and the radio-keene driver

2012-02-02 Thread Hans Verkuil
This patch series is for 3.4. It adds a V4L2 driver for the Keene USB FM Transmitter: http://www.amazon.co.uk/Keene-Electronics-USB-FM-Transmitter/dp/B003GCHPDY This device is very useful to test V4L2 FM radio receivers. Changes since RFCv2 of the radio-keene driver: - Use the new v4l2 support

Re: [Q] Interleaved formats on the media bus

2012-02-02 Thread Sylwester Nawrocki
Hi Laurent, On 02/02/2012 10:55 AM, Laurent Pinchart wrote: > Do all those sensors interleave the data in the same way ? This sounds quite No, each one uses it's own interleaving method. > hackish and vendor-specific to me, I'm not sure if we should try to > generalize > that. Maybe vendor-sp

Re: [Q] Interleaved formats on the media bus

2012-02-02 Thread Guennadi Liakhovetski
Hi Laurent On Thu, 2 Feb 2012, Laurent Pinchart wrote: > Do all those sensors interleave the data in the same way ? This sounds quite > hackish and vendor-specific to me, I'm not sure if we should try to > generalize > that. Maybe vendor-specific media bus format codes would be the way to go.

[RFCv7 PATCH 1/4] eventpoll: set key to the correct events mask.

2012-02-02 Thread Hans Verkuil
From: Hans Verkuil The eventpoll implementation always left the key field at ~0 instead of using the requested events mask. This was changed so the key field now contains the actual events that should be polled for as set by the caller. This information is needed by drivers that need to e.g. st

[RFCv7 PATCH 4/4] unix/af_unix.c: use poll_requested_events() in unix_dgram_poll()

2012-02-02 Thread Hans Verkuil
From: Hans Verkuil Rather than accessing the poll_table internals use the new poll_requested_events() function. Signed-off-by: Hans Verkuil --- net/unix/af_unix.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 85d3bb7..59

[RFCv7 PATCH 3/4] net/sock.h: use poll_does_not_wait() in sock_poll_wait()

2012-02-02 Thread Hans Verkuil
From: Hans Verkuil In order to determine whether poll_wait() might actually wait the poll_table pointer was tested in sock_poll_wait(). This is no longer sufficient, instead poll_does_not_wait() should be called. That function also tests whether pt->pq_proc is non-NULL. Without this change smp_m

[RFCv7 PATCH 2/4] poll: add poll_requested_events() and poll_does_not_wait() functions

2012-02-02 Thread Hans Verkuil
From: Hans Verkuil In some cases the poll() implementation in a driver has to do different things depending on the events the caller wants to poll for. An example is when a driver needs to start a DMA engine if the caller polls for POLLIN, but doesn't want to do that if POLLIN is not requested bu

[RFCv7 PATCH 0/4] Add poll_requested_events() function.

2012-02-02 Thread Hans Verkuil
Hi all, This is the seventh version of this patch series (the fifth and sixth where never posted and where internal iterations only). Al Viro had concerns about silent API changes. I have made an extensive analysis of that in my comments in patch 2/4. This patch series is rebased to v3.3-rc2. Th

Re: [RFCv1 2/4] v4l:vb2: add support for shared buffer (dma_buf)

2012-02-02 Thread Laurent Pinchart
Hi Rob, On Tuesday 31 January 2012 16:38:35 Clark, Rob wrote: > On Mon, Jan 30, 2012 at 4:01 PM, Sakari Ailus wrote: > >> So to summarize I understand your constraints - gpu drivers have worked > >> like v4l a few years ago. The thing I'm trying to achieve with this > >> constant yelling is just

Re: [PATCH] dma-buf: add dma_data_direction to unmap dma_buf_op

2012-02-02 Thread Laurent Pinchart
Hi Daniel, On Tuesday 31 January 2012 11:36:02 Daniel Vetter wrote: > On Tue, Jan 31, 2012 at 10:42:59AM +0100, Laurent Pinchart wrote: > > Hi Sumit, > > > > > On Friday 27 January 2012 10:43:28 Sumit Semwal wrote: > > [snip] > > > > > static inline void dma_buf_unmap_attachment(struct dma_buf_

Re: [Q] Interleaved formats on the media bus

2012-02-02 Thread Laurent Pinchart
Hi Sylwester, On Wednesday 01 February 2012 12:41:44 Sylwester Nawrocki wrote: > On 02/01/2012 11:00 AM, Sakari Ailus wrote: > >> Some camera sensors generate data formats that cannot be described using > >> current convention of the media bus pixel code naming. > >> > >> For instance, interleave

Re: Two devices, same USB ID: one needs HID, the other doesn't. How to solve this?

2012-02-02 Thread Jiri Kosina
On Fri, 13 Jan 2012, Hans Verkuil wrote: > [RFC PATCH] hid-core: ignore the Keene FM transmitter. > > The Keene FM transmitter USB device has the same USB ID as > the Logitech AudioHub Speaker, but it should ignore the hid. > Check if the name is that of the Keene device. > > Signed-off-by: Hans

Re: OV2640 and iMX25PDK - help needed

2012-02-02 Thread Guennadi Liakhovetski
Hello Gonzalo On Tue, 31 Jan 2012, Fernandez Gonzalo wrote: > Hi all, > > I've been working for a while with an iMX25PDK using the BSP provided by > Freescale (L2.6.31). The camera driver (V4L2-int) and examples do the > job quite well but I need to move my design to a more recent kernel. > I've