Re: [PATCH v1] media: ov13858: Calculate pixel-rate at runtime, use mode

2017-09-05 Thread Sakari Ailus
Hi Rajmohan, Thanks for the patch. A few comments below. On Tue, Sep 05, 2017 at 04:44:58PM -0700, Rajmohan Mani wrote: > From: Chiranjeevi Rapolu > > Instead of calculating pixle-rate at two different places, calculate at run > time at a single place. > > Instead of using hardcoded pixels-per

Re: [PATCH 0/6] [media] Atmel: Adjustments for seven function implementations

2017-09-05 Thread Ludovic Desroches
On Wed, Sep 06, 2017 at 08:58:26AM +0800, Yang, Wenyou wrote: > Hi, > > > On 2017/9/5 4:04, SF Markus Elfring wrote: > > From: Markus Elfring > > Date: Mon, 4 Sep 2017 21:44:55 +0200 > > > > A few update suggestions were taken into account > > from static source code analysis. > Thank you for y

cron job: media_tree daily build: WARNINGS

2017-09-05 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: Wed Sep 6 05:00:14 CEST 2017 media-tree git hash:1efdf1776e2253b77413c997bed862410e4b6aaf media_build gi

Re: [PATCH 0/6] [media] Atmel: Adjustments for seven function implementations

2017-09-05 Thread Yang, Wenyou
Hi, On 2017/9/5 4:04, SF Markus Elfring wrote: From: Markus Elfring Date: Mon, 4 Sep 2017 21:44:55 +0200 A few update suggestions were taken into account from static source code analysis. Thank you for your patches. You can add my Acked-by for the patch series. Acked-by: Wenyou Yang Ma

[PATCH v1] media: ov13858: Calculate pixel-rate at runtime, use mode

2017-09-05 Thread Rajmohan Mani
From: Chiranjeevi Rapolu Instead of calculating pixle-rate at two different places, calculate at run time at a single place. Instead of using hardcoded pixels-per-line, extract it from current sensor mode. Signed-off-by: Chiranjeevi Rapolu --- drivers/media/i2c/ov13858.c | 42

Re: [PATCH] media: leds: as3645a: add V4L2_FLASH_LED_CLASS depdendency

2017-09-05 Thread Sakari Ailus
Hi Jacek and Arnd, Thanks for fixing this plus the ack! I chatted with Mauro, and as the patches are still only in mediatree, we'll apply this there, possibly with a minor spelling fix to the subject (depdendency -> dependency). https://git.linuxtv.org/sailus/media_tree.git/commit/?h=as3645a-

RE: [PATCH 04/12] intel-ipu3: Add user space ABI definitions

2017-09-05 Thread Zhi, Yong
Hi, Sakari and Hans, Sorry for the late response to this header file. > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Wednesday, June 7, 2017 3:23 PM > To: Hans Verkuil > Cc: Zhi, Yong ; linux-media@vger.kernel.org; Zheng, > Jian Xu ; tf...@chromiu

Re: [PATCH] uvcvideo: extend UVC_QUIRK_FIX_BANDWIDTH to MJPEG streams

2017-09-05 Thread Pavel Rojtberg
Hi Laurent, 2017-09-04 11:56 GMT+02:00 Laurent Pinchart : > Hi Pavel, > > Thank you for the patch. > > On Monday, 4 September 2017 11:14:17 EEST Pavel Rojtberg wrote: >> From: Pavel Rojtberg >> >> attaching two Logitech C615 webcams currently results in >> VIDIOC_STREAMON: No space left on de

[PATCH] [media] cobalt: remove redundant zero check on retval

2017-09-05 Thread Colin King
From: Colin Ian King The error handling paths all end up with retval being non-zero, so the check for retval being zero is always false and hence is redundant. Remove it. Detected by CoverityScan CID#1309479 ("Logically dead code") Signed-off-by: Colin Ian King --- drivers/media/pci/cobalt/co

