Re: [PATCH v2 2/3] media: uapi: h264: Add the concept of decoding mode

2019-06-27 Thread Tomasz Figa
On Thu, Jun 27, 2019 at 12:26 AM Boris Brezillon wrote: > > On Wed, 26 Jun 2019 13:30:38 +0200 > Paul Kocialkowski wrote: > > > Hi, > > > > On Mon, 2019-06-10 at 10:52 +0200, Boris Brezillon wrote: > > > Some stateless decoders don't support per-slice decoding (or at least > > > not in a way that

GOOD DAY

2019-06-27 Thread Chambers, Marcine
I am Vice Chairman of Hang Seng Bank, I have Important Matter to Discuss with you concerning my late client, Died without a NEXT OF KIN. Send me your private email for full details information. email me at (chienkraym...@outlook.com) Mail:infocar...@aim.com Regards Dr.Raymond Chien Kuo Fung

cron job: media_tree daily build: ERRORS

2019-06-27 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: Fri Jun 28 05:00:13 CEST 2019 media-tree git hash:f81cbfc4f82a75ca0a2dc181a9c93b88f0e6509d media_build gi

Re: hdpvr mutex deadlock on kernel 5.1.x

2019-06-27 Thread Keith Pyle
On 06/20/19 06:33, Hans Verkuil wrote: On 6/19/19 4:29 AM, Keith Pyle wrote: On 06/18/19 02:16, Hans Verkuil wrote: Hi Keith, On 6/18/19 6:17 AM, Keith Pyle wrote: We made the suggested change, compiled, installed, and rebooted. There was some progress - test 2 (turning the HD-PVR off) no lo

Re: [PATCH v3] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Steve Longerbeam
Thanks Fabio, Reviewed-by: Steve Longerbeam On 6/27/19 3:29 PM, Fabio Estevam wrote: From: Ezequiel Garcia Not all sensors will be able to guarantee a proper initial state. This may be either because the driver is not properly written, or (probably unlikely) because the hardware won't suppor

[PATCH v3] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Fabio Estevam
From: Ezequiel Garcia Not all sensors will be able to guarantee a proper initial state. This may be either because the driver is not properly written, or (probably unlikely) because the hardware won't support it. While the right solution in the former case is to fix the sensor driver, the real w

Re: [PATCH v2] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Steve Longerbeam
On 6/27/19 3:13 PM, Fabio Estevam wrote: From: Ezequiel Garcia Not all sensors will be able to guarantee a proper initial state. This may be either because the driver is not properly written, or (probably unlikely) because the hardware won't support it. While the right solution in the forme

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Fabio Estevam
On Thu, Jun 27, 2019 at 3:45 PM Ezequiel Garcia wrote: > I think Philipp's suggestions looks very good, both the text and keeping > the phy state. I think both should be kept in the warning. > > Fabio: feel free to submit a v2, or let me know so I'll add it to my TODO. I have just sent a v2 with

[PATCH v2] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Fabio Estevam
From: Ezequiel Garcia Not all sensors will be able to guarantee a proper initial state. This may be either because the driver is not properly written, or (probably unlikely) because the hardware won't support it. While the right solution in the former case is to fix the sensor driver, the real w

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Steve Longerbeam
On 6/27/19 5:56 AM, Philipp Zabel wrote: Hi Fabio, On Thu, 2019-06-27 at 09:38 -0300, Fabio Estevam wrote: Hi Philipp, On Thu, Jun 27, 2019 at 5:43 AM Philipp Zabel wrote: Are there any visual artifacts in the first frame(s) in this case? I do not observe visual artifacts when running g

[PATCH 30/31] staging: bcm2835-camera: Set the field value within ach buffer

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Fixes a v4l2-compliance failure v4l2-test-buffers.cpp(415): g_field() == V4L2_FIELD_ANY The driver only ever produces progresive frames, so field should always be set to V4L2_FIELD_NONE. Signed-off-by: Dave Stevenson --- drivers/staging/vc04_services/bcm2835-camera/bcm283

[PATCH 31/31] staging: bcm2835-camera: Correct ctrl min/max/step/def to 64bit

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson The V4L2 control API was expanded to take 64 bit values in commit 0ba2aeb6dab (Apr 16 2014), but as this driver wasn't in the mainline kernel at that point this was overlooked. Update to use 64 bit values. This also fixes a couple of warnings in 64 bit builds. Signed-off-by

