cron job: media_tree daily build: WARNINGS

2019-04-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 Apr 18 05:00:12 CEST 2019 media-tree git hash:1c3ec30bb23023d738b538e64ac3028902d53692 media_build gi

[PATCH 4/4] media: ov7740: remove redundant V4L2_CTRL_FLAG_VOLATILE set

2019-04-17 Thread Akinobu Mita
If the v4l2 controls are set up for autofoo/foo-type handling by calling v4l2_ctrl_auto_cluster() with the last set_volatile argument setting true, each non-auto control doesn't need to be flagged V4L2_CTRL_FLAG_VOLATILE. Cc: Wenyou Yang Cc: Eugen Hristev Cc: Sakari Ailus Cc: Mauro Carvalho Che

[PATCH 3/4] media: ov7740: fix vertical flip control

2019-04-17 Thread Akinobu Mita
Setting the value of the V4L2_CID_VFLIP control is currently ignored. Because V4L2_CID_HFLIP and V4L2_CID_VFLIP are independently controlled in s_ctrl() but these controls belong to the same cluster and the first control is V4L2_CID_HFLIP. Fix it by not clustering these controls. Also correct er

[PATCH 2/4] media: ov7740: avoid invalid framesize setting

2019-04-17 Thread Akinobu Mita
If the requested framesize by VIDIOC_SUBDEV_S_FMT is larger than supported framesizes, it causes an out of bounds array access and the resulting framesize is unexpected. Avoid out of bounds array access and select the default framesize. Cc: Wenyou Yang Cc: Eugen Hristev Cc: Sakari Ailus Cc: Ma

[PATCH 1/4] media: ov7740: fix unbalanced pm_runtime_get/put

2019-04-17 Thread Akinobu Mita
Avoid returning without decrement the usage count in s_ctrl(). Cc: Wenyou Yang Cc: Eugen Hristev Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/ov7740.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/medi

[PATCH 0/4] media: ov7740: several bug fixes and cleanup

2019-04-17 Thread Akinobu Mita
This patchset includes three bug fixes and a cleanup for ov7740 driver. Akinobu Mita (4): media: ov7740: fix unbalanced pm_runtime_get/put media: ov7740: avoid invalid framesize setting media: ov7740: fix vertical flip control media: ov7740: remove redundant V4L2_CTRL_FLAG_VOLATILE set d

[PATCH v2 1/2] libv4lconvert: Port supported_src_formats to bit-ops

2019-04-17 Thread Ricardo Ribalda Delgado
We have passed the barrier of 64 supported formats, therefore a int64_t is not enough for holding the bitfield. Instead use bit-ops ala kernel. Signed-off-by: Ricardo Ribalda Delgado Suggested-by: Hans de Goede --- lib/libv4lconvert/libv4lconvert-priv.h | 3 +- lib/libv4lconvert/libv4lconvert

[PATCH v2 2/2] libv4lconvert: Add support for V4L2_PIX_FMT_NV12

2019-04-17 Thread Ricardo Ribalda Delgado
NV12 is a two-plane version YUV 4:2:0, where the U and V components are subsampled 2x2. Signed-off-by: Ricardo Ribalda Delgado --- Changelog v2: - None The code has ben tested with qv4l2 and vivid. v4lconvert_nv12_to_yuv420 has not been tested!!, any suggestions for how to do it? lib/libv4lco

[RFC PATCH V1 6/6] platform: mtk-isp: Add Mediatek DIP driver

2019-04-17 Thread Frederic Chen
This patch adds the driver of Digital Image Processing (DIP) unit in Mediatek ISP system, providing image format conversion, resizing, and rotation features. The mtk-isp directory will contain drivers for multiple IP blocks found in Mediatek ISP system. It will include ISP Pass 1 driver(CAM), sens

[RFC PATCH V1 4/6] dts: arm64: mt8183: Add DIP nodes

2019-04-17 Thread Frederic Chen
This patch adds nodes for Digital Image Processing (DIP). DIP is embedded in Mediatek SoCs and works with the co-processor to adjust image content according to tuning input data. It also provides image format conversion, resizing, and rotation features. Signed-off-by: Frederic Chen --- arch/arm6

[RFC PATCH V1 3/6] dt-bindings: mt8183: Added DIP dt-bindings

2019-04-17 Thread Frederic Chen
This patch adds DT binding documentation for the Digital Image Processing (DIP) unit of camera ISP system on Mediatek's SoCs. Signed-off-by: Frederic Chen --- .../bindings/media/mediatek,mt8183-dip.txt| 35 +++ 1 file changed, 35 insertions(+) create mode 100644 Documentati

[RFC PATCH V1 0/6] media: platform: Add support for Digital Image Processing (DIP) on mt8183 SoC

2019-04-17 Thread Frederic Chen
Hello, This RFC patch series adding Digital Image Processing (DIP) driver on Mediatek mt8183 SoC. It belongs to the Mediatek's ISP driver series based on V4L2 and media controller framework. I posted the main part of the DIP driver as RFC to discuss first and would like some review comments.

[RFC PATCH V1 5/6] media: platform: Add Mediatek DIP driver KConfig

2019-04-17 Thread Frederic Chen
This patch adds KConfig for Mediatek Digital Image Processing driver(DIP). DIP is embedded in Mediatek SoCs. It provides image format conversion, resizing, and rotation function. Signed-off-by: Frederic Chen --- drivers/media/platform/Kconfig | 2 ++ drivers/media/platform/mtk-isp/Kconf

[RFC PATCH V1 1/6] dt-bindings: mt8183: Add binding for DIP shared memory

2019-04-17 Thread Frederic Chen
This patch adds the binding for describing the shared memory used to exchange configuration and tuning data between the co-processor and Digital Image Processing (DIP) unit of the camera ISP system on Mediatek SoCs. Signed-off-by: Frederic Chen --- .../mediatek,reserve-memory-dip_smem.txt |

[RFC PATCH V1 2/6] dts: arm64: mt8183: Add DIP shared memory node

2019-04-17 Thread Frederic Chen
This patch adds a shared memory region used on mt8183 for exchanging tuning data between co-processor and Digital Image Processing(DIP) unit. Signed-off-by: Frederic Chen --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/bo

Route lifetime in SUBDEV_[GS]_ROUTING

2019-04-17 Thread Sakari Ailus
Hi Jacopo, I promised to write a bit about the routing problem I attempted to write on #v4l. It's a bit late, but here it is. Let me know if you share my understanding (and especially do so if you don't :)). A route is identified by the source and sink pads as well as the stream ID on the source

Re: [PATCH] libv4lconvert: Add support for V4L2_PIX_FMT_NV12

2019-04-17 Thread Ricardo Ribalda Delgado
Hi Hans On Tue, Apr 16, 2019 at 6:00 PM Hans de Goede wrote: > > Hi Ricardo, > > On 16-04-19 14:02, Ricardo Ribalda Delgado wrote: > > NV12 is a two-plane version YUV 4:2:0, where the U and V components > > are subsampled 2x2. > > > > Signed-off-by: Ricardo Ribalda Delgado > > Your patch looks g