[PATCH 1/2] Remove unnecessary if

2018-08-15 Thread Sean Young
Signed-off-by: Sean Young --- utils/ir-ctl/ir-ctl.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/utils/ir-ctl/ir-ctl.c b/utils/ir-ctl/ir-ctl.c index 59555a13..ddd93068 100644 --- a/utils/ir-ctl/ir-ctl.c +++ b/utils/ir-ctl/ir-ctl.c @@ -175,19 +175,17 @@

Re: [PATCHv18 18/35] videobuf2-v4l2: replace if by switch in __fill_vb2_buffer()

2018-08-15 Thread Mauro Carvalho Chehab
Em Tue, 14 Aug 2018 16:20:30 +0200 Hans Verkuil escreveu: > From: Hans Verkuil > > Replace 'if' statements by a switch in __fill_vb2_buffer() > in preparation of the next patch. > > No other changes. > > Signed-off-by: Hans Verkuil Reviewed-by: Mauro Carvalho Chehab > --- >

Re: [PATCH v2 0/2] media: i2c: ov5640: Re-work MIPI startup sequence

2018-08-15 Thread jacopo mondi
Hi Steve, On Tue, Aug 14, 2018 at 04:53:26PM -0700, Steve Longerbeam wrote: > > > On 08/14/2018 10:38 AM, jacopo mondi wrote: > >Hi Steve, > > > >On Tue, Aug 14, 2018 at 09:51:04AM -0700, Steve Longerbeam wrote: > >>Hi Jacopo, > >> > >> > >>On 08/14/2018 08:35 AM, jacopo mondi wrote: > >>>Hi

Re: [PATCHv18 19/35] vb2: store userspace data in vb2_v4l2_buffer

2018-08-15 Thread Hans Verkuil
On 15/08/18 14:28, Mauro Carvalho Chehab wrote: > Em Wed, 15 Aug 2018 13:54:53 +0200 > Hans Verkuil escreveu: > >> On 14/08/18 21:47, Mauro Carvalho Chehab wrote: >>> Em Tue, 14 Aug 2018 16:20:31 +0200 >>> Hans Verkuil escreveu: >> >> >> diff --git

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Mauro Carvalho Chehab
Em Sat, 4 Aug 2018 15:50:04 +0200 Hans Verkuil escreveu: > Hi all, > > While the Request API patch series addresses all the core API issues, there > are some high-level considerations as well: > > 1) How can the application tell that the Request API is supported and for >which buffer types

Re: [PATCHv18 19/35] vb2: store userspace data in vb2_v4l2_buffer

2018-08-15 Thread Mauro Carvalho Chehab
Em Wed, 15 Aug 2018 13:54:53 +0200 Hans Verkuil escreveu: > On 14/08/18 21:47, Mauro Carvalho Chehab wrote: > > Em Tue, 14 Aug 2018 16:20:31 +0200 > > Hans Verkuil escreveu: > > > > >> diff --git a/drivers/media/common/videobuf2/videobuf2-v4l2.c > >>

[PATCH 2/2] ir-ctl: different drivers have different default timeouts

2018-08-15 Thread Sean Young
A driver might not support setting the timeout either, in addition, if a device does not support measuring the carrier, or has no wideband receiver, this command will also produce an error. Signed-off-by: Sean Young --- utils/ir-ctl/ir-ctl.1.in | 4 1 file changed, 4 deletions(-) diff

[PATCH v3 2/2] media: ov5640: Fix timings setup code

2018-08-15 Thread Jacopo Mondi
From: Jacopo Mondi As of: commit 476dec012f4c ("media: ov5640: Add horizontal and vertical totals") the timings parameters gets programmed separately from the static register values array. When changing capture mode, the vertical and horizontal totals gets inspected by the

[PATCH v3 1/2] media: ov5640: Re-work MIPI startup sequence

2018-08-15 Thread Jacopo Mondi
From: Jacopo Mondi Rework the MIPI interface startup sequence with the following changes: - Remove MIPI bus initialization from the initial settings blob - At set_power(1) time power up MIPI Tx/Rx and set data and clock lanes in LP11 during 'sleep' and 'idle' with MIPI clock in non-continuous

[PATCH v3 0/2] media: i2c: ov5640: Re-work MIPI startup sequence

2018-08-15 Thread Jacopo Mondi
Hello ov5640 people, this driver has received a lot of attention recently, and this series aims to fix the CSI-2 interface startup on i.Mx6Q platforms. Please refer to the v2 cover letters for more background informations: https://www.mail-archive.com/linux-media@vger.kernel.org/msg133420.html

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Maxime Jourdan
2018-08-06 11:13 GMT+02:00 Paul Kocialkowski : > Hi, > > On Mon, 2018-08-06 at 10:32 +0200, Hans Verkuil wrote: >> On 08/06/2018 10:16 AM, Paul Kocialkowski wrote: >> > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: >> > > Regarding point 3: I think this should be documented next to the