[PATCH 29/31] staging: bcm2835-camera: Add sanity checks for queue_setup/CREATE_BUFS

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Fixes a v4l2-compliance failure when passed a buffer that is too small. queue_setup wasn't handling the case where !(*nplanes), as used from CREATE_BUFS and requiring the driver to sanity check the provided buffer parameters. It was assuming that it was always being used in t

[PATCH 27/31] staging: mmal-vchiq: Avoid use of bool in structures

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Fixes up a checkpatch error "Avoid using bool structure members because of possible alignment issues". Signed-off-by: Dave Stevenson --- drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c | 12 ++-- drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.h |

[PATCH 28/31] staging: bcm2835-camera: Fix stride on RGB3/BGR3 formats

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson RGB3/BGR3 end up being 3 bytes per pixel, which meant that the alignment code ended up trying to align using bitmasking with a mask of 96. That doesn't work, so switch to an arithmetic alignment for those formats. Signed-off-by: Dave Stevenson --- .../vc04_services/bcm2835

Re: [PATCH 19/31] staging: bcm2835-camera: Ensure timestamps never go backwards.

2019-06-27 Thread Nicolas Dufresne
Le jeudi 27 juin 2019 à 20:56 +0200, Stefan Wahren a écrit : > From: Dave Stevenson > > There is an awkward situation with H264 header bytes. Currently > they are returned with a PTS of 0 because they aren't associated > with a timestamped frame to encode. These are handled by either > returning

Re: [PATCH 01/31] staging: bcm2835-camera: Ensure H264 header bytes get a sensible timestamp

2019-06-27 Thread Nicolas Dufresne
Hi Dave, Le jeudi 27 juin 2019 à 20:55 +0200, Stefan Wahren a écrit : > From: Dave Stevenson > > H264 header come from VC with 0 timestamps, which means they get a > strange timestamp when processed with VC/kernel start times, > particularly if used with the inline header option. > Remember the

Re: [PATCH v2] keytable: Add keymap test

2019-06-27 Thread Sean Young
On Thu, Jun 27, 2019 at 10:13:56AM +0200, Bastien Nocera wrote: > This new test will try to parse all the ".toml" files in the directory > path passed to it, error'ing out on the first parsing problem. > > Run as "make check" in the keytable directory. Good catch, and I like your solution. It ne

[PATCH 24/31] staging: bcm2835-camera: Use enums for max value in controls

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Controls of type MMAL_CONTROL_TYPE_STD_MENU call v4l2_ctrl_new_std_menu with a max value and a mask. The max value is one of the defined values for the control, however in the config array there are several entries where raw numbers have been used instead. Replace these with

[PATCH 20/31] staging: bcm2835-camera: Add multiple inclusion protection to headers

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson mmal-common.h and mmal-msg.h didn't have the normal ifndef FOO / define FOO / endif protection to stop it being included multiple times. Add it. Signed-off-by: Dave Stevenson --- drivers/staging/vc04_services/bcm2835-camera/mmal-common.h | 3 +++ drivers/staging/vc04_servi

[PATCH 22/31] staging: bcm2835-camera: Fix multiple assignments should be avoided

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Clear checkpatch complaints of "multiple assignments should be avoided" Signed-off-by: Dave Stevenson --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vc04_services/bc

[PATCH 23/31] staging: bcm2835-camera: Fix up mmal-parameters.h

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Fixes up all the checkpatch error "line over 80 characters" in mmal-parameters.h Signed-off-by: Dave Stevenson --- .../vc04_services/bcm2835-camera/mmal-parameters.h | 261 + 1 file changed, 159 insertions(+), 102 deletions(-) diff --git a/drivers/stag

[PATCH 26/31] staging: bcm2835-camera: Remove/amend some obsolete comments

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Remove a todo which has been done. Remove a template line that was redundant. Make a comment clearer as to the non-obvious meaning of a field. Signed-off-by: Dave Stevenson --- drivers/staging/vc04_services/bcm2835-camera/controls.c | 11 +-- 1 file changed, 1 inse

[PATCH 25/31] staging: bcm2835-camera: Correct V4L2_CID_COLORFX_CBCR behaviour

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson With V4L2_CID_COLORFX_CBCR calling ctrl_set_colfx it was incorrectly assigning the colour values to the enable field of dev->colourfx instead of the u and v fields. Correct the assignments. Reported as a Coverity issue Detected by CoverityScan CID#1419711 ("Unused value")

