[PATCH 0/4] soc-camera: Make clock start and stop operations optional

2015-03-08 Thread Laurent Pinchart
Hello, This patch set makes the soc-camera host clock_start and clock_stop operations optional and remove the empty stubs from the rcar-vin driver. The rationale behind the change is that clock_start and clock_stop are supposed to control a clock output supplied to the sensor, exposed through a v

[PATCH 3/4] rcar-vin: Don't implement empty optional clock operations

2015-03-08 Thread Laurent Pinchart
The clock_start and clock_stop operations are now optional, don't implement empty stubs. Signed-off-by: Laurent Pinchart --- drivers/media/platform/soc_camera/rcar_vin.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b/drivers/me

[PATCH 2/4] soc-camera: Make clock_start and clock_stop operations optional

2015-03-08 Thread Laurent Pinchart
Instead of forcing drivers to implement empty clock operations, make them optional. v4l2 clock registration in the soc-camera core should probably be conditionned on the availability of those operations, but careful review and/or testing of all drivers would be needed, so that should be a separate

[PATCH/RFC 4/4] soc-camera: Skip v4l2 clock registration if host doesn't provide clk ops

2015-03-08 Thread Laurent Pinchart
If the soc-camera host doesn't provide clock start and stop operations registering a v4l2 clock is pointless. Don't do it. Signed-off-by: Laurent Pinchart --- drivers/media/platform/soc_camera/soc_camera.c | 51 +- 1 file changed, 33 insertions(+), 18 deletions(-) This r

[PATCH 1/4] soc-camera: Unregister v4l2 clock in the OF bind error path

2015-03-08 Thread Laurent Pinchart
The v4l2 clock registered in soc_of_bind() must be unregistered if an error occurs and makes the function fail. Signed-off-by: Laurent Pinchart --- drivers/media/platform/soc_camera/soc_camera.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/soc_camera/soc_camera.c

[PATCH] [media] rtl28xxu: add [0413:6f12] WinFast DTV2000 DS Plus

2015-03-08 Thread Christian Dale
Add Leadtek WinFast DTV2000DS Plus device based on Realtek RTL2832U. I have not tested the remote, but it is the Y04G0051 model. Signed-off-by: Christian Dale --- drivers/media/dvb-core/dvb-usb-ids.h| 1 + drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 2 ++ 2 files changed, 3 insertions(+) dif

[PATCH] [media] rtl28xxu: add [0413:6f12] WinFast DTV2000 DS Plus

2015-03-08 Thread Christian Dale
From: Christian Dale Add Leadtek WinFast DTV2000DS Plus device based on Realtek RTL2832U. I have not tested the remote, but it is the Y04G0051 model. Signed-off-by: Christian Dale --- drivers/media/dvb-core/dvb-usb-ids.h| 1 + drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 2 ++ 2 files change

cron job: media_tree daily build: WARNINGS

2015-03-08 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: Mon Mar 9 04:00:16 CET 2015 git branch: test git hash: 3d945be05ac1e806af075e9315bc1b3409adae2b gcc versio

Re: [PATCH 3/3] media: atmel-isi: remove mck back compatiable code as we don't need it

2015-03-08 Thread Josh Wu
Hi, Laurent On 3/8/2015 8:28 AM, Laurent Pinchart wrote: On Friday 06 March 2015 21:25:36 Guennadi Liakhovetski wrote: On Fri, 6 Mar 2015, Josh Wu wrote: On 3/5/2015 6:41 PM, Laurent Pinchart wrote: On Thursday 05 March 2015 13:01:01 Josh Wu wrote: The master clock should handled by sensor i

LAINA

2015-03-08 Thread Tesco Bank Loans
hyvää päivää Tarjoamme turvattu ja vakuudettomat henkilökohtaisia lainoja ja investointeja Sinun tarpeet ja budjetti. Henkilöstö ja investoinnit alhainen Korot on 3% ja pitoisuudet jopa 5000 USD / EUR ja 10,000.000.00 $ / euroa.Alhaisin Online lainat dollaria ja euroa! Täytä seuraavat tiedot lu

