cron job: media_tree daily build: WARNINGS

2015-03-09 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 10 04:00:24 CET 2015 git branch: test git hash: 3d945be05ac1e806af075e9315bc1b3409adae2b gcc versio

Re: [PATCH] Add framescaling support to stk1160

2015-03-09 Thread Ezequiel Garcia
Dale, Don't forget to Cc the media mailing list. See below. On Tue, Feb 24, 2015 at 2:33 PM, Dale Hamel wrote: > From: Michael Stegemann > > Implements frame scaling support for stk1160 to support format changes > instead of a static frame size. > > This is effectively a dumb sampling, and cou

Re: [PATCH 1/1] Fix DVBsky rc-keymap

2015-03-09 Thread Nibble Max
Hello, Mapping VOLUME and CHANNEL keys to the general ones will break some tv softwares remote control functions. Best Regards, Max On 2015-03-10 06:05:02, Dirk Nehring wrote: >Signed-off-by: Dirk Nehring >--- > drivers/media/rc/keymaps/rc-dvbsky.c | 12 ++-- > 1 file changed, 6 insert

Re: [PATCH v4] media: i2c: add support for omnivision's ov2659 sensor

2015-03-09 Thread Sakari Ailus
Hi Prabhakar, On Sun, Mar 08, 2015 at 11:33:27AM +, Lad Prabhakar wrote: > From: Benoit Parrot > > this patch adds support for omnivision's ov2659 > sensor, the driver supports following features: > 1: Asynchronous probing > 2: DT support > 3: Media controller support > > Signed-off-by: Ben

Re: [PATCH v4] media: i2c: add support for omnivision's ov2659 sensor

