Re: [PATCHv2] serio: add hangup support

2016-08-17 Thread Hans Verkuil
Hi Dmitry, I don't know if you processed this patch yet, but if not, can you update a small mistake in the commit log? See below. On 08/03/16 17:26, Dmitry Torokhov wrote: > On Wed, Aug 03, 2016 at 01:00:44PM +0200, Hans Verkuil wrote: >> The Pulse-Eight USB CEC adapter is a usb device that shows

Re: [RESEND PATCH] [media] vb2: Fix vb2_core_dqbuf() kernel-doc

2016-08-17 Thread Sakari Ailus
Hi Javier, On Tue, Aug 16, 2016 at 10:20:16AM -0400, Javier Martinez Canillas wrote: > The kernel-doc has the wrong function name and also the pindex > parameter is missing in the documentation. > > Signed-off-by: Javier Martinez Canillas > > --- > > This patch was posted some weeks ago but I

Re: Linux support for current StarTech analog video capture device (SAA711xx)

2016-08-17 Thread Andrey Utkin
On Tue, Aug 16, 2016 at 09:29:49PM +, Steve Preston wrote: > I realize this is a long shot but I was directed to this mailing list as one > possibility  . >   > I work with a group of amateur astronomers who use analog video cameras to > record occultations ( www.occulations.org ).  Several

Re: [PATCH 0/7] doc-rst: sphinx sub-folders & parseheaders directive

2016-08-17 Thread Daniel Vetter
On Wed, Aug 17, 2016 at 7:44 AM, Markus Heiser wrote: - Along those lines, is parse-header the right name for this thing? "Parsing" isn't necessarily the goal of somebody who uses this directive, right? They want to extract documentation information. Can we come up with a bet

[PATCH v2 0/4] R-Car VSP1 1-D Histogram support

2016-08-17 Thread Laurent Pinchart
Hello, This patch series implements support for the Renesas R-Car VSP1 1-D histogram generator (HGO). It is based on top of the latest media tree's master branch, and available for convenience at git://linuxtv.org/pinchartl/media.git vsp1/hgo The series starts with the implementation and

[PATCH v2 2/4] v4l: Define a pixel format for the R-Car VSP1 1-D histogram engine

2016-08-17 Thread Laurent Pinchart
The format is used on the R-Car VSP1 video queues that carry 1-D histogram statistics data. Signed-off-by: Laurent Pinchart Acked-by: Sakari Ailus --- Changes since v1: - Rebased on top of the DocBook to reST conversion Documentation/media/uapi/v4l/meta-formats.rst | 15 ++ .../media/ua

[PATCH v2 3/4] v4l: vsp1: Add HGO support

2016-08-17 Thread Laurent Pinchart
The HGO is a Histogram Generator One-Dimension. It computes per-channel histograms over a configurable region of the image with optional subsampling. Signed-off-by: Laurent Pinchart --- Changes since v1: - Added VIDIOC_ENUM_FMT support in the vsp1 driver - Made the pixel format configurable in t

[PATCH v2 4/4] v4l: vsp1: Don't create HGO entity when the userspace API is disabled

2016-08-17 Thread Laurent Pinchart
The HGO is never used in the DRM pipeline, there is thus no need to create an HGO entity when the userspace API is disabled. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vsp1/

[PATCH v2 1/4] v4l: Add metadata buffer type and format

2016-08-17 Thread Laurent Pinchart
The metadata buffer type is used to transfer metadata between userspace and kernelspace through a V4L2 buffers queue. It comes with a new metadata capture capability and format description. Signed-off-by: Laurent Pinchart Tested-by: Guennadi Liakhovetski --- Changes since v1: - Rebased on top o

Re: [RFC PATCH 1/7] ov7670: add media controller support

2016-08-17 Thread Laurent Pinchart
Hi Hans, Thank you for the patch. On Wednesday 17 Aug 2016 08:29:37 Hans Verkuil wrote: > From: Hans Verkuil > > Add media controller support. > > Signed-off-by: Hans Verkuil > --- > drivers/media/i2c/ov7670.c | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/drivers/

Re: [RFC PATCH 2/7] ov7670: call v4l2_async_register_subdev

2016-08-17 Thread Laurent Pinchart
Hi Hans, Thank you for the patch. On Wednesday 17 Aug 2016 08:29:38 Hans Verkuil wrote: > From: Hans Verkuil > > Add v4l2-async support for this driver. > > Signed-off-by: Hans Verkuil > --- > drivers/media/i2c/ov7670.c | 8 > 1 file changed, 8 insertions(+) > > diff --git a/driver