[PATCH 21/31] staging: bcm2835-camera: Unify header inclusion defines

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Most of the headers use ifndef FOO_H, whilst mmal-parameters.h used ifndef __FOO_H. Revise mmal-parameters.h to drop the underscores and make the headers all consistent. Signed-off-by: Dave Stevenson --- drivers/staging/vc04_services/bcm2835-camera/mmal-parameters.h | 4 +

[PATCH 09/31] staging: bcm2835-camera: Fix spacing around operators

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Fix checkpatch warnings over spaces around operators. Many were around operations that can be replaced with the BIT(x) macro, so replace with that where appropriate. Signed-off-by: Dave Stevenson --- .../vc04_services/bcm2835-camera/controls.c| 32 +++--

[PATCH 18/31] staging: bcm2835-camera: Set sequence number correctly

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Set the sequence number in vb2_v4l2_buffer mainly so the latest v4l2-ctl reports the frame rate correctly. Signed-off-by: Dave Stevenson --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 4 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.

[PATCH 17/31] staging: bcm2835-camera: Handle empty EOS buffers whilst streaming

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson The change to mapping V4L2 to MMAL buffers 1:1 didn't handle the condition we get with raw pixel buffers (eg YUV and RGB) direct from the camera's stills port. That sends the pixel buffer and then an empty buffer with the EOS flag set. The EOS buffer wasn't handled and return

[PATCH 03/31] staging: bcm2835-camera: Replace spinlock protecting context_map with mutex

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson The commit "staging: bcm2835-camera: Replace open-coded idr with a struct idr." replaced an internal implementation of an idr with the standard functions and a spinlock. idr_alloc(GFP_KERNEL) can sleep whilst calling kmem_cache_alloc to allocate the new node, but this is not

[PATCH 04/31] staging: bcm2835-camera: Do not bulk receive from service thread

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson vchi_bulk_queue_receive will queue up to a default of 4 bulk receives on a connection before blocking. If called from the VCHI service_callback thread, then that thread is unable to service the VCHI_CALLBACK_BULK_RECEIVED events that would enable the queue call to succeed. A

Re: [RFC] media: uapi: Add VP8 low-level decoder API compound controls.

2019-06-27 Thread Ezequiel Garcia
On Thu, 2019-06-27 at 11:33 +0200, Paul Kocialkowski wrote: > Hi, > > On Wed 13 Feb 19, 18:15, Ezequiel Garcia wrote: > > From: Pawel Osciak > > > > These controls are to be used with the new low-level decoder API for VP8 > > to provide additional parameters for the hardware that cannot parse th

[PATCH 00/31] staging: bcm2835-camera: Improvements

2019-06-27 Thread Stefan Wahren
This is an attempt to help Dave Stevenson to get all the fixes and improvements of the bcm2835-camera driver into mainline. Mostly i only polished the commit logs for upstream. The series based on the latest bugfix V2 of staging: bcm2835-camera: Restore return behavior of ctrl_set_bitrate(). Dav

[PATCH 08/31] staging: bcm2835-camera: Fix comment style violations.

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Fix comment style violations in the header files. Signed-off-by: Dave Stevenson --- .../vc04_services/bcm2835-camera/mmal-msg-format.h | 95 --- .../vc04_services/bcm2835-camera/mmal-msg-port.h | 124 +-- .../vc04_services/bcm2835-camera/mmal

[PATCH 07/31] staging: bcm2835-camera: Remove dead email addresses

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson None of the listed author email addresses were valid. Keep list of authors and the companies they represented. Update my email address. Signed-off-by: Dave Stevenson --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 9 + drivers/staging/vc04_serv

[PATCH 11/31] staging: bcm2835-camera: Fix multiple line dereference errors

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Fix checkpatch errors "Avoid multiple line dereference" Signed-off-by: Dave Stevenson --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-cam

[PATCH 05/31] staging: bcm2835-camera: Correctly denote key frames in encoded data

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Forward MMAL key frame flags to the V4L2 buffers. Signed-off-by: Dave Stevenson --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c b/drivers

[PATCH 13/31] staging: bcm2835-camera: Fix missing lines between items

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Fix checkpatch errors for missing blank lines after variable or structure declarations. Signed-off-by: Dave Stevenson --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/vc04_services/bcm2835

[PATCH 01/31] staging: bcm2835-camera: Ensure H264 header bytes get a sensible timestamp

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson H264 header come from VC with 0 timestamps, which means they get a strange timestamp when processed with VC/kernel start times, particularly if used with the inline header option. Remember the last frame timestamp and use that if set, or otherwise use the kernel start time.

