Re: [PATCH v4 8/8] r8a7791-koelsch.dts: add HDMI input

2016-05-11 Thread Simon Horman
On Wed, May 11, 2016 at 04:02:56PM +0200, Ulrich Hecht wrote: > From: Hans Verkuil > > Add support in the dts for the HDMI input. Based on the Lager dts > patch from Ultich Hecht. Please use "ARM: dts: koelsch:" as the prefix for this patch title. Thanks -- To unsubscribe

cron job: media_tree daily build: OK

2016-05-11 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 May 12 04:00:23 CEST 2016 git branch: test git hash: d1532d5575696965a52b19553dd7dacf75f3fec5 gcc

[PATCH/RFC v2 2/4] v4l: Add metadata video device type

2016-05-11 Thread Laurent Pinchart
The metadata video device is used to transfer metadata between userspace and kernelspace. It supports the metadata buffer type only. Signed-off-by: Laurent Pinchart --- Documentation/DocBook/media/v4l/dev-meta.xml | 10 +++---

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

2016-05-11 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 --- .../DocBook/media/v4l/pixfmt-meta-vsp1-hgo.xml | 307

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

2016-05-11 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 --- drivers/media/platform/Kconfig| 1 +

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

2016-05-11 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 ---

[PATCH/RFC v2 0/4] Meta-data video device type

2016-05-11 Thread Laurent Pinchart
Hello, This RFC patch series is a second attempt at adding support for passing statistics data to userspace using a standard API. The core requirements haven't changed. Statistics data capture requires zero-copy and decoupling statistics buffers from images buffers, in order to make statistics

Re: Patch: V4L stable versions 4.5.3 and 4.5.4