Re: [RFC PATCH 4/7] ov7670: get xvclk

2016-08-17 Thread Laurent Pinchart
Hi Hans, Thank you for the patch. On Wednesday 17 Aug 2016 08:29:40 Hans Verkuil wrote: > From: Hans Verkuil > > Get the clock for this sensor. > > Signed-off-by: Hans Verkuil > --- > drivers/media/i2c/ov7670.c | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/driver

Re: [RFC PATCH 5/7] ov7670: add devicetree support

2016-08-17 Thread Laurent Pinchart
Hi Hans, Thank you for the patch. On Wednesday 17 Aug 2016 08:29:41 Hans Verkuil wrote: > From: Hans Verkuil > > Add DT support. Use it to get the reset and pwdn pins (if there are any). > Tested with one sensor requiring reset/pwdn and one sensor that doesn't > have reset/pwdn pins. > > Signe

Re: [PATCH 0/3] doc-rst: parseheaders directive

2016-08-17 Thread Jani Nikula
On Fri, 12 Aug 2016, Markus Heiser wrote: > this series imlpements a new directive ".. parseheaders::" as a replacement > for > the media/Makefile, suggested by Jani [1]. Thanks for doing this work. I didn't do a thorough review, but at a high level I think it is what we want. > doc-rst: pars

Re: [PATCH] [media] rcar-fcp: Make sure rcar_fcp_enable() returns 0 on success

2016-08-17 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Tuesday 09 Aug 2016 17:36:41 Geert Uytterhoeven wrote: > When resuming from suspend-to-RAM on r8a7795/salvator-x: > > dpm_run_callback(): pm_genpd_resume_noirq+0x0/0x90 returns 1 > PM: Device fe94.fdp1 failed to resume noirq: error 1 > dpm_ru

[PATCH] v4l: rcar-fcp: Don't force users to check for disabled FCP support

2016-08-17 Thread Laurent Pinchart
The rcar_fcp_enable() function immediately returns successfully when the FCP device pointer is NULL to avoid forcing the users to check the FCP device manually before every call. However, the stub version of the function used when the FCP driver is disabled returns -ENOSYS unconditionally, resultin

Re: [PATCH v10 3/3] MAINTAINERS: atmel-isc: add entry for Atmel ISC

2016-08-17 Thread Nicolas Ferre
Le 16/08/2016 à 23:05, Songjun Wu a écrit : > Add the MAINTAINERS' entry for Microchip / Atmel Image Sensor Controller. > > Signed-off-by: Songjun Wu Acked-by: Nicolas Ferre > --- > > Changes in v10: None > Changes in v9: None > Changes in v8: None > Changes in v7: None > Changes in v6: None

[PATCH v2] v4l: vsp1: Report device model and rev through media device information

2016-08-17 Thread Laurent Pinchart
Instead of hardcoding the media device model and hardware revision to "VSP1" and 0 respectively, report the actual hardware device model and IP version number. Signed-off-by: Laurent Pinchart --- drivers/media/platform/vsp1/vsp1.h | 2 ++ drivers/media/platform/vsp1/vsp1_drv.c | 21

Re: [PATCH] v4l: rcar-fcp: Don't force users to check for disabled FCP support

2016-08-17 Thread Geert Uytterhoeven
On Wed, Aug 17, 2016 at 3:32 PM, Laurent Pinchart wrote: > The rcar_fcp_enable() function immediately returns successfully when the > FCP device pointer is NULL to avoid forcing the users to check the FCP > device manually before every call. However, the stub version of the > function used when th

Re: [RESEND PATCH] [media] vb2: Fix vb2_core_dqbuf() kernel-doc

2016-08-17 Thread Javier Martinez Canillas
Hello Sakari, On 08/17/2016 05:01 AM, Sakari Ailus wrote: > Hi Javier, > > On Tue, Aug 16, 2016 at 10:20:16AM -0400, Javier Martinez Canillas wrote: >> The kernel-doc has the wrong function name and also the pindex >> parameter is missing in the documentation. >> >> Signed-off-by: Javier Martinez

[PATCH v2] [media] vb2: Fix vb2_core_dqbuf() kernel-doc

2016-08-17 Thread Javier Martinez Canillas
The kernel-doc has the wrong function name and also the pindex parameter is missing in the documentation. Signed-off-by: Javier Martinez Canillas Acked-by: Sakari Ailus --- Changes in v2: - Change pindex parameter kernel-doc. Suggested by Sakari Ailus. drivers/media/v4l2-core/videobuf2-core.