[PATCH 10/31] staging: bcm2835-camera: Reduce length of enum names

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson We have numerous lines over 80 chars, or oddly split. Many of these are due to using long enum names such as MMAL_COMPONENT_CAMERA. Reduce the length of these enum names. Signed-off-by: Dave Stevenson --- .../vc04_services/bcm2835-camera/bcm2835-camera.c | 156 +++

[PATCH 06/31] staging: bcm2835-camera: Return early on errors

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Fix several instances where it is easier to return early on error conditions than handle it as an else clause. As requested by Mauro. Signed-off-by: Dave Stevenson --- .../vc04_services/bcm2835-camera/bcm2835-camera.c | 109 +++-- 1 file changed, 58 insert

[PATCH 02/31] staging: bcm2835-camera: Check the error for REPEAT_SEQ_HEADER

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson When handling for V4L2_CID_MPEG_VIDEO_REPEAT_SEQ_HEADER was added the firmware would reject the setting if H264 hadn't already been selected. This was fixed in the firmware at that point, but to enable backwards compatibility the returned error was ignored. That was Dec 2013

[PATCH 15/31] staging: bcm2835-camera: Ensure all buffers are returned on disable

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson With the recent change to match MMAL and V4L2 buffers there is a need to wait for all MMAL buffers to be returned during stop_streaming. Fixes: 938416707071 ("staging: bcm2835-camera: Remove V4L2/MMAL buffer remapping") Signed-off-by: Dave Stevenson --- .../vc04_services/

[PATCH 19/31] staging: bcm2835-camera: Ensure timestamps never go backwards.

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson There is an awkward situation with H264 header bytes. Currently they are returned with a PTS of 0 because they aren't associated with a timestamped frame to encode. These are handled by either returning the timestamp of the last buffer to have been received, or in the case of

[PATCH 14/31] staging: bcm2835-camera: Fix open parenthesis alignment

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Fix checkpatch "Alignment should match open parenthesis" errors. Signed-off-by: Dave Stevenson --- .../vc04_services/bcm2835-camera/bcm2835-camera.c | 9 .../vc04_services/bcm2835-camera/controls.c| 25 ++ .../vc04_services/bcm2835-ca

[PATCH 16/31] staging: bcm2835-camera: Remove check of the number of buffers supplied

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Before commit "staging: bcm2835-camera: Remove V4L2/MMAL buffer remapping" there was a need to ensure that there were sufficient buffers supplied from the user to cover those being sent to the VPU (always 1). Now the buffers are linked 1:1 between MMAL and V4L2, therefore th

[PATCH 12/31] staging: bcm2835-camera: Fix brace style issues.

2019-06-27 Thread Stefan Wahren
From: Dave Stevenson Fix mismatched or missing brace issues flagged by checkpatch. Signed-off-by: Dave Stevenson --- drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 3 ++- drivers/staging/vc04_services/bcm2835-camera/controls.c | 3 ++- drivers/staging/vc04_services/bcm28

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Ezequiel Garcia
On Thu, 2019-06-27 at 14:56 +0200, Philipp Zabel wrote: > Hi Fabio, > > On Thu, 2019-06-27 at 09:38 -0300, Fabio Estevam wrote: > > Hi Philipp, > > > > On Thu, Jun 27, 2019 at 5:43 AM Philipp Zabel > > wrote: > > > > > Are there any visual artifacts in the first frame(s) in this case? > > > >

Re: [PATCH 2/2] media: ov5645: Use regulator_bulk() functions

2019-06-27 Thread Fabio Estevam
Hi Sakari, On Thu, Jun 27, 2019 at 1:27 PM Sakari Ailus wrote: > This appears to change the order in which the regulators are enabled. Is > that intentional? Does the sensor support this order as well? Good catch! I have sent a v2 that preserves the regulator enable order. Thanks

[PATCH v2 1/2] media: ov5645: Remove unneeded regulator_set_voltage()

2019-06-27 Thread Fabio Estevam
There is no need to call regulator_set_voltage() for each regulator that powers the camera. The voltage value for each regulator should be retrieved from the device tree, so remove the unneeded regulator_set_voltage(). Signed-off-by: Fabio Estevam --- Changes since v1: - None drivers/media/i2c

[PATCH v2 2/2] media: ov5645: Use regulator_bulk() functions

2019-06-27 Thread Fabio Estevam
The code can be simplified by using the regulator_bulk() functions, so switch to it. Signed-off-by: Fabio Estevam --- Changes since v1: - Retain the regulator enable ordering (Sakari) drivers/media/i2c/ov5645.c | 94 +- 1 file changed, 21 insertions(+), 73 de