Re: [PATCH v7 01/18] v4l: fwnode: Move KernelDoc documentation to the header

2017-09-05 Thread Sakari Ailus
On Mon, Sep 04, 2017 at 05:49:40PM +0200, Pavel Machek wrote: > On Sun 2017-09-03 20:49:41, Sakari Ailus wrote: > > In V4L2 the practice is to have the KernelDoc documentation in the header > > and not in .c source code files. This consequientally makes the V4L2 > > consequientally: spelling? > >

Re: [PATCH v3 1/2] dt-bindings: media: Add Cadence MIPI-CSI2 RX Device Tree bindings

2017-09-05 Thread Sakari Ailus
Hi Maxime, On Mon, Sep 04, 2017 at 03:03:34PM +0200, Maxime Ripard wrote: > The Cadence MIPI-CSI2 RX controller is a CSI2RX bridge that supports up to > 4 CSI-2 lanes, and can route the frames to up to 4 streams, depending on > the hardware implementation. > > It can operate with an external D-PH

[PATCH v8 09/21] omap3isp: Fix check for our own sub-devices

2017-09-05 Thread Sakari Ailus
We only want to link sub-devices that were bound to the async notifier the isp driver registered but there may be other sub-devices in the v4l2_device as well. Check for the correct async notifier. Signed-off-by: Sakari Ailus --- drivers/media/platform/omap3isp/isp.c | 2 +- 1 file changed, 1 in

[PATCH v8 02/21] v4l: async: Remove re-probing support

2017-09-05 Thread Sakari Ailus
Remove V4L2 async re-probing support. The re-probing support has been there to support cases where the sub-devices require resources provided by the main driver's hardware to function, such as clocks. Reprobing has allowed unbinding and again binding the main driver without explicilty unbinding th

[PATCH v8 11/21] v4l: async: Move async subdev notifier operations to a separate structure

2017-09-05 Thread Sakari Ailus
From: Laurent Pinchart The async subdev notifier .bound(), .unbind() and .complete() operations are function pointers stored directly in the v4l2_async_subdev structure. As the structure isn't immutable, this creates a potential security risk as the function pointers are mutable. To fix this, mo

[PATCH v8 04/21] v4l: async: Add V4L2 async documentation to the documentation build

2017-09-05 Thread Sakari Ailus
The V4L2 async wasn't part of the documentation build. Fix this. Signed-off-by: Sakari Ailus Reviewed-by: Niklas Söderlund Acked-by: Hans Verkuil --- Documentation/media/kapi/v4l2-async.rst | 3 +++ Documentation/media/kapi/v4l2-core.rst | 1 + 2 files changed, 4 insertions(+) create mode 1

[PATCH v8 00/21] Unified fwnode endpoint parser, async sub-device notifier support, N9 flash DTS

2017-09-05 Thread Sakari Ailus
Hi folks, We have a large influx of new, unmerged, drivers that are now parsing fwnode endpoints and each one of them is doing this a little bit differently. The needs are still exactly the same for the graph data structure is device independent. This is still a non-trivial task and the majority o

[PATCH v8 06/21] v4l: fwnode: Support generic parsing of graph endpoints in a device

2017-09-05 Thread Sakari Ailus
The current practice is that drivers iterate over their endpoints and parse each endpoint separately. This is very similar in a number of drivers, implement a generic function for the job. Driver specific matters can be taken into account in the driver specific callback. Signed-off-by: Sakari Ailu

[PATCH v8 07/21] omap3isp: Use generic parser for parsing fwnode endpoints

2017-09-05 Thread Sakari Ailus
Instead of using driver implementation, use v4l2_async_notifier_parse_fwnode_endpoints() to parse the fwnode endpoints of the device. Signed-off-by: Sakari Ailus --- drivers/media/platform/omap3isp/isp.c | 115 +++--- drivers/media/platform/omap3isp/isp.h | 5 +- 2