Re: [PATCHv18 19/35] vb2: store userspace data in vb2_v4l2_buffer

2018-08-15 Thread Hans Verkuil
On 14/08/18 21:47, Mauro Carvalho Chehab wrote: > Em Tue, 14 Aug 2018 16:20:31 +0200 > Hans Verkuil escreveu: >> diff --git a/drivers/media/common/videobuf2/videobuf2-v4l2.c >> b/drivers/media/common/videobuf2/videobuf2-v4l2.c >> index 57848ddc584f..360dc4e7d413 100644 >> ---

Re: [BUG, RFC] media: Wrong module gets acquired

2018-08-15 Thread Petr Cvek
Dne 14.8.2018 v 15:03 Mauro Carvalho Chehab napsal(a): > Em Tue, 14 Aug 2018 11:35:01 +0300 > Sakari Ailus escreveu: > >> Hi Pert, >> >> On Mon, Aug 13, 2018 at 06:33:12PM +0200, petrcve...@gmail.com wrote: >>> From: Petr Cvek >>> >>> When transferring a media sensor driver from the

[PATCHv2 2/5] videodev2.h: Add new DV flag CAN_DETECT_REDUCED_FPS

2018-08-15 Thread Hans Verkuil
From: Jose Abreu Add a new flag to UAPI for DV timings which, whenever set, indicates that hardware can detect the difference between regular FPS and 1000/1001 FPS. This is specific to HDMI receivers. Also, it is only valid when V4L2_DV_FL_CAN_REDUCE_FPS is set. Signed-off-by: Jose Abreu Cc:

[PATCHv2 5/5] adv7842: enable reduced fps detection

2018-08-15 Thread Hans Verkuil
From: Hans Verkuil The pixelclock detection of the adv7842 is precise enough to detect if the framerate is 60 Hz or 59.94 Hz (aka "reduced fps"). Implement this detection. Signed-off-by: Hans Verkuil --- drivers/media/i2c/adv7842.c | 9 + 1 file changed, 9 insertions(+) diff --git

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Hans Verkuil
On 06/08/18 10:16, Paul Kocialkowski wrote: > Hi Hans and all, > > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: >> Hi all, >> >> While the Request API patch series addresses all the core API issues, there >> are some high-level considerations as well: >> >> 1) How can the application

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Nicolas Dufresne
Le mercredi 15 août 2018 à 09:11 -0300, Mauro Carvalho Chehab a écrit : > Em Sat, 4 Aug 2018 15:50:04 +0200 > Hans Verkuil escreveu: > > > Hi all, > > > > While the Request API patch series addresses all the core API > > issues, there > > are some high-level considerations as well: > > > > 1)

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Nicolas Dufresne
Le lundi 06 août 2018 à 10:16 +0200, Paul Kocialkowski a écrit : > Hi Hans and all, > > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: > > Hi all, > > > > While the Request API patch series addresses all the core API issues, there > > are some high-level considerations as well: > > > >

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Hans Verkuil
On 15/08/18 14:11, Mauro Carvalho Chehab wrote: > Em Sat, 4 Aug 2018 15:50:04 +0200 > Hans Verkuil escreveu: > >> Hi all, >> >> While the Request API patch series addresses all the core API issues, there >> are some high-level considerations as well: >> >> 1) How can the application tell that

Re: [PATCH v2 1/4] media: soc_camera: ov9640: move ov9640 out of soc_camera

2018-08-15 Thread Petr Cvek
BTW from the v1 discussion: Dne 10.8.2018 v 09:32 jacopo mondi napsal(a): > When I've been recently doing the same for ov772x and other sensor > driver I've been suggested to first copy the driver into > drivers/media/i2c/ and leave the original soc_camera one there, so > they can be bulk removed

Re: [PATCHv18 01/35] Documentation: v4l: document request API

2018-08-15 Thread Laurent Pinchart
Hi Hans, Thank you for the patch. On Tuesday, 14 August 2018 17:20:13 EEST Hans Verkuil wrote: > From: Alexandre Courbot > > Document the request API for V4L2 devices, and amend the documentation > of system calls influenced by it. > > Signed-off-by: Alexandre Courbot > Signed-off-by: Hans

[PATCH v2 0/4] media: soc_camera: ov9640: switch driver to v4l2_async