Re: [PATCH 1/2] media: ov5645: Remove unneeded regulator_set_voltage()

2019-06-27 Thread Sakari Ailus
Hi Fabio, On Wed, Jun 26, 2019 at 08:56:13PM -0300, Fabio Estevam wrote: > There is no need to call regulator_set_voltage() for each regulator > that powers the camera. > > The voltage value for each regulator should be retrieved from the > device tree, so remove the unneeded regulator_set_voltag

Re: [PATCH 2/2] media: ov5645: Use regulator_bulk() functions

2019-06-27 Thread Sakari Ailus
Hi Fabio, On Wed, Jun 26, 2019 at 08:56:14PM -0300, Fabio Estevam wrote: > The code can be simplified by using the regulator_bulk() functions, > so switch to it. > > Signed-off-by: Fabio Estevam > --- > drivers/media/i2c/ov5645.c | 94 +- > 1 file changed, 21

Re: [PATCH v2] media: ov5640: add support of V4L2_CID_LINK_FREQ

2019-06-27 Thread Sakari Ailus
Hi Hugues, On Thu, Jun 27, 2019 at 02:57:04PM +0200, Hugues Fruchet wrote: > Add support of V4L2_CID_LINK_FREQ, this is needed > by some CSI-2 receivers. > > 384MHz is exposed for the time being, corresponding > to 96MHz pixel clock with 2 bytes per pixel on 2 data lanes. > > This setup has been

[bug report] [media] vmalloc_sg: make sure all pages in vmalloc area are really DMA-ready

2019-06-27 Thread Dan Carpenter
Hi linux-media devs, this is similar to one of HCH's patches that hasn't been applied yet. The patch 7b4eeed174b7: "[media] vmalloc_sg: make sure all pages in vmalloc area are really DMA-ready" from Jun 12, 2014, leads to the following static checker warning: drivers/media/v4l2-core/video

[PATCH v2] media: ov5640: add support of V4L2_CID_LINK_FREQ

2019-06-27 Thread Hugues Fruchet
Add support of V4L2_CID_LINK_FREQ, this is needed by some CSI-2 receivers. 384MHz is exposed for the time being, corresponding to 96MHz pixel clock with 2 bytes per pixel on 2 data lanes. This setup has been tested successfully with ST MIPID02 CSI-2 to parallel bridge. Signed-off-by: Hugues Fruc

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Philipp Zabel
Hi Fabio, On Thu, 2019-06-27 at 09:38 -0300, Fabio Estevam wrote: > Hi Philipp, > > On Thu, Jun 27, 2019 at 5:43 AM Philipp Zabel wrote: > > > Are there any visual artifacts in the first frame(s) in this case? > > I do not observe visual artifacts when running gst-launch-1.0 v4l2src ! > kmssi

[PATCH v2 2/2] media: v4l2-mem2mem: reorder checks in v4l2_m2m_poll()

2019-06-27 Thread Michael Tretter
When reaching the end of stream, V4L2 m2m clients may expect the V4L2_EOS_EVENT. Although the V4L2_EOS_EVENT is deprecated behavior, drivers must signal that event before dequeuing the buffer that has the V4L2_BUF_FLAG_LAST flag set. If a driver queues the V4L2_EOS_EVENT event and returns the buff

[PATCH v2 1/2] media: vb2: reorder checks in vb2_poll()

2019-06-27 Thread Michael Tretter
When reaching the end of stream, V4L2 clients may expect the V4L2_EOS_EVENT before being able to dequeue the last buffer, which has the V4L2_BUF_FLAG_LAST flag set. If the vb2_poll() function first checks for events and afterwards if buffers are available, a driver can queue the V4L2_EOS_EVENT eve

[PATCH v2 0/2] vb2: check for events before checking for buffers

2019-06-27 Thread Michael Tretter
The patches fix a race condition in the poll functions of v4l2 devices. Whenever a driver returns a buffer with the V4L2_BUF_FLAG_LAST flag set, it must also return a V4L2_EVENT_EOS. Checking for events before checking for buffers creates a race condition where drivers can return the buffer and ev

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Ezequiel Garcia
On Thu, 2019-06-27 at 10:43 +0200, Philipp Zabel wrote: > On Wed, 2019-06-26 at 16:29 -0700, Steve Longerbeam wrote: > > Hi Fabio, > > > > On 6/26/19 4:22 PM, Fabio Estevam wrote: > > > Hi Steve, > > > > > > On Wed, Jun 26, 2019 at 6:19 PM Steve Longerbeam > > > wrote: > > > > > > > Did you on

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Fabio Estevam
Hi Philipp, On Thu, Jun 27, 2019 at 5:43 AM Philipp Zabel wrote: > Are there any visual artifacts in the first frame(s) in this case? I do not observe visual artifacts when running gst-launch-1.0 v4l2src ! kmssink > > So in my opinion the next version of this patch should make LP-11 > > timeou