[PATCH v8 08/21] rcar-vin: Use generic parser for parsing fwnode endpoints

2017-09-05 Thread Sakari Ailus
Instead of using driver implementation, use v4l2_async_notifier_parse_fwnode_endpoints() to parse the fwnode endpoints of the device. Signed-off-by: Sakari Ailus --- drivers/media/platform/rcar-vin/rcar-core.c | 112 +--- drivers/media/platform/rcar-vin/rcar-dma.c | 10

[PATCH v8 19/21] smiapp: Add support for flash and lens devices

2017-09-05 Thread Sakari Ailus
Parse async sub-devices by using v4l2_subdev_fwnode_reference_parse_sensor_common(). These types devices aren't directly related to the sensor, but are nevertheless handled by the smiapp driver due to the relationship of these component to the main part of the camera module --- the sensor. This d

[PATCH v8 21/21] arm: dts: omap3: N9/N950: Add flash references to the camera

2017-09-05 Thread Sakari Ailus
Add flash and indicator LED phandles to the sensor node. Signed-off-by: Sakari Ailus --- arch/arm/boot/dts/omap3-n9.dts | 1 + arch/arm/boot/dts/omap3-n950-n9.dtsi | 4 ++-- arch/arm/boot/dts/omap3-n950.dts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/

[PATCH v8 12/21] v4l: async: Introduce helpers for calling async ops callbacks

2017-09-05 Thread Sakari Ailus
Add three helper functions to call async operations callbacks. Besides simplifying callbacks, this allows async notifiers to have no ops set, i.e. it can be left NULL. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-async.c | 49 ++-- include/media/v4

[PATCH v8 18/21] v4l: fwnode: Add convenience function for parsing common external refs

2017-09-05 Thread Sakari Ailus
Add v4l2_fwnode_parse_reference_sensor_common for parsing common sensor properties that refer to adjacent devices such as flash or lens driver chips. As this is an association only, there's little a regular driver needs to know about these devices as such. Signed-off-by: Sakari Ailus Acked-by: H

[PATCH v8 17/21] v4l: fwnode: Add convenience function for parsing generic references

2017-09-05 Thread Sakari Ailus
Add function v4l2_fwnode_reference_count() for counting external references and v4l2_fwnode_reference_parse() for parsing them as async sub-devices. This can be done on e.g. flash or lens async sub-devices that are not part of but are associated with a sensor. struct v4l2_async_notifier.max_subde

[PATCH v8 14/21] v4l: async: Allow binding notifiers to sub-devices

2017-09-05 Thread Sakari Ailus
Registering a notifier has required the knowledge of struct v4l2_device for the reason that sub-devices generally are registered to the v4l2_device (as well as the media device, also available through v4l2_device). This information is not available for sub-device drivers at probe time. What this

[PATCH v8 15/21] dt: bindings: Add a binding for flash devices associated to a sensor

2017-09-05 Thread Sakari Ailus
Camera flash drivers (and LEDs) are separate from the sensor devices in DT. In order to make an association between the two, provide the association information to the software. Signed-off-by: Sakari Ailus Acked-by: Rob Herring --- Documentation/devicetree/bindings/media/video-interfaces.txt |

[PATCH v8 20/21] dt: bindings: smiapp: Document lens-focus and flash properties

2017-09-05 Thread Sakari Ailus
Document optional lens-focus and flash properties for the smiapp driver. Signed-off-by: Sakari Ailus --- Documentation/devicetree/bindings/media/i2c/nokia,smia.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/nokia,smia.txt b/Documentation/de

[PATCH v8 16/21] dt: bindings: Add lens-focus binding for image sensors

2017-09-05 Thread Sakari Ailus
The lens-focus property contains a phandle to the lens voice coil driver that is associated to the sensor; typically both are contained in the same camera module. Signed-off-by: Sakari Ailus Acked-by: Pavel Machek Reviewed-by: Sebastian Reichel Acked-by: Rob Herring --- Documentation/devicetr