2015-03-09 Thread Sakari Ailus
Hi Prabhakar, On Sun, Mar 08, 2015 at 11:33:27AM +, Lad Prabhakar wrote: ... > +static struct ov2659_platform_data * > +ov2659_get_pdata(struct i2c_client *client) > +{ > + struct ov2659_platform_data *pdata; > + struct device_node *endpoint; > + int ret; > + > + if (!IS_ENABLE

hyvää päivää

2015-03-09 Thread Loan Engine
hyvää päivää Hanki laina tänään Loan Engine, jonka korko on 3%. Täytä muodostavat alle jos kiinnostaa: Sukupuoli: maa: Määrä tarvitaan: Kesto: Mission: On monia syitä, miksi lainan voi auttaa tervehdys Ana Paula -- This message has been scanned by IPC ASGW and is believed to be clean. --

[PATCH 0/3] Add link-frequencies to struct v4l2_of_endpoint

2015-03-09 Thread Sakari Ailus
Hi, While I was adding a link_frequencies array field to struct v4l2_of_endpoint, I also realised that the smiapp driver was not reading the link-frequencies property from the endpoint, but the i2c device node instead. This is what the second patch addresses. The third patch does add support for

[PATCH 3/3] v4l: of: Add link-frequencies array to struct v4l2_of_endpoint

2015-03-09 Thread Sakari Ailus
Parse and read the link-frequencies property in v4l2_of_parse_endpoint(). The property is an u64 array of undefined length, thus the memory allocation may fail, leading - v4l2_of_parse_endpoint() to return an error in such a case (as well as when failing to parse the property) and - to requiring

[PATCH 2/3] smiapp: Read link-frequencies property from the endpoint node

2015-03-09 Thread Sakari Ailus
The documentation stated that the link-frequencies property belongs to the endpoint node, not to the device's of_node. Fix this. There are no DT board descriptions using the driver yet, so a fix in the driver is sufficient. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-core.c

[PATCH 1/3] smiapp: Clean up smiapp_get_pdata()

2015-03-09 Thread Sakari Ailus
Don't set rval when it's not used (the function returns a pointer to struct smiapp_platform_data). Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-core.c |5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/m

Re: [PATCH/RFC v12 04/19] dt-binding: leds: Add common LED DT bindings macros

2015-03-09 Thread Bryan Wu
On Wed, Mar 4, 2015 at 11:56 PM, Jacek Anaszewski wrote: > On 03/04/2015 05:14 PM, Jacek Anaszewski wrote: >> >> Add macros for defining boost mode and trigger type properties >> of flash LED devices. >> >> Signed-off-by: Jacek Anaszewski >> Acked-by: Kyungmin Park >> Cc: Bryan Wu >> Cc: Richar

Re: [PATCH/RFC v12 03/19] Documentation: leds: Add description of LED Flash class extension

2015-03-09 Thread Bryan Wu
On Wed, Mar 4, 2015 at 8:14 AM, Jacek Anaszewski wrote: > The documentation being added contains overall description of the > LED Flash Class and the related sysfs attributes. > Thanks, merged! -Bryan > Signed-off-by: Jacek Anaszewski > Acked-by: Kyungmin Park > Cc: Bryan Wu > Cc: Richard Pu

Re: [PATCH/RFC v12 02/19] leds: flash: document sysfs interface

2015-03-09 Thread Bryan Wu
On Wed, Mar 4, 2015 at 8:14 AM, Jacek Anaszewski wrote: > Add a documentation of LED Flash class specific sysfs attributes. > Thanks, merged! -Bryan > Signed-off-by: Jacek Anaszewski > Acked-by: Kyungmin Park > Cc: Bryan Wu > Cc: Richard Purdie > --- > Documentation/ABI/testing/sysfs-class-

Re: [PATCH/RFC v12 01/19] leds: flash: Remove synchronized flash strobe feature

2015-03-09 Thread Bryan Wu
On Wed, Mar 4, 2015 at 8:14 AM, Jacek Anaszewski wrote: > Synchronized flash strobe feature has been considered not fitting > for LED subsystem sysfs interface and thus is being removed. > OK, I will merge this. -Bryan > Signed-off-by: Jacek Anaszewski > Acked-by: Kyungmin Park > Cc: Bryan W

[PATCH 1/1] Fix DVBsky rc-keymap

2015-03-09 Thread Dirk Nehring
Signed-off-by: Dirk Nehring --- drivers/media/rc/keymaps/rc-dvbsky.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/rc/keymaps/rc-dvbsky.c b/drivers/media/rc/keymaps/rc-dvbsky.c index c5115a1..b942b16 100644 --- a/drivers/media/rc/keymaps/rc-dvbsky

[PATCH 2/2] media: sh_vou: use devres api

2015-03-09 Thread Lad Prabhakar
From: "Lad, Prabhakar" use devres API while allocating resources so that these resources are released automatically on driver detach. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/sh_vou.c | 51 + 1 file changed, 11 insertions(+), 40 deletions

[PATCH 0/2] media: sh_vou: trivial cleanups

2015-03-09 Thread Lad Prabhakar
From: "Lad, Prabhakar" Hi, This series is trivial cleanup for sh_vou driver. Cheers, --Prabhakar Lad Lad, Prabhakar (2): media: sh_vou: embed video_device media: sh_vou: use devres api drivers/media/platform/sh_vou.c | 72 ++--- 1 file changed, 17 inse

[PATCH 1/2] media: sh_vou: embed video_device

2015-03-09 Thread Lad Prabhakar
From: "Lad, Prabhakar" Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/sh_vou.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-)

Re: [PATCH v4 2/2] V4L: add CCF support to the v4l2_clk API

2015-03-09 Thread Guennadi Liakhovetski
Hi Mauro, On Mon, 2 Mar 2015, Mauro Carvalho Chehab wrote: > Em Sun, 1 Feb 2015 12:12:33 +0100 (CET) > Guennadi Liakhovetski escreveu: > > > V4L2 clocks, e.g. used by camera sensors for their master clock, do not > > have to be supplied by a different V4L2 driver, they can also be > > supplied

[PATCH 11/18] marvell-ccic: add DMABUF support for all three DMA modes

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Add VB2_DMABUF and VIDIOC_EXPBUF support. Also add VB2_USERPTR support for the vmalloc DMA mode which was missing for no good reason. Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/mcam-core.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-

[PATCH 00/18] marvell-ccic + ov7670 fixes

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil This patch series makes loads of fixes and improvements to the marvell-ccic and ov7670 drivers. This has been tested on an OLPC XO-1 laptop. This patch series sits on top of this pull request: https://patchwork.linuxtv.org/patch/28532/ I do need to check the last patch with

[PATCH 18/18] marvell-ccic: fix Y'CbCr ordering

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Various formats had their byte ordering implemented incorrectly, and the V4L2_PIX_FMT_UYVY is actually impossible to create, instead you get V4L2_PIX_FMT_YVYU. This was working before commit ad6ac452227b7cb93ac79beec092850d178740b1 ("add new formats support for marvell-ccic dr

[PATCH 14/18] marvell-ccic: add planar support to dma-vmalloc

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil The dma-vmalloc implementation didn't support planar formats, but with a little bit of refactoring that is easy to fix. Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/mcam-core.c | 94 - 1 file changed, 46 insertions(+), 48 deleti

[PATCH 09/18] marvell-ccic: use vb2 helpers and core locking

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Use the V4L2 core locking system instead of rolling your own. Switch to the vb2 fop and ioctl helpers to get rid of a lot of code. This also made it easy to add VB2_READ to the DMA modes, since you get read() for free with vb2 and these helpers. Finally remove the users field:

[PATCH 02/18] marvell-ccic: fill in bus_info

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil The bus_info field of struct v4l2_querycap wasn't filled in and v4l2-compliance complained about that. Fix this. Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/cafe-driver.c | 1 + drivers/media/platform/marvell-ccic/mcam-core.c | 3 +++ drivers/media/

[PATCH 10/18] marvell-ccic: add create_bufs support

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil This fixes the final v4l2-compliance warning. Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/mcam-core.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/marvell-ccic/mcam-core.c b/drivers/media/platform/

[PATCH 17/18] marvell-ccic: fix the bytesperline and sizeimage calculations

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil These were calculated incorrectly for the planar formats. Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/mcam-core.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/media/platform/marvell-ccic/mcam-core.c b/

[PATCH 16/18] ov7670: use colorspace SRGB instead of JPEG

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Even though the format is Y'CbCr, the colorspace used by the sensor is almost certainly SRGB. The sensor is also not generating JPEG data, so it makes no sense to use V4L2_COLORSPACE_JPEG here. Signed-off-by: Hans Verkuil --- drivers/media/i2c/ov7670.c | 2 +- 1 file changed

[PATCH 15/18] marvell-ccic: drop V4L2_PIX_FMT_JPEG dead code

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil This driver appeared to support the JPEG format when in reality that was just dead code. Remove it. Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/mcam-core.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/media/platform/marvell-ccic

[PATCH 12/18] marvell-ccic: fix streaming issues

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil - fill in timestamp - fill in field - start the sequence counter at 0, not 1 Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/mcam-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/marvell-ccic/mcam-core.c

[PATCH 13/18] marvell-ccic: correctly requeue buffers

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil If start_streaming fails or stop_streaming is called, then all queued buffers need to be given back to vb2. This prevents vb2 from calling WARN_ON when it detects that this is not done correctly. Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/mcam-core.

[PATCH 08/18] marvell-ccic: implement control events

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Now that this driver uses v4l2_fh, it is trivial to add support for control events. Again, this fixes a v4l2-compliance failure. Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/mcam-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/med

[PATCH 04/18] ov7670: check for valid width/height in ov7670_enum_frame_interval

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil The width and height should be checked in the enum_frame_interval op. This fixes a v4l2-compliance failure. Signed-off-by: Hans Verkuil --- drivers/media/i2c/ov7670.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/media/i2c/ov7670.c b/dr

[PATCH 03/18] marvell-ccic: webcam drivers shouldn't support g/s_std

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil TV standards make no sense for webcam drivers, so drop these dummy functions. This stops v4l2-compliance from complaining about this. Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/mcam-core.c | 15 --- 1 file changed, 15 deletions(-) diff -

[PATCH 07/18] marvell-ccic: switch to struct v4l2_fh

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Use struct v4l2_fh to represent a filehandle. This fixes the missing g/s_priority handling of this driver that v4l2-compliance complained about. Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/mcam-core.c | 48 + 1 file changed, 26

[PATCH 06/18] marvell-ccic: control handler fixes

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil No controls were reported, even though the ov7670 does have controls. Two reasons for this: the v4l2_ctrl_handler_init() call must come before the ov7670 is loaded (otherwise the ov7670 won't know that its controls should be added to the bridge driver), and the v4l2_ctrl_handl

[PATCH 05/18] marvell-ccic: fill in colorspace

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil The colorspace field wasn't filled in properly. This fixes a v4l2-compliance failure. Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/mcam-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/marvell-ccic/mcam-core.c b/driv

[PATCH 01/18] marvell-ccic: fix vb2 warning

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil We must set timestamp_flags in vb2_queue otherwise vb2 will complain loudly about it. Signed-off-by: Hans Verkuil --- drivers/media/platform/marvell-ccic/mcam-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/marvell-ccic/mcam-core.c b/driver

Re: [PATCH v4 1/2] media/v4l2-ctrls: Always run s_ctrl on volatile ctrls

2015-03-09 Thread Ricardo Ribalda Delgado
Hello Back from holidays and back to this issue. Sorry for the delay. > I'm not sure about Ricardo's use case, is it the one we've discussed on #v4l ? > If so, and if I recall correctly, the idea was to perform an action with a > parameter, and didn't require volatility. In my case, there is a t

Re: [RFC v2 2/7] media: rc: Add cec protocol handling

2015-03-09 Thread Bastien Nocera
On Mon, 2015-03-09 at 17:22 +0100, Kamil Debski wrote: > Hi Mauro, > > From: Mauro Carvalho Chehab [mailto:mche...@osg.samsung.com] > Sent: Sunday, March 08, 2015 3:21 PM > > > Em Thu, 22 Jan 2015 17:04:34 +0100 > > Kamil Debski escreveu: > > > > (c/c linux-input ML) > > > > > Add cec protocol

[PATCH 18/19] usbvision: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil --- drivers/media/usb/usbvision/usbvision-video.c | 70 ++- drivers/media/usb/usbvision/usbvis

[PATCH 19/19] cx231xx: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil --- drivers/media/usb/cx231xx/cx231xx-417.c | 33 --- drivers/media/usb/cx231xx/cx231xx-cards.c | 6 +- dri

[PATCH 16/19] tm6000: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil --- drivers/media/usb/tm6000/tm6000-video.c | 59 + drivers/media/usb/tm6000/tm6000.h

[PATCH 10/19] sta2x11: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil Cc: Federico Vaga --- drivers/media/pci/sta2x11/sta2x11_vip.c | 34 - 1 file changed,

[PATCH 08/19] bttv: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil --- drivers/media/pci/bt8xx/bttv-driver.c | 73 +++ drivers/media/pci/bt8xx/bttvp.h

[PATCH 11/19] m2m-deinterlace: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil Cc: Javier Martin --- drivers/media/platform/m2m-deinterlace.c | 21 ++--- 1 file changed, 6 insertio

[PATCH 13/19] wl128x: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil --- drivers/media/radio/wl128x/fmdrv_v4l2.c | 28 ++-- 1 file changed, 10 insertions(+), 18 de

[PATCH 09/19] cx18: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil Cc: Andy Walls --- drivers/media/pci/cx18/cx18-alsa-main.c | 2 +- drivers/media/pci/cx18/cx18-driver.h| 2 +-

[PATCH 17/19] uvc: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil Cc: Laurent Pinchart --- drivers/media/usb/uvc/uvc_driver.c | 22 -- drivers/media/usb/uvc/uvc_v4

[PATCH 14/19] gadget/uvc: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil Cc: Laurent Pinchart --- drivers/usb/gadget/function/f_uvc.c | 44 +++-- drivers/usb/

[PATCH 15/19] hdpvr: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil --- drivers/media/usb/hdpvr/hdpvr-core.c | 10 +++--- drivers/media/usb/hdpvr/hdpvr-video.c | 19 ++--

[PATCH 12/19] em28xx: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil --- drivers/media/usb/em28xx/em28xx-video.c | 119 ++-- drivers/media/usb/em28xx/em28xx.h

[PATCH 06/19] cx88: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil --- drivers/media/pci/cx88/cx88-blackbird.c | 22 +--- drivers/media/pci/cx88/cx88-core.c | 18 --

[PATCH 07/19] meye: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil --- drivers/media/pci/meye/meye.c | 19 ++- drivers/media/pci/meye/meye.h | 2 +- 2 files changed, 7

[PATCH 01/19] ivtv: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil Cc: Andy Walls --- drivers/media/pci/ivtv/ivtv-alsa-main.c | 2 +- drivers/media/pci/ivtv/ivtv-alsa-pcm.c | 2 +-

[PATCH 05/19] dt3155v4l: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil --- drivers/staging/media/dt3155v4l/dt3155v4l.c | 30 ++--- drivers/staging/media/dt3155v4l/dt

[PATCH 02/19] vim2m: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil Cc: Kamil Debski --- drivers/media/platform/vim2m.c | 23 +++ 1 file changed, 7 insertions(+), 16

[PATCH 03/19] saa7146: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil --- drivers/media/common/saa7146/saa7146_fops.c | 19 --- drivers/media/pci/saa7146/hexium_gemini.c

[PATCH 04/19] radio-bcm2048: embed video_device

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil --- drivers/staging/media/bcm2048/radio-bcm2048.c | 33 --- 1 file changed, 9 insertions(+), 2

[PATCH 00/19] embed video_device struct

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil This patch series converts 19 drivers so that they embed struct video_device in their main struct. That simplifies the error handling since there is no longer any need to call video_device_alloc or video_device_release. Eventually (13 drivers still to go) all drivers should do

RE: [RFC v2 2/7] media: rc: Add cec protocol handling

2015-03-09 Thread Kamil Debski
Hi Mauro, From: Mauro Carvalho Chehab [mailto:mche...@osg.samsung.com] Sent: Sunday, March 08, 2015 3:21 PM > Em Thu, 22 Jan 2015 17:04:34 +0100 > Kamil Debski escreveu: > > (c/c linux-input ML) > > > Add cec protocol handling the RC framework. > > I added some comments, that reflects my und

RE: [RFC v2 3/7] cec: add new framework for cec support.

2015-03-09 Thread Kamil Debski
Hi Sean, From: Sean Young [mailto:s...@mess.org] Sent: Sunday, March 08, 2015 11:45 AM > > Hi Kamil, > > On Fri, Mar 06, 2015 at 05:14:50PM +0100, Kamil Debski wrote: > > 3) As you suggested - load an empty keymap whenever the pass through > > mode is enabled. > > I am not that familiar with the

RE: [RFC v2 3/7] cec: add new framework for cec support.

2015-03-09 Thread Kamil Debski
Hi Mauro, Thank you for your comments. From: Mauro Carvalho Chehab [mailto:mche...@osg.samsung.com] Sent: Sunday, March 08, 2015 4:42 PM > > Em Fri, 06 Mar 2015 17:14:50 +0100 > Kamil Debski escreveu: > > > Hi Sean, Hans, > > > > I am sorry to reply so late, I was busy with other work. I am >

Re: [PATCH 00/29] vivid: add support for 4:2:0 formats

2015-03-09 Thread Hans Verkuil
On 03/09/2015 04:44 PM, Hans Verkuil wrote: > From: Hans Verkuil > > This patch series adds support for most of the 4:2:0 formats that V4L2 has. > In addition, it fixes various bugs, adds some new features and refactors > the test pattern generation code. > > The first 8 patches fix bugs and add

Re: [PATCH] v4l: mt9v032: Add OF support

2015-03-09 Thread Carlos Sanmartín Bustos
Hi Laurent, I am agree with your argumentations. I hope for the v2. Best regards, Carlos Sanmartín 2015-03-09 12:19 GMT+01:00 Laurent Pinchart : > Hi Carlos, > > Thank you for the review. > > On Monday 09 March 2015 10:45:31 Carlos Sanmartín Bustos wrote: >> Hi Laurent, >> >> Looks good. One qu

[PATCH 28/29] vivid: add downsampling support

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Add support in vivid for downsampling. Most of the changes are in vivid_copy_buffer which needs to know about the right line widths. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-kthread-cap.c | 68 ++-- drivers/media/platform/vivid/v

[PATCH 26/29] vivid: add new format fields

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil These fields are necessary to handle the new planar formats. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-core.h | 4 +- drivers/media/platform/vivid/vivid-vid-cap.c| 18 -- drivers/media/platform/vivid/vivid-vid-common.c | 84 +++

[PATCH 25/29] vivid-tpg: split off the pattern drawing code.

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil The last part of the vivid-tpg refactoring: split off the pattern drawing code into a function of its own. This greatly improves the readability and maintainability of this code. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 320 -

[PATCH 27/29] vivid: add support for single buffer planar formats

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Make vivid aware of the difference of planes and buffers. Note that this does not yet add support for hor/vert downsampled formats. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-core.h| 2 +- drivers/media/platform/vivid/vivid-kthread-cap.c | 54

[PATCH 22/29] vivid-tpg: move pattern-related fields to struct tpg_draw_params

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Add a new function that fills in pattern-related fields in struct tpg_draw_params. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 30 -- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/drivers/media/platf

[PATCH 24/29] vivid-tpg: move the 'extras' drawing to a separate function

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil This moves the drawing code for the extras (border, square, etc) to a function of its own instead of having this in the main for loop. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 216 +++ 1 file changed, 104 insertio

[PATCH 29/29] vivid: add the new planar and monochrome formats

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Everything is in place to support these formats, so add them to the list. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-vid-common.c | 114 +++- 1 file changed, 111 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/vi

[PATCH 23/29] vivid-tpg: move 'extras' parameters to tpg_draw_params

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Any parameters related to drawing 'extras' like the border, the square, etc. are moved to struct tpg_draw_params. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 100 ++- 1 file changed, 58 insertions(+), 42 deletions(-)

[PATCH 18/29] vivid-tpg: add helper functions to simplify common calculations

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Add helper functions to handle horizontal downscaling and horizontal scaling. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 130 ++- drivers/media/platform/vivid/vivid-tpg.h | 23 ++ 2 files changed, 80 insertions

[PATCH 20/29] vivid-tpg: add a new tpg_draw_params structure

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil This is needed to refactor the drawing function which is much too big. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/media/platform/vivid/vivid-tpg.c b/driv

[PATCH 21/29] vivid-tpg: move common parameters to tpg_draw_params

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Replace local variables by fields in the tpg_draw_params struct. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 34 +--- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/drivers/media/platform/vivid/vivid

[PATCH 19/29] vivid-tpg: add const where appropriate

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Added 'const' to several functions where that is possible to do. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 8 drivers/media/platform/vivid/vivid-tpg.h | 8 +--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/drive

[PATCH 17/29] vivid-tpg: add support for V4L2_PIX_FMT_GREY

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Add monochrome support to the TPG. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/vivid/vivid-tpg.c b/drivers/media/platform/vivid/vivid-tpg.c index

[PATCH 16/29] vivid-tpg: add support for more planar formats

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Now that the support for hor/vert downsampled planar formats is in place we can add support for such formats to the TPG. This patch adds support for: V4L2_PIX_FMT_YUV420M V4L2_PIX_FMT_YVU420M V4L2_PIX_FMT_YUV420 V4L2_PIX_FMT_YVU420 V4L2_PIX_FMT_YUV422P V4L2_PIX_FMT_NV16 V4L2_

[PATCH 13/29] vivid-tpg: correctly average the two pixels in gen_twopix()

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil gen_twopix() is always called twice: once for the first and once for the second pixel. Improve the code to properly average the two if the format requires horizontal downsampling. This is necessary for patterns like 1x1 red/blue checkers. Signed-off-by: Hans Verkuil --- dri

[PATCH 12/29] vivid-tpg: precalculate downsampled lines

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil When dealing with vertical downsampling two successive lines have to be averaged. In the case of the test pattern generator that only happens if the two lines are using different patterns. So precalculate the average between two pattern lines: one of pattern P and one of patter

[PATCH 10/29] vivid-tpg: add helper functions for single buffer planar formats

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Add helpers functions to determine the line widths and image sizes for planar formats that are stores in a single buffer. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 18 ++- drivers/media/platform/vivid/vivid-tpg.h | 53

[PATCH 11/29] vivid-tpg: add hor/vert downsampling fields

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil This is step one of supporting horizontal and vertical downsampling. This just adds support for the h/vdownsampling fields and it increases the maximum number of planes to 3. Currently none of the planar formats need horizontal or vertical downsampling, so this change has no e

[PATCH 14/29] vivid-tpg: add hor/vert downsampling support to tpg_gen_text

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil This will just skip lines/pixels since color fidelity is not quite as important here as it is with the test patterns themselves. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 27 --- 1 file changed, 20 insertions(+), 7 del

[PATCH 09/29] vivid-tpg: separate planes and buffers

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Add a new field that contains the number of buffers. This may be less than the number of planes in case multiple planes are combined into one buffer. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 3 +++ drivers/media/platform/vivid/vivid-tpg.h |

[PATCH 05/29] vivid: fix test pattern movement for V4L2_FIELD_ALTERNATE

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil The successive TOP/BOTTOM fields did not move as they should: only every other field actually changed position. The cause was that the tpg needs to know if it is dealing with a FIELD_ALTERNATE case since that requires slightly different handling. So tell the TPG whether or no

[PATCH 15/29] vivid-tpg: finish hor/vert downsampling support

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Implement horizontal and vertical downsampling when filling in the plane. The TPG is now ready to support such formats. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 128 ++- 1 file changed, 110 insertions(+), 18 delet

[PATCH 08/29] vivid: do not allow video loopback for SEQ_TB/BT

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Sequential top-bottom/bottom-top fields are not supported as video loopback. This is too much work to implement for field settings that are rarely used. Signed-off-by: Hans Verkuil --- Documentation/video4linux/vivid.txt | 5 + drivers/media/platform/vivid/vi

[PATCH 06/29] vivid: add new checkboard patterns

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Add a 2x2 checker patterns and 1x1 and 2x2 red/blue checker patterns. Useful for testing 4:2:2 and 4:2:0 formats. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 26 +++--- drivers/media/platform/vivid/vivid-tpg.h | 3 +++ 2 f

[PATCH 07/29] vivid-tpg: don't add offset when switching to monochrome

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil The grayscale values are still full range sRGB, so don't add the limited range offset. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-tpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vivid/vivid-tpg.c b/dri

[PATCH 01/29] vivid: the overlay API wasn't disabled completely for multiplanar

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil If the vivid driver is loaded in multiplanar mode, then the capture overlay functionality should be disabled. This wasn't fully done, which led to v4l2-compliance errors. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-vid-cap.c | 19 +++ 1

[PATCH 03/29] vivid: wrong top/bottom order for FIELD_ALTERNATE

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil The condition to decide whether the current field is top or bottom was inverted. Fix this. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-kthread-cap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vivid/vivid-

[PATCH 04/29] vivid: use TPG_MAX_PLANES instead of hardcoding plane-arrays

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil Two arrays of size 'max number of planes' have a hardcoded size instead of using TPG_MAX_PLANES. Fix that, since TPG_MAX_PLANES will be increased later on. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-core.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 02/29] vivid: fix typo in plane size checks

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil The plane size check was hardcoded to plane 0 instead of using the plane index. This failed when using the NV61M format which has a larger plane size for the second plane compared to the first plane. Signed-off-by: Hans Verkuil --- drivers/media/platform/vivid/vivid-vid-cap

[PATCH 00/29] vivid: add support for 4:2:0 formats

2015-03-09 Thread Hans Verkuil
From: Hans Verkuil This patch series adds support for most of the 4:2:0 formats that V4L2 has. In addition, it fixes various bugs, adds some new features and refactors the test pattern generation code. The first 8 patches fix bugs and add support for new red/blue checkerboard patterns. Patches

Re: [RFC 11/18] omap3isp: Replace many MMIO regions by two

2015-03-09 Thread Tony Lindgren
* Laurent Pinchart [150307 15:43]: > Hi Sakari, > > Thank you for the patch. > > (CC'ing linux-omap and Tony) > > On Saturday 07 March 2015 23:41:08 Sakari Ailus wrote: > > The omap3isp MMIO register block is contiguous in the MMIO register space > > apart from the fact that the ISP IOMMU regis

Re: [RFC 10/18] omap3isp: Move the syscon register out of the ISP register maps

2015-03-09 Thread Tony Lindgren
* Sakari Ailus [150307 15:44]: > Hi Laurent, > > On Sun, Mar 08, 2015 at 01:34:17AM +0200, Laurent Pinchart wrote: > > Hi Sakari, > > > > Thank you for the patch. > > > > (CC'ing linux-omap and Tony) > > Thanks. > > > On Saturday 07 March 2015 23:41:07 Sakari Ailus wrote: > > > The syscon reg

Re: [PATCH v3][RFC] add raw video stream support for Samsung SUR40

2015-03-09 Thread Hans Verkuil
On 03/09/2015 02:45 PM, Florian Echtler wrote: > On 09.03.2015 11:09, Hans Verkuil wrote: >> Hi Florian, >> >> OK, the cause of this failure is this message: >> >> Mar 9 10:39:08 sur40 kernel: [ 1093.200960] sur40 2-1:1.0: error in >> usb_sg_wait >> >> So you need to print the error message here

Re: [PATCH/RFC v12 10/19] DT: Add documentation for the mfd Maxim max77693

2015-03-09 Thread Jacek Anaszewski
On 03/09/2015 01:37 PM, Sakari Ailus wrote: Hi Jacek, On Mon, Mar 09, 2015 at 01:19:32PM +0100, Jacek Anaszewski wrote: Hi Sakari, Thanks for the review. On 03/09/2015 11:54 AM, Sakari Ailus wrote: Hi Jacek, On Wed, Mar 04, 2015 at 05:14:31PM +0100, Jacek Anaszewski wrote: This patch adds

rt-mutex usage in i2c

2015-03-09 Thread Sebastian Andrzej Siewior
I have two questions: - em28xx_i2c_xfer() in drivers/media/usb/em28xx/em28xx-i2c.c takes a rt_mutex lock. This struct i2c_algorithm's ->master_xfer callback. Why does it take an extra lock since it looks to me that it is protected by struct i2c_adapter's bus_lock already. - i2c_transfer() h

  1   2   >