HI

2019-06-27 Thread DR ALBERT ZONGO
-- Greetings, I have an intending proposal for you please i need you to contact my private E-mail(dralbertddzo...@gmail.com) for more updates, Best Wishes. DR ALBERT ZONGO --

Re: [RFC] media: uapi: Add VP8 low-level decoder API compound controls.

2019-06-27 Thread Paul Kocialkowski
Hi, On Wed 13 Feb 19, 18:15, Ezequiel Garcia wrote: > From: Pawel Osciak > > These controls are to be used with the new low-level decoder API for VP8 > to provide additional parameters for the hardware that cannot parse the > input stream. > > Signed-off-by: Pawel Osciak > [ezequiel: rebased]

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Philipp Zabel
On Wed, 2019-06-26 at 16:29 -0700, Steve Longerbeam wrote: > Hi Fabio, > > On 6/26/19 4:22 PM, Fabio Estevam wrote: > > Hi Steve, > > > > On Wed, Jun 26, 2019 at 6:19 PM Steve Longerbeam > > wrote: > > > > > Did you only get the LP-11 timeout warning message with this patch on > > > the OV5645

Re: [PATCH] input/touchscreen/sur40: use COLORSPACE_RAW

2019-06-27 Thread Hans Verkuil
On 6/27/19 10:12 AM, Florian Echtler wrote: > On 26.06.19 11:52, Hans Verkuil wrote: >> This driver set the colorspace to SRGB, but that makes no sense for >> a touchscreen. Use RAW instead. This also ensures consistency with the >> v4l_pix_format_touch() call that's used in v4l2-ioctl.c. > > One

[PATCH v2] keytable: Add keymap test

2019-06-27 Thread Bastien Nocera
This new test will try to parse all the ".toml" files in the directory path passed to it, error'ing out on the first parsing problem. Run as "make check" in the keytable directory. --- Changes since v1: - Fix patch formatting At least 4 keymaps look broken in the current git: it913x_v2.toml pinna

Re: [PATCH] input/touchscreen/sur40: use COLORSPACE_RAW

2019-06-27 Thread Florian Echtler
On 26.06.19 11:52, Hans Verkuil wrote: > This driver set the colorspace to SRGB, but that makes no sense for > a touchscreen. Use RAW instead. This also ensures consistency with the > v4l_pix_format_touch() call that's used in v4l2-ioctl.c. One question for clarification: this will only affect use

Re: [PATCH 2/2] media: v4l2-mem2mem: reorder checks in v4l2_m2m_poll()

2019-06-27 Thread Michael Tretter
On Wed, 26 Jun 2019 13:44:23 +0200, Hans Verkuil wrote: > On 6/25/19 4:11 PM, Michael Tretter wrote: > > When reaching the end of stream, V4L2 m2m clients may expect the > > V4L2_EOS_EVENT. Although the V4L2_EOS_EVENT is deprecated behavior, > > drivers must signal that event before dequeuing th

[GIT PULL FOR v5.3] Various fixes

2019-06-27 Thread Hans Verkuil
Just three patches this time. Regards, Hans The following changes since commit 86d617d6c79d79288ca608b6fb0a2467b0e8ddbb: media: MAINTAINERS: Add maintainers for Media Controller (2019-06-24 15:07:51 -0400) are available in the Git repository at: git://linuxtv.org/hverkuil/media_t

Re: [PATCH v3] media: v4l: ctrls: Add debug messages

2019-06-27 Thread Hans Verkuil
Hi Ezequiel, 'checkpatch.pl --strict' finds way too many issues. I'm pretty certain you didn't run it. Please fix the issues and post a v4. A lot (but not all) of the warnings report lines that are too long and from what I can see most are easily fixed without reducing readability. Regards,

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Jacopo Mondi
Hi Ezequiel, On Tue, Jun 25, 2019 at 05:39:45PM -0300, Ezequiel Garcia wrote: > Not all sensors will be able to guarantee a proper initial state. > This may be either because the driver is not properly written, > or (probably unlikely) because the hardware won't support it. > > While the right sol