[PATCH v8 05/21] docs-rst: v4l: Include Qualcomm CAMSS in documentation build

2017-09-05 Thread Sakari Ailus
Qualcomm CAMSS was left out from documentation build. Fix this. Signed-off-by: Sakari Ailus Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil --- Documentation/media/v4l-drivers/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/media/v4l-drivers/index.rst b/Docume

[PATCH v8 13/21] v4l: async: Register sub-devices before calling bound callback

2017-09-05 Thread Sakari Ailus
Register the sub-device before calling the notifier's bound callback. Doing this the other way around is problematic as the struct v4l2_device has not assigned for the sub-device yet and may be required by the bound callback. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-async.c |

[PATCH v8 01/21] v4l: fwnode: Move KernelDoc documentation to the header

2017-09-05 Thread Sakari Ailus
In V4L2 the practice is to have the KernelDoc documentation in the header and not in .c source code files. This consequientally makes the V4L2 fwnode function documentation part of the Media documentation build. Also correct the link related function and argument naming in documentation. Signed-o

[PATCH v8 10/21] omap3isp: Print the name of the entity where no source pads could be found

2017-09-05 Thread Sakari Ailus
If no source pads are found in an entity, print the name of the entity. Signed-off-by: Sakari Ailus --- drivers/media/platform/omap3isp/isp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c ind

[PATCH v8 03/21] v4l: async: Use more intuitive names for internal functions

2017-09-05 Thread Sakari Ailus
Rename internal functions to make the names of the functions better describe what they do. Old nameNew name v4l2_async_test_notify v4l2_async_match_notify v4l2_async_belongs v4l2_async_find_match Signed-off-by: Sakari Ailus --- drivers/media

[PATCH] media: get rid of removed DMX_GET_CAPS and DMX_SET_SOURCE leftovers