[PATCH 0/2] media: davinci: vpif: embed video_device in channel objects

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" This patch series embeds video_device structure for vpif capture & display driver in appropriate channel objects. Lad, Prabhakar (2): media: davinci: vpif_capture: embed video_device struct in channel_obj media: davinci: vpif_display: embed video_device struct in chann

[PATCH 1/2] media: davinci: vpif_capture: embed video_device struct in channel_obj

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" Embed video_device struct (video_dev) in channel_obj and also the Unregister path doesn't need to free the video_device structure, hence, change the video_device.release callback point to video_device_release_empty. Signed-off-by: Lad, Prabhakar --- drivers/media/platfor

[PATCH 2/2] media: davinci: vpif_display: embed video_device struct in channel_obj

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" Embed video_device struct (video_dev) in channel_obj and also the Unregister path doesn't need to free the video_device structure, hence, change the video_device.release callback point to video_device_release_empty. Signed-off-by: Lad, Prabhakar --- drivers/media/platfor

[PATCH] media: omap3isp: hist: Move histogram DMA to DMA engine

2015-03-08 Thread Laurent Pinchart
Replace the custom OMAP DMA API usage by DMA engine. Feature-wise the driver has lost the ability to get notified of DMA transfers failure through the completion handler, as the DMA engine API doesn't expose that status information. Signed-off-by: Laurent Pinchart --- drivers/media/platform/omap

Re: Aptina MT9V024

2015-03-08 Thread Guennadi Liakhovetski
Hi, On Sun, 8 Mar 2015, Ayhan KÃ~\Ã~GÃ~\KMANİSA wrote: > Hi Guennadi, > > Previously i asked you a problem about accesing camera i2c bus. I solved > camera i2c detect problem. Now i can get images using mplayer and v4l2 lib. > But i couldnt get right images. I try to get test pattern but when i

Re: [PATCH 3/3] media: omap3isp: ispvideo: use vb2_fop_mmap/poll

2015-03-08 Thread Laurent Pinchart
Hi Prabhakar, On Tuesday 24 February 2015 02:23:26 Laurent Pinchart wrote: > On Monday 23 February 2015 20:19:33 Lad Prabhakar wrote: > > From: "Lad, Prabhakar" > > > > No need to reinvent the wheel. Just use the already existing > > functions provided v4l-core. > > > > Signed-off-by: Lad, Prab

[PATCH for v4.0] cx23885: fix querycap

2015-03-08 Thread Hans Verkuil
cap->device_caps wasn't set in cx23885-417.c causing a warning from the v4l2-core. Reported-by: Joseph Jasi Signed-off-by: Hans Verkuil diff --git a/drivers/media/pci/cx23885/cx23885-417.c b/drivers/media/pci/cx23885/cx23885-417.c index e4901a5..9cb92c6 100644 --- a/drivers/media/pci/cx23885/c

cx23885: Missing device_caps

2015-03-08 Thread Joseph Yasi
Hi, I started getting a warning in the kernel log when initializing a Hauppauge HVR-1800 after I upgraded from 3.18.9 to 3.19.1. It is triggering this warning: WARN_ON(!(cap->capabilities & V4L2_CAP_DEVICE_CAPS) || !cap->device_caps); It looks like drivers/media/pci/cx23885/cx23885

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

2015-03-08 Thread Mauro Carvalho Chehab
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 preparing the > next version > of the CEC framework and I would like to discuss your comment. I'll do a deeper review of this patch when I have some time.

[PATCH v4 01/17] media: blackfin: bfin_capture: drop buf_init() callback

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch drops the buf_init() callback as init of buf list is not required. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media/platform/blackfin/bfin_capture.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drive

[PATCH v4 03/17] media: blackfin: bfin_capture: set min_buffers_needed

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch sets the min_buffers_needed field of the vb2 queue so that the vb2 core will make sure start_streaming() callback is called only when we have minimum buffers queued. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media