[RFC PATCH 2/2] [media] vb2: move dma-buf unmap from __vb2_dqbuf() to vb2_done_work()

2016-08-17 Thread Javier Martinez Canillas
Currently the dma-buf is unmapped when the buffer is dequeued by userspace but it's not used anymore after the driver finished processing the buffer. So instead of doing the dma-buf unmapping in __vb2_dqbuf(), it can be made in vb2_done_work() after the driver notified that has finished processing

[RFC PATCH 0/2] [media] vb2: defer part of vb2_buffer_done() and move dma-buf unmap from DQBUF

2016-08-17 Thread Javier Martinez Canillas
Hello, This patch series attempt to do the dma-buf unmap as soon as possible, once the driver has finished using the buffer. Instead of waiting until DQBUF to do the unmap. Patch #1 splits vb2_buffer_done() and moves part of its logic to a workqueue to avoid calling the vb2 .finish mem ops. Since

[RFC PATCH 1/2] [media] vb2: defer sync buffers from vb2_buffer_done() with a workqueue

2016-08-17 Thread Javier Martinez Canillas
The vb2_buffer_done() function can be called from interrupt context but it currently calls the vb2 memory allocator .finish operation to sync buffers and this can take a long time, so it's not suitable to be done there. This patch defers part of the vb2_buffer_done() logic to a worker thread to av

Adding Linux support for the Ion Video 2 PC analog video capture device (em28xx)

2016-08-17 Thread Alexandre-Xavier Labonté-Lamoureux
Hi, I have an Ion Video 2 PC and a StarTech svid2usb23 (id: 0xeb1a, 0x5051). I have documented them here: https://linuxtv.org/wiki/index.php/Ion_Video_2_PC I can get them to be recognized by patching the em28xx driver. I use "EM2860_BOARD_TVP5150_REFERENCE_DESIGN". (The patch can be found here: h

Re: [RFC PATCH 1/2] [media] vb2: defer sync buffers from vb2_buffer_done() with a workqueue

2016-08-17 Thread Sakari Ailus
Hi Javier, On Wed, Aug 17, 2016 at 02:28:56PM -0400, Javier Martinez Canillas wrote: > The vb2_buffer_done() function can be called from interrupt context but it > currently calls the vb2 memory allocator .finish operation to sync buffers > and this can take a long time, so it's not suitable to be

Re: [RFC PATCH 1/2] [media] vb2: defer sync buffers from vb2_buffer_done() with a workqueue

2016-08-17 Thread Javier Martinez Canillas
Hello Sakari, Thanks a lot for your feedback. On 08/17/2016 03:50 PM, Sakari Ailus wrote: > Hi Javier, > > On Wed, Aug 17, 2016 at 02:28:56PM -0400, Javier Martinez Canillas wrote: >> The vb2_buffer_done() function can be called from interrupt context but it >> currently calls the vb2 memory all

Re: [PATCH v4] [media] vimc: Virtual Media Controller core, capture and sensor

2016-08-17 Thread Helen Koike
Hi Hans On 01-07-2016 09:39, Hans Verkuil wrote: Hi Helen, Better late than never, but I finally have time for a review, mostly with a eye for V4L2 issues. Thank you for your review, I'll incorporate your suggestions in v5. I am also preparing a patch series that integrates the tpg and have

[PATCH v5] [media] vimc: Virtual Media Controller core, capture and sensor

2016-08-17 Thread Helen Koike
From: Helen Fornazier First version of the Virtual Media Controller. Add a simple version of the core of the driver, the capture and sensor nodes in the topology, generating a grey image in a hardcoded format. Signed-off-by: Helen Koike --- Patch based in media/master tree, and available here

cron job: media_tree daily build: WARNINGS

2016-08-17 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 Aug 18 04:00:19 CEST 2016 git branch: test git hash: b6aa39228966e0d3f0bc3306be1892f87792903a gcc versi

Re: [RFC PATCH 6/7] atmel-isi: remove dependency of the soc-camera framework

2016-08-17 Thread Wu, Songjun
Hi Hans, Thank you for the patch. On 8/17/2016 14:29, Hans Verkuil wrote: From: Hans Verkuil This patch converts the atmel-isi driver from a soc-camera driver to a driver that is stand-alone. Signed-off-by: Hans Verkuil --- drivers/media/platform/soc_camera/Kconfig |3 +- drivers/m