2016-05-11 Thread Sakari Ailus
Hi Mauro and David, On Wed, May 11, 2016 at 05:38:23PM -0300, Mauro Carvalho Chehab wrote: > Hi David, > > Em Wed, 11 May 2016 20:05:22 +0100 > David R escreveu: > > > On 11/05/16 19:47, David R wrote: > > > Hi > > > > > > Please consider applying the attached patch (or

Re: Patch: V4L stable versions 4.5.3 and 4.5.4

2016-05-11 Thread Mauro Carvalho Chehab
Hi David, Em Wed, 11 May 2016 20:05:22 +0100 David R escreveu: > On 11/05/16 19:47, David R wrote: > > Hi > > > > Please consider applying the attached patch (or something like it) to > > V4L2, and whatever is appropriate to the mainstream kernel. Without this > > my

Re: Patch: V4L stable versions 4.5.3 and 4.5.4

2016-05-11 Thread David R
On 11/05/16 19:47, David R wrote: > Hi > > Please consider applying the attached patch (or something like it) to > V4L2, and whatever is appropriate to the mainstream kernel. Without this > my media server crashes and burns at boot. > > See https://lkml.org/lkml/2016/5/7/88 for more details > >

Patch: V4L stable versions 4.5.3 and 4.5.4

2016-05-11 Thread David R
Hi Please consider applying the attached patch (or something like it) to V4L2, and whatever is appropriate to the mainstream kernel. Without this my media server crashes and burns at boot. See https://lkml.org/lkml/2016/5/7/88 for more details Thanks David ---

[PATCH v2] media: dvb_ringbuffer: Add memory barriers

2016-05-11 Thread Soeren Moch
Implement memory barriers according to Documentation/circular-buffers.txt: - use smp_store_release() to update ringbuffer read/write pointers - use smp_load_acquire() to load write pointer on reader side - use ACCESS_ONCE() to load read pointer on writer side This fixes data stream corruptions

Re: [PATCH] [media] v4l2-async: Always unregister the subdev on failure

2016-05-11 Thread Alban Bedel
On Wed, 11 May 2016 12:22:44 -0400 Javier Martinez Canillas wrote: > Hello Alban, > > On 05/11/2016 11:40 AM, Alban Bedel wrote: > > In v4l2_async_test_notify() if the registered_async callback or the > > complete notifier returns an error the subdev is not unregistered.

[PATCH] Revert "[media] videobuf2-v4l2: Verify planes array in buffer dequeueing"

2016-05-11 Thread Mauro Carvalho Chehab
This patch causes a Kernel panic when called on a DVB driver. This reverts commit 2c1f6951a8a82e6de0d82b1158b5e493fc6c54ab. Cc: Sakari Ailus Cc: Hans Verkuil Cc: sta...@vgar.kernel.org Fixes: 2c1f6951a8a8 ("[media] videobuf2-v4l2: Verify

Re: [PATCH] [media] v4l2-async: Always unregister the subdev on failure

2016-05-11 Thread Javier Martinez Canillas
Hello Alban, On 05/11/2016 11:40 AM, Alban Bedel wrote: > In v4l2_async_test_notify() if the registered_async callback or the > complete notifier returns an error the subdev is not unregistered. > This leave paths where v4l2_async_register_subdev() can fail but > leave the subdev still

[PATCH] [media] v4l2-async: Always unregister the subdev on failure

2016-05-11 Thread Alban Bedel
In v4l2_async_test_notify() if the registered_async callback or the complete notifier returns an error the subdev is not unregistered. This leave paths where v4l2_async_register_subdev() can fail but leave the subdev still registered. Add the required calls to v4l2_device_unregister_subdev() to

Re: [PATCH 4/7] [media] ir-rx51: add DT support to driver

2016-05-11 Thread Rob Herring
On Tue, May 10, 2016 at 04:18:27AM +0200, Sebastian Reichel wrote: > Hi, > > On Mon, May 09, 2016 at 04:07:35PM -0500, Rob Herring wrote: > > There's already a pwm-led binding that can be used. Though there > > may be missing consumer IR to LED subsystem support in the kernel. > > You could list

[PATCH v4 5/8] media: rcar-vin: add DV timings support

2016-05-11 Thread Ulrich Hecht
Adds ioctls DV_TIMINGS_CAP, ENUM_DV_TIMINGS, G_DV_TIMINGS, S_DV_TIMINGS, and QUERY_DV_TIMINGS. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 82 + 1 file changed, 82 insertions(+) diff --git

[PATCH v4 1/8] v4l: subdev: Add pad config allocator and init

2016-05-11 Thread Ulrich Hecht
From: Laurent Pinchart Add a new subdev operation to initialize a subdev pad config array, and a helper function to allocate and initialize the array. This can be used by bridge drivers to implement try format based on subdev pad operations. Signed-off-by: Laurent

[PATCH v4 7/8] ARM: dts: lager: Add entries for VIN HDMI input support

2016-05-11 Thread Ulrich Hecht
From: William Towle Add DT entries for vin0, vin0_pins, and adv7612. Sets the 'default-input' property for ADV7612, enabling image and video capture without the need to have userspace specifying routing. Signed-off-by: William Towle

[PATCH v4 8/8] r8a7791-koelsch.dts: add HDMI input

2016-05-11 Thread Ulrich Hecht
From: Hans Verkuil Add support in the dts for the HDMI input. Based on the Lager dts patch from Ultich Hecht. Signed-off-by: Hans Verkuil [uli: removed "renesas," prefixes from pfc nodes] Signed-off-by: Ulrich Hecht

[PATCH v4 3/8] media: rcar_vin: Use correct pad number in try_fmt

2016-05-11 Thread Ulrich Hecht
Fix rcar_vin_try_fmt's use of an inappropriate pad number when calling the subdev set_fmt function - for the ADV7612, IDs should be non-zero. Signed-off-by: William Towle Reviewed-by: Rob Taylor Acked-by: Hans Verkuil

[PATCH v4 2/8] media: adv7604: automatic "default-input" selection

2016-05-11 Thread Ulrich Hecht
From: William Towle Add logic such that the "default-input" property becomes unnecessary for chips that only have one suitable input (ADV7611 by design, and ADV7612 due to commit 7111cddd518f ("[media] media: adv7604: reduce support to first (digital) input").

[PATCH v4 4/8] media: rcar-vin: pad-aware driver initialisation

2016-05-11 Thread Ulrich Hecht
Add detection of source pad number for drivers aware of the media controller API, so that rcar-vin can create device nodes to support modern drivers such as adv7604.c (for HDMI on Lager) and the converted adv7180.c (for composite) underneath. Building rcar_vin gains a dependency on

[PATCH v4 6/8] media: rcar-vin: initialize EDID data

2016-05-11 Thread Ulrich Hecht
Initializes the decoder subdevice with a fixed EDID blob. Signed-off-by: Ulrich Hecht --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 46 + 1 file changed, 46 insertions(+) diff --git a/drivers/media/platform/rcar-vin/rcar-v4l2.c

[PATCH v4 0/8] Lager/Koelsch board HDMI input support

2016-05-11 Thread Ulrich Hecht
Hi! This series implements Lager/Koelsch HDMI input support on top of version 6 of Niklas's rcar-vin rewrite ("[PATCHv6] [media] rcar-vin: add Renesas R-Car VIN driver"). This revision addresses the issues found in Hans Verkuil's review of the series (except for the EDID intialization, which I

[PATCH RESEND^3] [media] staging/davinci_vfpe: allow modular build

2016-05-11 Thread Arnd Bergmann
It has never been possible to actually build this driver as a loadable module, only built-in because the Makefile attempts to build each file into its own module and fails: ERROR: "mbus_to_pix" [drivers/staging/media/davinci_vpfe/vpfe_video.ko] undefined! ERROR: "vpfe_resizer_register_entities"

[GIT PULL FOR v4.7] Renesas VSP updates

2016-05-11 Thread Laurent Pinchart
Hi Mauro, The following changes since commit aff093d4bbca91f543e24cde2135f393b8130f4b: [media] exynos-gsc: avoid build warning without CONFIG_OF (2016-05-09 18:38:33 -0300) are available in the git repository at: git://linuxtv.org/pinchartl/media.git vsp1/next for you to fetch changes up

Re: [PATCH v2.1] dt-bindings: Add Renesas R-Car FCP DT bindings

2016-05-11 Thread Rob Herring
On Wed, May 11, 2016 at 03:36:30PM +0300, Laurent Pinchart wrote: > The FCP is a companion module of video processing modules in the Renesas > R-Car Gen3 SoCs. It provides data compression and decompression, data > caching, and conversion of AXI transactions in order to reduce the > memory

Re: [PATCH v2.1] dt-bindings: Add Renesas R-Car FCP DT bindings

2016-05-11 Thread Geert Uytterhoeven
On Wed, May 11, 2016 at 2:36 PM, Laurent Pinchart wrote: > The FCP is a companion module of video processing modules in the Renesas > R-Car Gen3 SoCs. It provides data compression and decompression, data > caching, and conversion of AXI transactions in

[PATCH v2.1] dt-bindings: Add Renesas R-Car FCP DT bindings

2016-05-11 Thread Laurent Pinchart
The FCP is a companion module of video processing modules in the Renesas R-Car Gen3 SoCs. It provides data compression and decompression, data caching, and conversion of AXI transactions in order to reduce the memory bandwidth. Signed-off-by: Laurent Pinchart

[patch V4 13/31] media: use parity8 in vivid-vbi-gen.c

2016-05-11 Thread zengzhaoxiu
From: Zhaoxiu Zeng Signed-off-by: Zhaoxiu Zeng --- drivers/media/platform/vivid/vivid-vbi-gen.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/media/platform/vivid/vivid-vbi-gen.c

[PATCH v2] [media] v4l2-async: Pass the v4l2_async_subdev to the unbind callback

2016-05-11 Thread Alban Bedel
v4l2_async_cleanup() is always called before calling the unbind() callback. However v4l2_async_cleanup() clears the asd member, so when calling the unbind() callback the v4l2_async_subdev is always NULL. To fix this save the asd before calling v4l2_async_cleanup(). Signed-off-by: Alban Bedel

[patch V4 14/31] media: use parity functions in saa7115

2016-05-11 Thread zengzhaoxiu
From: Zhaoxiu Zeng Signed-off-by: Zhaoxiu Zeng --- drivers/media/i2c/saa7115.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/media/i2c/saa7115.c b/drivers/media/i2c/saa7115.c index d2a1ce2..4c22df8

[patch V4 00/31] bitops: add parity functions

2016-05-11 Thread zengzhaoxiu
From: Zhaoxiu Zeng When I do "grep parity -r linux", I found many parity calculations distributed in many drivers. This patch series does: 1. provide generic and architecture-specific parity calculations 2. remove drivers' local parity calculations, use bitops'

[PATCH] [media] vcodec: mediatek: fix sparse warning

2016-05-11 Thread Tiffany Lin
This patch fix sparse warning when running with parameters: C=2 CF="-D__CHECK_ENDIAN__" Signed-off-by: Tiffany Lin Signed-off-by: PoChun Lin --- .../media/platform/mtk-vcodec/venc/venc_vp8_if.c |7 ++- 1 file changed, 6

[GIT PULL FOR v4.7 v2] Add HDMI CEC framework

2016-05-11 Thread Hans Verkuil
Hi Mauro, Here is the pull request for the HDMI CEC framework. The code of this pull request is identical to the v16 patch series: http://www.mail-archive.com/linux-media@vger.kernel.org/msg97057.html plus these fixes: https://patchwork.linuxtv.org/patch/34262/

[GIT PULL FOR v4.7] uvcvideo fixes

2016-05-11 Thread Laurent Pinchart
Hi Mauro, The following changes since commit aff093d4bbca91f543e24cde2135f393b8130f4b: [media] exynos-gsc: avoid build warning without CONFIG_OF (2016-05-09 18:38:33 -0300) are available in the git repository at: git://linuxtv.org/pinchartl/media.git uvc/next for you to fetch changes up

[PATCH 0/3] CEC Framework fixes

2016-05-11 Thread Hans Verkuil
From: Hans Verkuil While stress testing my CEC Framework v16 patch series found here: http://www.spinics.net/lists/linux-input/msg44422.html I discovered a few issues when dealing with HDMI disconnects. The adv7511 patch fixes a potential race condition (never seen it

[PATCH 3/3] cec: correctly cancel delayed work when the CEC adapter is disabled

2016-05-11 Thread Hans Verkuil
From: Hans Verkuil When cleaning up pending work from the wait_queue list, make sure to cancel the delayed work. Otherwise nasty kernel oopses will occur when the timer goes off and the cec_data struct has disappeared. Signed-off-by: Hans Verkuil

[PATCH 2/3] cec: remove WARN_ON

2016-05-11 Thread Hans Verkuil
From: Hans Verkuil If a transmit is issued and before cec_transmit_done() is called the HDMI cable is unplugged, then it is possible that adap->transmitting == NULL. So drop the WARN_ON, explain why it can happen and just ignore the tranmit. Signed-off-by: Hans Verkuil

[PATCH 1/3] adv7511: always update CEC irq mask

2016-05-11 Thread Hans Verkuil
From: Hans Verkuil Instead of doing: if (state->cec_enabled_adap) adv7511_wr_and_or(sd, 0x95, 0xc0, enable ? 0x39 : 0x00); do: adv7511_wr_and_or(sd, 0x95, 0xc0, (state->cec_enabled_adap && enable) ? 0x39 :