[PATCH v4 04/17] media: blackfin: bfin_capture: set vb2 buffer field

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" set the vb2 buffer field in buf_prepare() callback, alongside drop local variable buf as we already have a pointer to vb2 buffer. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media/platform/blackfin/bfin_capture.c | 8

[PATCH v4 05/17] media: blackfin: bfin_capture: improve queue_setup() callback

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" This patch does the following: a: returns -EINVAL in case format image size is less then current image size. b: assigns nbuffers to two in case the total of vq->num_buffers and nbuffers is less then the number of buffers required by driver. c: sets the sizes[0] of pla

[PATCH v4 02/17] media: blackfin: bfin_capture: release buffers in case start_streaming() call back fails

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch adds support to release the buffer by calling vb2_buffer_done(), with state marked as VB2_BUF_STATE_QUEUED if start_streaming() call back fails. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media/platform/blackfin/bf

[PATCH v4 09/17] media: blackfin: bfin_capture: make sure all buffers are returned on stop_streaming() callback

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" In start_streaming() callback the buffer is removed from the dma_queue list and assigned to cur_frm, this patch makes sure that is returned to vb2 core with VB2_BUF_STATE_ERROR flag. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers

[PATCH v4 06/17] media: blackfin: bfin_capture: use vb2_fop_mmap/poll

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" No need to reinvent the wheel. Just use the already existing functions provided by vb2. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media/platform/blackfin/bfin_capture.c | 28 +++--- 1 file changed, 3 inse

[PATCH v4 08/17] media: blackfin: bfin_capture: use vb2_ioctl_* helpers

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch adds support to vb2_ioctl_* helpers. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media/platform/blackfin/bfin_capture.c | 103 + 1 file changed, 18 insertions(+), 85 deletions(-) diff --git

[PATCH v4 14/17] media: blackfin: bfin_capture: add support for VIDIOC_EXPBUF

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch adds support for VIDIOC_EXPBUF. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media/platform/blackfin/bfin_capture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/blackfin/bfin_capture.c

[PATCH v4 11/17] media: blackfin: bfin_capture: return -ENODATA for *dv_timings calls

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch adds support to return -ENODATA for *dv_timings calls if the current output does not support it. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media/platform/blackfin/bfin_capture.c | 21 + 1 file

[PATCH v4 10/17] media: blackfin: bfin_capture: return -ENODATA for *std calls

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch adds supports to return -ENODATA to *_std calls if the selected output does not support it. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media/platform/blackfin/bfin_capture.c | 15 +++ 1 file changed, 15

[PATCH v4 15/17] media: blackfin: bfin_capture: set v4l2 buffer sequence

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch adds support to set the v4l2 buffer sequence. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media/platform/blackfin/bfin_capture.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/media/platform/blackf

[PATCH v4 16/17] media: blackfin: bfin_capture: drop bcap_get_unmapped_area()

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch drops bcap_get_unmapped_area() and uses vb2_fop_get_unmapped_area() helper provided by the vb2 core. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/blackfin/bfin_capture.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) dif

[PATCH v4 17/17] media: blackfin: bfin_capture: embed video_device struct in bcap_device

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" Embed video_device struct (video_dev) in bcap_device and Unregister path doesn't need to free the video_device structure, hence, change the video_device.release callback point to video_device_release_empty. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/blackfi

[PATCH v4 12/17] media: blackfin: bfin_capture: add support for vidioc_create_bufs

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch adds support for vidioc_create_bufs. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media/platform/blackfin/bfin_capture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/blackfin/bfin_captur

[PATCH v4 07/17] media: blackfin: bfin_capture: use v4l2_fh_open and vb2_fop_release

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch adds support to use v4l2_fh_open() and vb2_fop_release, which allows to drop driver specific struct bcap_fh, as this is handled by core. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media/platform/blackfin/bfin_captu

[PATCH v4 13/17] media: blackfin: bfin_capture: add support for VB2_DMABUF

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch adds support for VB2_DMABUF. Signed-off-by: Lad, Prabhakar Acked-by: Scott Jiang Tested-by: Scott Jiang --- drivers/media/platform/blackfin/bfin_capture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/blackfin/bfi