2018-08-15 Thread petrcvekcz
From: Petr Cvek This patch series transfer the ov9640 driver from the soc_camera subsystem into a standalone v4l2 driver. There is no changes except the required v4l2_async calls, GPIO allocation, deletion of now unused variables, a change from mdelay() to msleep() and an addition of SPDX

[PATCH v2 1/4] media: soc_camera: ov9640: move ov9640 out of soc_camera

2018-08-15 Thread petrcvekcz
From: Petr Cvek Initial part of ov9640 transition from soc_camera subsystem to a standalone v4l2 subdevice. The soc_camera version seems to be used only in Palm Zire72 and in (the future) HTC Magician. On these two devices the support is broken as pxa_camera driver doesn't use soc_camera

[PATCH v2 3/4] media: i2c: ov9640: add missing SPDX identifiers

2018-08-15 Thread petrcvekcz
From: Petr Cvek Add missing SPDX identifiers to .c and .h files of the sensor driver. Signed-off-by: Petr Cvek --- drivers/media/i2c/ov9640.c | 5 + drivers/media/i2c/ov9640.h | 5 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/media/i2c/ov9640.c

[PATCH v2 2/4] media: i2c: ov9640: drop soc_camera code and switch to v4l2_async

2018-08-15 Thread petrcvekcz
From: Petr Cvek This patch removes the dependency on an obsoleted soc_camera from ov9640 driver and changes the code to be a standalone v4l2 async subdevice. It also adds GPIO allocations for power and reset signals (as they are not handled by soc_camera now). The values for waiting on GPIOs

[PATCH v2 4/4] MAINTAINERS: Add Petr Cvek as a maintainer for the ov9640 driver

2018-08-15 Thread petrcvekcz
From: Petr Cvek The soc_camera drivers are marked as orphaned. Add Petr Cvek as a new maintainer for ov9640 driver after its switch from the soc_camera. Signed-off-by: Petr Cvek --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCHv2 3/5] v4l2-dv-timings: Introduce v4l2_calc_timeperframe helper

2018-08-15 Thread Hans Verkuil
From: Jose Abreu A new helper function was introduced to facilitate the calculation of time per frame value whenever we have access to the full v4l2_dv_timings structure. This should be used only for receivers and only when there is enough accuracy in the measured pixel clock value as well as

[PATCHv2 1/5] vidioc-g-dv-timings.rst: document V4L2_DV_FL_CAN_DETECT_REDUCED_FPS

2018-08-15 Thread Hans Verkuil
From: Hans Verkuil Document the new V4L2_DV_FL_CAN_DETECT_REDUCED_FPS flag and update the V4L2_DV_FL_REDUCED_FPS description since it can now also be used with receivers. Signed-off-by: Hans Verkuil --- .../media/uapi/v4l/vidioc-g-dv-timings.rst| 27 +-- 1 file changed, 19

[PATCHv2 0/5] Handling of reduced FPS in V4L2

2018-08-15 Thread Hans Verkuil
From: Hans Verkuil This is a v2 patch series of an old patch series from Jose: https://www.mail-archive.com/linux-media@vger.kernel.org/msg110275.html It's rebased, I updated the documentation and implemented this for the adv7842 which is one of the very few receivers that can detect the

[PATCHv2 4/5] cobalt: Use v4l2_calc_timeperframe helper

2018-08-15 Thread Hans Verkuil
From: Jose Abreu Currently, cobalt driver always returns 60fps in g_parm. This patch uses the new v4l2_calc_timeperframe helper to calculate the time per frame value. Signed-off-by: Jose Abreu Cc: Carlos Palminha Tested-by: Hans Verkuil Signed-off-by: Hans Verkuil ---

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Nicolas Dufresne
Le samedi 04 août 2018 à 15:50 +0200, Hans Verkuil a écrit : > Hi all, > > While the Request API patch series addresses all the core API issues, there > are some high-level considerations as well: > > 1) How can the application tell that the Request API is supported and for >which buffer

Re: [PATCHv17 01/34] Documentation: v4l: document request API

2018-08-15 Thread Pavel Machek
Hi! > Document the request API for V4L2 devices, and amend the documentation > of system calls influenced by it. > > Signed-off-by: Alexandre Courbot > Signed-off-by: Hans Verkuil Cc documentation people? > +Synopsis > + > + > +.. c:function:: int ioctl( int request_fd,

Re: [PATCHv2 5/5] adv7842: enable reduced fps detection

2018-08-15 Thread kbuild test robot
Hi Hans, I love your patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.18 next-20180815] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

cron job: media_tree daily build: WARNINGS

2018-08-15 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 16 05:00:24 CEST 2018 media-tree git hash:da2048b7348a0be92f706ac019e022139e29495e media_build