2017-09-05 Thread Mauro Carvalho Chehab
Those two ioctls were never used within the Kernel. Still, there used to have compat32 code there (and an if #0 block at the core). Get rid of them. Fixes: 286fe1ca3fa1 ("media: dmx.h: get rid of DMX_GET_CAPS") Fixes: 13adefbe9e56 ("media: dmx.h: get rid of DMX_SET_SOURCE") Signed-off-by: Mauro C

[linuxtv-media:fixes 2543/2599] fs/compat_ioctl.c:1335:18: error: 'DMX_SET_SOURCE' undeclared here (not in a function)

2017-09-05 Thread kbuild test robot
tree: git://linuxtv.org/media_tree.git fixes head: 12f92866f13f9ca12e158c07978246ed83d52ed0 commit: 13adefbe9e566c6db91579e4ce17f1e5193d6f2c [2543/2599] media: dmx.h: get rid of DMX_SET_SOURCE config: x86_64-randconfig-i0-201736 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 re

[PATCH] [media] imon: make two const arrays static, reduces object code size

2017-09-05 Thread Colin King
From: Colin Ian King Don't populate the const arrays vfd_packet6 and fp_packet on the stack, instead make them static. Makes the object code smaller by over 600 bytes: Before: textdata bss dec hex filename 43794 179201024 62738f512 drivers/media/rc/imon.o After

[media-next:master 2542/2599] fs/compat_ioctl.c:1334:18: error: 'DMX_GET_CAPS' undeclared here (not in a function)

2017-09-05 Thread kbuild test robot
tree: git://linuxtv.org/mchehab/media-next.git master head: 12f92866f13f9ca12e158c07978246ed83d52ed0 commit: 286fe1ca3fa1b6fcc7ce8695b7c8d681e6e1c3b7 [2542/2599] media: dmx.h: get rid of DMX_GET_CAPS config: x86_64-randconfig-i0-201736 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4

[PATCH] media: add qcom_camss.rst to v4l-drivers rst file

2017-09-05 Thread Mauro Carvalho Chehab
Avoid this warning: /devel/v4l/docs/Documentation/media/v4l-drivers/qcom_camss.rst:: WARNING: document isn't included in any toctree Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/v4l-drivers/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/media

[PATCH 1/2] media: dvb uapi: move frontend legacy API to another part of the book

2017-09-05 Thread Mauro Carvalho Chehab
There's a chapter for the legacy APIs. Move the frontend DVBv3 API to it, and update the chapter's introduction accordingly. Signed-off-by: Mauro Carvalho Chehab --- Documentation/media/uapi/dvb/frontend.rst| 1 - Documentation/media/uapi/dvb/legacy_dvb_apis.rst | 21 ++-

[PATCH 2/2] media: dvb headers: make checkpatch happier

2017-09-05 Thread Mauro Carvalho Chehab
Adjust dvb ca.h, dmx.h and frontend.h in order to make checkpatch happier. Now, it only complains about the typedefs, and those are there just to provide backward userspace compatibility. Signed-off-by: Mauro Carvalho Chehab --- include/uapi/linux/dvb/ca.h | 2 +- include/uapi/linux/dvb/dm

[PATCH] [media] cx25840: make array stds static const, reduces object code size

2017-09-05 Thread Colin King
From: Colin Ian King Don't populate the array syds on the stack, instead make it static const. Makes the object code smaller by over 280 bytes: Before: textdata bss dec hex filename 81451 12784 704 94939 172db cx25840-core.o textdata bss dec hex

Re: [PATCH v4] drm/bridge/sii8620: add remote control support

2017-09-05 Thread Maciej Purski
Hi Hans, According to my tests, when pressing 'Press and Hold' key, the messages received are always the same until the button is released. The second message is received after ~550 ms and each next message is received every ~100 ms. Regards, Maciej On 27/08/2017 14:40, Hans Verkuil

Re: [ANN] Call for topics for the media mini-summit on Friday Oct 27 in Prague

2017-09-05 Thread Honza Petrouš
> > Also, if you plan to attend, please let me know. It is open for all, but it is > nice if we know beforehand who we can expect. > > So if you have a topic that you want to discuss there, then just reply to this > post. If possible, please add a rough idea of how much time you think you will > ne

Re: [PATCH 1/2] docs-rst: media: Don't use \small for V4L2_PIX_FMT_SRGGB10 documentation

2017-09-05 Thread Sakari Ailus
Hi Mauro, On Mon, Sep 04, 2017 at 05:41:27PM -0300, Mauro Carvalho Chehab wrote: > From: Sakari Ailus > > There appears to be an issue in using \small in certain cases on Sphinx > 1.4 and 1.5. Other format documents don't use \small either, remove it > from here as well. > > [mche...@s-opensour

Re: [ANN] Call for topics for the media mini-summit on Friday Oct 27 in Prague

2017-09-05 Thread Ricardo Ribalda Delgado
Hi Hans On Fri, Sep 1, 2017 at 11:46 AM, Hans Verkuil wrote: > > > Also, if you plan to attend, please let me know. It is open for all, but it is > nice if we know beforehand who we can expect. > I plan to attend. I do not have any specific topic right now, but as the date gets closer I might ad

Re: UVC property auto update

2017-09-05 Thread Edgar Thier
> > Ok, looking more at the spec, the driver and your patch, here's what I > come up with: > > 1. UVC defines which standard controls should have which flags. Among > those flags it specifies, which controls should specify the Autoupdate > flag. E.g. see the first of them as it appears in my

Re: [PATCH v7 12/18] v4l: async: Allow binding notifiers to sub-devices

2017-09-05 Thread Sakari Ailus
Hi Hans, Thanks for the review! On 09/05/17 09:49, Hans Verkuil wrote: > On 09/03/2017 07:49 PM, Sakari Ailus wrote: >> Registering a notifier has required the knowledge of struct v4l2_device >> for the reason that sub-devices generally are registered to the >> v4l2_device (as well as the media d