[PATCH v4 00/17] media: blackfin: bfin_capture enhancements

2015-03-08 Thread Lad Prabhakar
From: "Lad, Prabhakar" This patch series, enhances blackfin capture driver with vb2 helpers. Changes for v4: 1: Improved commit message for path 4/17 and 5/17. 2: Added Ack's from Scott to patches 1-15 3: Two new patches 16/17 and 17/17 Lad, Prabhakar (17): media: blackfin: bfin_capture: drop

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

2015-03-08 Thread Mauro Carvalho Chehab
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 understanding from what's there at the keymap definitions found at: http://xtreamerdev.googlecode.com/files/CEC_Specs.pdf

[PATCH] v4l: mt9v032: Consider control initialization errors as fatal

2015-03-08 Thread Laurent Pinchart
The device requires control to be properly operated, they're not optional. Signed-off-by: Laurent Pinchart --- drivers/media/i2c/mt9v032.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/mt9v032.c b/drivers/media/i2c/mt9v032.c index a6ea091..1ca82d4

[PATCH] v4l: mt9v032: Add OF support

2015-03-08 Thread Laurent Pinchart
Parse DT properties into a platform data structure when a DT node is available. Signed-off-by: Laurent Pinchart --- .../devicetree/bindings/media/i2c/mt9v032.txt | 41 ++ MAINTAINERS| 1 + drivers/media/i2c/mt9v032.c

[PATCH] v4l: mt9p031: Convert to the gpiod API

2015-03-08 Thread Laurent Pinchart
This simplifies platform data and DT integration. Signed-off-by: Laurent Pinchart --- drivers/media/i2c/mt9p031.c | 31 +++ include/media/mt9p031.h | 2 -- 2 files changed, 11 insertions(+), 22 deletions(-) diff --git a/drivers/media/i2c/mt9p031.c b/drivers/medi

Re: [PATCH] media: i2c: mt9p031: add support for asynchronous probing

2015-03-08 Thread Laurent Pinchart
Hi Prabhakar, Thank you for the patch. On Friday 27 February 2015 16:10:19 Lad Prabhakar wrote: > From: "Lad, Prabhakar" > > Both synchronous and asynchronous mt9p031 subdevice probing > is supported by this patch. > > Signed-off-by: Lad, Prabhakar I have the exact same patch in my tree, so

Re: [RFC] Supporting DVB device in MC

2015-03-08 Thread Hans Verkuil
On 03/08/2015 01:03 PM, Mauro Carvalho Chehab wrote: > As nobody replied with a comment to change the above summary, let's continue > the discussions with my proposal about how to solve the issues. Sorry, I didn't have time. I'm tentatively planning to look at this either tomorrow or Wednesday. R

Re: [RFC] Supporting DVB device in MC

2015-03-08 Thread Mauro Carvalho Chehab
Em Fri, 6 Mar 2015 10:15:38 -0300 Mauro Carvalho Chehab escreveu: > This e-mail contains the results of the discussions we had at #v4l irc > channel, related to how to properly export DVB via the Media Controller > API. A good part of the content of e-mail was written by Sakari Ailus. > > Let's

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

2015-03-08 Thread Lad Prabhakar
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: Benoit Parrot Signed-off-by: Lad, Prabhakar --- Sorry quick new version, I need to get this merg

[GIT PULL FOR v4.1] uvcvideo changes

2015-03-08 Thread Laurent Pinchart
Hi Mauro, The following changes since commit 3d945be05ac1e806af075e9315bc1b3409adae2b: [media] mn88473: simplify bandwidth registers setting code (2015-03-03 13:09:12 -0300) are available in the git repository at: git://linuxtv.org/pinchartl/media.git uvc/next for you to fetch changes up

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

2015-03-08 Thread Sean Young
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 RC core. Is there a simple way to switch to > an empty map > from the kernel? There is the ir_setkeyta