[GIT PULL FOR v5.5] vimc fixes and enhancements

2019-10-23 Thread Hans Verkuil
The following changes since commit 6ce1d376d33eb775331b36a38afa28f9f08945e3: media: docs-rst: Document m2m stateless video decoder interface (2019-10-21 07:43:45 -0300) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-v5.5m for you to fetch changes

Re: [PATCH v3 2/2] media: vimc: upon streaming, check that the pipeline starts with a source entity

2019-10-23 Thread Hans Verkuil
On 10/9/19 5:53 PM, Dafna Hirschfeld wrote: > Userspace can disable links and create pipelines that > do not start with a source entity. Trying to stream > from such a pipeline should fail with -EPIPE > currently this is not handled and cause kernel crash. > > Reproducing the crash: > media-ctl -d

Re: [PATCH 0/3] vimc: Allow multiple capture devices to use the same sensor

2019-10-23 Thread Hans Verkuil
Hi Niklas, For one reason or another this series was never reviewed/picked up and it now no longer applies. Combined with the big switch to a monolithic driver I am sure that this series needs to be redone. So I am marking it as "Changes Requested" and it is up to you to decide whether to rebase/

[GIT PULL v2 FOR v5.5] Add HEVC stateless decoder support

2019-10-22 Thread Hans Verkuil
Second version: this time based on the v9 series. See the cover letter https://patchwork.linuxtv.org/cover/59597/ for the changes since the previous pull request. Regards, Hans The following changes since commit 6ce1d376d33eb775331b36a38afa28f9f08945e3: media: docs-rst: Document m2m s

cron job: media_tree daily build: ERRORS

2019-10-22 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 Oct 23 05:00:10 CEST 2019 media-tree git hash:6ce1d376d33eb775331b36a38afa28f9f08945e3 media_build gi

Re: [PATCH v4 01/11] dt-bindings: video-interfaces: Document 'location' property

2019-10-22 Thread Hans Verkuil
On 10/8/19 10:20 AM, Jacopo Mondi wrote: > On Tue, Oct 08, 2019 at 10:06:34AM +0200, Pavel Machek wrote: >> On Tue 2019-10-08 09:58:28, Jacopo Mondi wrote: >>> Pavel, >>> >>> On Tue, Oct 08, 2019 at 09:40:52AM +0200, Pavel Machek wrote: On Mon 2019-10-07 18:29:03, Jacopo Mondi wrote: > Add

Re: [PATCH v4 04/11] media: v4l2-ctrl: Document V4L2_CID_CAMERA_SENSOR_ROTATION

2019-10-22 Thread Hans Verkuil
On 10/7/19 6:29 PM, Jacopo Mondi wrote: > Add documentation for the V4L2_CID_CAMERA_SENSOR_ROTATION camera > control. The newly added read-only control reports the camera device > mounting rotation. > > Signed-off-by: Jacopo Mondi > --- > .../media/uapi/v4l/ext-ctrls-camera.rst | 116 +

cron job: media_tree daily build: ERRORS

2019-10-21 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: Tue Oct 22 05:00:10 CEST 2019 media-tree git hash:6ce1d376d33eb775331b36a38afa28f9f08945e3 media_build gi

Re: Userspace support libraries for touch pad devices?

2019-10-21 Thread Hans Verkuil
Ping! Regards, Hans On 10/14/19 11:05 AM, Hans Verkuil wrote: > Hi Florian, Nick, > > You both added V4L2 touch pad drivers to the kernel, but I was wondering > about userspace support for such devices. Is there a library somewhere that > can interpret the data? >

Re: [RFC PATCH v3 1/6] media: v4l2: Extend pixel formats to unify single/multi-planar handling (and more)

2019-10-21 Thread Hans Verkuil
On 10/21/19 11:48 AM, Tomasz Figa wrote: > On Mon, Oct 21, 2019 at 6:38 PM Hans Verkuil wrote: >> >> On 10/21/19 11:26 AM, Tomasz Figa wrote: >>> On Mon, Oct 21, 2019 at 5:41 PM Hans Verkuil wrote: >>>> >>>> On 10/8/19 11:11 AM, Boris Brezillon

Re: [ANN v2] Media sessions in Lyon in October: future V4L2 work

2019-10-21 Thread Hans Verkuil
On 10/17/19 1:17 PM, Hans Verkuil wrote: > Hi all, > > Since we have three separate half-day sessions for different topics I decided > to split the announcement for this in three emails as well, so these things > can be discussed in separate threads. > > All sessions are

Re: [RFC PATCH v3 1/6] media: v4l2: Extend pixel formats to unify single/multi-planar handling (and more)

2019-10-21 Thread Hans Verkuil
On 10/21/19 11:26 AM, Tomasz Figa wrote: > On Mon, Oct 21, 2019 at 5:41 PM Hans Verkuil wrote: >> >> On 10/8/19 11:11 AM, Boris Brezillon wrote: >>> This is part of the multiplanar and singleplanar unification process. >>> v4l2_ext_pix_format is supposed to wor

Re: OMAP3 ISP v4l2 inconsistency on DM3730

2019-10-21 Thread Hans Verkuil
On 10/21/19 10:21 AM, Hans Verkuil wrote: > On 10/20/19 7:39 PM, Laurent Pinchart wrote: >> Hi Hans, >> >> On Sun, Oct 20, 2019 at 07:26:20PM +0200, Hans Verkuil wrote: >>> On 10/20/19 7:35 AM, Laurent Pinchart wrote: >>>> On Sat, Oct 19, 2019 at 11:14

Re: [RFC PATCH v3 1/6] media: v4l2: Extend pixel formats to unify single/multi-planar handling (and more)

2019-10-21 Thread Hans Verkuil
On 10/8/19 11:11 AM, Boris Brezillon wrote: > This is part of the multiplanar and singleplanar unification process. > v4l2_ext_pix_format is supposed to work for both cases. > > We also add the concept of modifiers already employed in DRM to expose > HW-specific formats (like tiled or compressed f

Re: OMAP3 ISP v4l2 inconsistency on DM3730

2019-10-21 Thread Hans Verkuil
On 10/20/19 7:39 PM, Laurent Pinchart wrote: > Hi Hans, > > On Sun, Oct 20, 2019 at 07:26:20PM +0200, Hans Verkuil wrote: >> On 10/20/19 7:35 AM, Laurent Pinchart wrote: >>> On Sat, Oct 19, 2019 at 11:14:03AM -0500, Adam Ford wrote: >>>> On Fri, Oct 18,

cron job: media_tree daily build: OK

2019-10-20 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: Mon Oct 21 05:00:10 CEST 2019 media-tree git hash:4b1d7c2760d26363c497b959a81f8d055ba767c1 media_build gi

Re: OMAP3 ISP v4l2 inconsistency on DM3730

2019-10-20 Thread Hans Verkuil
On 10/20/19 7:35 AM, Laurent Pinchart wrote: > Hi Adam, > > On Sat, Oct 19, 2019 at 11:14:03AM -0500, Adam Ford wrote: >> On Fri, Oct 18, 2019 at 4:17 PM Sakari Ailus wrote: >>> On Fri, Oct 18, 2019 at 04:10:23PM -0500, Adam Ford wrote: On Fri, Oct 18, 2019 at 4:00 PM Sakari Ailus wrote: >>

cron job: media_tree daily build: OK

2019-10-19 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: Sun Oct 20 05:00:10 CEST 2019 media-tree git hash:4b1d7c2760d26363c497b959a81f8d055ba767c1 media_build gi

cron job: media_tree daily build: OK

2019-10-18 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: Sat Oct 19 05:00:19 CEST 2019 media-tree git hash:4b1d7c2760d26363c497b959a81f8d055ba767c1 media_build gi

cron job: media_tree daily build: OK

2019-10-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: Fri Oct 18 05:00:13 CEST 2019 media-tree git hash:4b1d7c2760d26363c497b959a81f8d055ba767c1 media_build gi

[ANN v2] Media sessions in Lyon in October: future V4L2 work

2019-10-17 Thread Hans Verkuil
Laurent Pinchart Niklas Söderlund Stanimir Varbanov Hans Verkuil That's exactly 15 people, so the room is full. If I missed someone, or you are on the list but won't attend after all, then please let me know asap. Agenda: The main (only?) point of discussion is Boris' RFC v3 patch

[ANN v2] Media sessions in Lyon in October: libcamera

2019-10-17 Thread Hans Verkuil
Söderlund Dave Stevenson Hans Verkuil That's 10 people. Planning to use libcamera, but willing to give up their seat if needed: Daniel Gomez Helen Koike Just interested: Boris Brezillon Alexandre Courbot If I missed someone, or you are on the list but won't attend after

[ANN v3] Media sessions in Lyon in October: codecs

2019-10-17 Thread Hans Verkuil
Figa Ezequiel Garcia Dafna Hirschfeld Paul Kocialkowski Maxime Ripard Dave Stevenson Michael Tretter Stanimir Varbanov Hans Verkuil Please let me know asap if I missed someone, or if you are listed, but can't join for some reason. There are three seats left, and I have five on

[ANN v2] Media sessions in Lyon in October: codecs

2019-10-17 Thread Hans Verkuil
Kocialkowski Maxime Ripard Dave Stevenson Michael Tretter Stanimir Varbanov Hans Verkuil Please let me know asap if I missed someone, or if you are listed, but can't join for some reason. There are three seats left, and I have five on the 'just interested' list: Daniel Gomez

[GIT PULL FOR v5.5 (v2)] vivid: add metadata capture/output support

2019-10-16 Thread Hans Verkuil
vivid: Add metadata output support (2019-10-17 08:50:14 +0200) Tag branch -------- Hans Verkuil (3): v4l2-dev: simplify the SDR checks v4l2-dev: fix is_tch checks

Re: [PATCH] Documentation:media:v4l2:Add vivid metadata doc

2019-10-16 Thread Hans Verkuil
Vandana, Can you post a v3 with this proposed license? Thanks! Hans On 10/16/19 9:45 PM, Mauro Carvalho Chehab wrote: > Em Fri, 4 Oct 2019 13:59:00 +0200 > Hans Verkuil escreveu: > >> On 10/4/19 1:55 PM, Vandana BN wrote: >>> Adds new file for descri

cron job: media_tree daily build: OK

2019-10-16 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 Oct 17 05:00:11 CEST 2019 media-tree git hash:4b1d7c2760d26363c497b959a81f8d055ba767c1 media_build gi

Re: [PATCH 1/3] v4l2-dev/ioctl: Add V4L2_CAP_IO_MC

2019-10-16 Thread Hans Verkuil
On 10/15/19 4:35 PM, Niklas Söderlund wrote: > Add a video device capability flag to indicate that its inputs and/or > outputs are controlled by the Media Controller instead of the V4L2 API. > When this flag is set, ioctls for get, set and enum inputs and outputs > are automatically enabled and pro

[GIT PULL FOR v5.5] Various fixes/improvements

2019-10-16 Thread Hans Verkuil
media: imx.rst: Pass the v4l2-ctl configuration Hans Verkuil (1): cec-pin: add 'received' callback Jae Hyun Yoo (3): media: aspeed: refine hsync/vsync polarity setting logic media: aspeed: set hsync and vsync polarities to normal before starting mode detection

Re: [PATCH] staging: meson: add space to fix check warning

2019-10-16 Thread Hans Verkuil
On 10/16/19 12:34 AM, Jules Irenge wrote: > Fix "alignment should mactch open parenthesis" check. > Issue detected by checkpatch tool > > Signed-off-by: Jules Irenge > --- > drivers/staging/media/meson/vdec/codec_mpeg12.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/

[GIT PULL FOR v5.5] Add slicing support + spec for stateless decoders

2019-10-16 Thread Hans Verkuil
ranch Alexandre Courbot (1): media: docs-rst: Document m2m stateless video decoder interface Hans Verkuil (4): vb2: add V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF v4l2-mem2mem: support held capture buffers videodev2.h

[GIT PULL FOR v5.5] vivid: add metadata capture/output support

2019-10-16 Thread Hans Verkuil
4:06 +0200) Tag branch ---- Hans Verkuil (3): v4l2-dev: simplify the SDR checks v4l2-dev: fix is_tch checks v4l2-dev: disable frequency and tuner ioctls for touch Vandana BN (5): v4l2-core: correctl

cron job: media_tree daily build: ERRORS

2019-10-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: Wed Oct 16 05:00:10 CEST 2019 media-tree git hash:3ff3a712a9eabb3d7bf52c263dd1ece054345df4 media_build gi

Re: [PATCHv6 1/3] v4l2-core: correctly validate video and metadata ioctls

2019-10-14 Thread Hans Verkuil
On 10/14/19 11:36 PM, Laurent Pinchart wrote: > Hi Hans, > > Tank you for the patch. > > On Mon, Oct 14, 2019 at 10:40:19AM +0200, Hans Verkuil wrote: >> From: Vandana BN >> >> If the type is VFL_TYPE_GRABBER, then also check device_caps >> to see if

Re: [PATCHv6 4/3] v4l2-dev: disable frequency and tuner ioctls for touch

2019-10-14 Thread Hans Verkuil
On 10/14/19 11:43 PM, Laurent Pinchart wrote: > Hi Hans, > > Thank you for the patch. > > On Mon, Oct 14, 2019 at 02:01:05PM +0200, Hans Verkuil wrote: >> Touch devices have obviously no tuner, so don't attempt to enable those >> ioctls >> for such device

Re: [PATCHv6 3/3] v4l2-dev: fix is_tch checks

2019-10-14 Thread Hans Verkuil
On 10/14/19 11:42 PM, Laurent Pinchart wrote: > Hi Hans, > > Thank you for the patch. > > On Mon, Oct 14, 2019 at 10:40:21AM +0200, Hans Verkuil wrote: >> Touch devices mark too many ioctls as valid. Restrict the list of >> valid ioctls for touch devices. >&g

cron job: media_tree daily build: ERRORS

2019-10-14 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: Tue Oct 15 05:00:10 CEST 2019 media-tree git hash:3ff3a712a9eabb3d7bf52c263dd1ece054345df4 media_build gi

Re: [PATCH v2] v4l2-ctl: support for metadata output

2019-10-14 Thread Hans Verkuil
On 10/14/19 1:44 PM, Hans Verkuil wrote: > On 10/3/19 12:54 PM, Vandana BN wrote: >> Adds support to test metadata output format V4L2_META_FMT_VIVID. >> >> Signed-off-by: Vandana BN >> --- >> contrib/freebsd/include/linux/videodev2.h | 1 + >> include

[PATCHv6 4/3] v4l2-dev: disable frequency and tuner ioctls for touch

2019-10-14 Thread Hans Verkuil
Touch devices have obviously no tuner, so don't attempt to enable those ioctls for such devices. Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/v4l2-core/v4l2-dev.c b/drivers/media/v4l2-core/v4l2-dev.c index cec588b04711..da42d172714a 100644 --- a/drivers/media/v4l2-core/v4l2-

Re: [PATCH v2] v4l2-ctl: support for metadata output

2019-10-14 Thread Hans Verkuil
On 10/3/19 12:54 PM, Vandana BN wrote: > Adds support to test metadata output format V4L2_META_FMT_VIVID. > > Signed-off-by: Vandana BN > --- > contrib/freebsd/include/linux/videodev2.h | 1 + > include/linux/videodev2.h | 1 + > utils/v4l2-ctl/v4l2-ctl-meta.cpp | 35 +

Re: [PATCH 6/8] cec-follower: add tuner digital service emulation

2019-10-14 Thread Hans Verkuil
On 10/14/19 6:17 AM, Jiunn Chang wrote: > The cec-follower will now emulate a digital service. This allows an > initiator device can directly select a digital service by choosing a > digital service ID method and broadcast system along with the proper > digital IDs or channel data. After a digita

Re: [PATCH 3/8] cec-follower: create digital ARIB channels

2019-10-14 Thread Hans Verkuil
On 10/14/19 6:17 AM, Jiunn Chang wrote: > This table will allow proper testing of digital tuner control features. > There are three channels per TSID/ONID/SID combination along with channel > data for the following digital ARIB broadcast systems: > - ARIB-BS > - ARIB-T > > Signed-off-by: Jiunn

Userspace support libraries for touch pad devices?

2019-10-14 Thread Hans Verkuil
Hi Florian, Nick, You both added V4L2 touch pad drivers to the kernel, but I was wondering about userspace support for such devices. Is there a library somewhere that can interpret the data? The only link I found is https://github.com/ndyer/heatmap/commits/heatmap-v4l but that appears to be mostl

[PATCHv6 0/3] v4l2-core: improve ioctl validation

2019-10-14 Thread Hans Verkuil
: this should be done in patch 3/3 where this code no longer applies to touch devices (which was the reason for the GRABBER test). Changes in v5: I now check if a GRABBER device is a video or metadata device (or both!) by checking device_caps. Hans Verkuil (2): v4l2-dev: simplify the SDR checks

[PATCHv6 1/3] v4l2-core: correctly validate video and metadata ioctls

2019-10-14 Thread Hans Verkuil
other ioctls as well, even if the device supports only video or metadata. Metadata devices act similar to VBI devices w.r.t. which ioctls should be enabled. This makes sense since VBI *is* metadata. Signed-off-by: Vandana BN Co-Developed-by: Hans Verkuil Signed-off-by: Hans Verkuil --- drivers

[PATCHv6 3/3] v4l2-dev: fix is_tch checks

2019-10-14 Thread Hans Verkuil
Touch devices mark too many ioctls as valid. Restrict the list of valid ioctls for touch devices. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-dev.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-dev.c

[PATCHv6 2/3] v4l2-dev: simplify the SDR checks

2019-10-14 Thread Hans Verkuil
In determine_valid_ioctls() we can use SET_VALID_IOCTL to enable ioctls for SDR, simplifying the code. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-dev.c | 24 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2

Re: [RESEND PATCH v2 3/4] media: rockchip: Add the rkvdec driver

2019-10-11 Thread Hans Verkuil
On 10/11/19 1:15 PM, Boris Brezillon wrote: > Hi Hans, > > On Fri, 11 Oct 2019 12:06:35 +0200 > Hans Verkuil wrote: > >>> diff --git a/drivers/staging/media/rockchip/Kconfig >>> b/drivers/staging/media/rockchip/Kconfig >>> new file mode 100644 >>

Re: [RESEND PATCH v2 3/4] media: rockchip: Add the rkvdec driver

2019-10-11 Thread Hans Verkuil
On 10/11/19 11:33 AM, Boris Brezillon wrote: > The rockchip vdec block is a stateless decoder that's able to decode > H264, HEVC and VP9 content. This patch only adds H264 support and is > making use of the m2m codec helpers. Thank you for working on this. Here is a quick review: > > Signed-off

Re: [RESEND PATCH v2 0/4] media: rockchip: Add the rkvdec driver

2019-10-11 Thread Hans Verkuil
On 10/11/19 11:33 AM, Boris Brezillon wrote: > Hello, > > Sorry for the noise, I forgot to Cc the DT maintainers/ML on my last > attempt. > > This is v2 of the rkvdec driver which was initially posted as part of > my RFC adding codec helpers. > For this version, I decided to get rid of the helper

[PATCHv4 4/6] media: v4l2-mem2mem: add stateless_(try_)decoder_cmd ioctl helpers

2019-10-11 Thread Hans Verkuil
From: Jernej Skrabec These helpers are used by stateless codecs when they support multiple slices per frame and hold capture buffer flag is set. It's expected that all such codecs will use this code. Signed-off-by: Jernej Skrabec Co-developed-by: Hans Verkuil Signed-off-by: Hans Ve

[PATCHv4 2/6] v4l2-mem2mem: support held capture buffers

2019-10-11 Thread Hans Verkuil
account (i.e. that buffer won't be returned). This has to be done while job_spinlock is held to avoid race conditions. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-mem2mem.c | 130 ++--- include/media/v4l2-mem2mem.h | 33 ++- 2 files ch

[PATCHv4 1/6] vb2: add V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF

2019-10-11 Thread Hans Verkuil
This patch adds support for the V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF flag. It also adds a new V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF capability. Drivers should set vb2_queue->subsystem_flags to VB2_V4L2_FL_SUPPORTS_M2M_HOLD_CAPTURE_BUF to indicate support for this flag. Signed-off-by: H

[PATCHv4 0/6] media: cedrus: h264: Support multi-slice frames

2019-10-11 Thread Hans Verkuil
he job has to be done with job_spinlock held to avoid race conditions with v4l2_m2m_ioctl_stateless_decoder_cmd(). - v4l2_m2m_ioctl_stateless_decoder_cmd takes the job_spinlock to prevent race conditions. Regards, Hans Hans Verkuil (4): vb2: add V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_

[PATCHv4 3/6] videodev2.h: add V4L2_DEC_CMD_FLUSH

2019-10-11 Thread Hans Verkuil
Add this new V4L2_DEC_CMD_FLUSH decoder command and document it. Reviewed-by: Boris Brezillon Reviewed-by: Alexandre Courbot Signed-off-by: Hans Verkuil [Adjusted description] Signed-off-by: Jernej Skrabec --- Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst | 10 +- Documentation

[PATCHv4 6/6] media: cedrus: h264: Support multiple slices per frame

2019-10-11 Thread Hans Verkuil
o use v4l2_m2m_buf_done_and_job_finish] [hverkuil-ci...@xs4all.nl: removed unnecessary (u32) cast] [hverkuil-ci...@xs4all.nl: use new_frame v4l2_m2m_ctx bool] Signed-off-by: Hans Verkuil --- drivers/staging/media/sunxi/cedrus/cedrus_h264.c | 12 +++- drivers/staging/media/sunxi/cedrus/cedrus_hw.c

[PATCHv4 5/6] v4l2-mem2mem: add new_frame detection

2019-10-11 Thread Hans Verkuil
Drivers that support VB2_V4L2_FL_SUPPORTS_M2M_HOLD_CAPTURE_BUF typically want to know if a new frame is started (i.e. the first slice is about to be processed). Add a new_frame bool to v4l2_m2m_ctx and set it accordingly. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-mem2mem.c

Re: [PATCHv3 6/8] media: cedrus: Detect first slice of a frame

2019-10-11 Thread Hans Verkuil
On 10/11/19 10:49 AM, Jernej Škrabec wrote: > Dne četrtek, 10. oktober 2019 ob 15:11:50 CEST je Hans Verkuil napisal(a): >> From: Jernej Skrabec >> >> When codec supports multiple slices in one frame, VPU has to know when >> first slice of each frame is being process

cron job: media_tree daily build: OK

2019-10-10 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 Oct 11 05:00:11 CEST 2019 media-tree git hash:3ff3a712a9eabb3d7bf52c263dd1ece054345df4 media_build gi

[PATCHv3 7/8] media: cedrus: h264: Support multiple slices per frame

2019-10-10 Thread Hans Verkuil
From: Jernej Skrabec With recent changes, support for decoding multi-slice frames can be easily added now. Signal VPU if current slice is first in frame or not and add information about first macroblock coordinates. Signed-off-by: Jernej Skrabec Signed-off-by: Hans Verkuil --- drivers

[PATCHv3 2/8] v4l2-mem2mem: support held capture buffers

2019-10-10 Thread Hans Verkuil
account (i.e. that buffer won't be returned). This has to be done while job_spinlock is held to avoid race conditions. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-mem2mem.c | 128 ++--- include/media/v4l2-mem2mem.h | 33 ++- 2 files ch

[PATCHv3 5/8] v4l2-mem2mem: add new_frame detection

2019-10-10 Thread Hans Verkuil
Drivers that support VB2_V4L2_FL_SUPPORTS_M2M_HOLD_CAPTURE_BUF typically want to know if a new frame is started (i.e. the first slice is about to be processed). Add a new_frame bool to v4l2_m2m_ctx and set it accordingly. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-mem2mem.c

[PATCHv3 8/8] media: cedrus: Add support for holding capture buffer

2019-10-10 Thread Hans Verkuil
nting V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF capability. Signed-off-by: Jernej Skrabec [hverkuil-ci...@xs4all.nl: rewritten to use v4l2_m2m_buf_done_and_job_finish] Signed-off-by: Hans Verkuil --- drivers/staging/media/sunxi/cedrus/cedrus_hw.c | 16 ++-- .../staging/media/sunxi/cedrus/cedrus_video.c

[PATCHv3 3/8] videodev2.h: add V4L2_DEC_CMD_FLUSH

2019-10-10 Thread Hans Verkuil
Add this new V4L2_DEC_CMD_FLUSH decoder command and document it. Reviewed-by: Boris Brezillon Reviewed-by: Alexandre Courbot Signed-off-by: Hans Verkuil [Adjusted description] Signed-off-by: Jernej Skrabec --- Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst | 10 +- Documentation

[PATCHv3 1/8] vb2: add V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF

2019-10-10 Thread Hans Verkuil
This patch adds support for the V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF flag. It also adds a new V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF capability. Drivers should set vb2_queue->subsystem_flags to VB2_V4L2_FL_SUPPORTS_M2M_HOLD_CAPTURE_BUF to indicate support for this flag. Signed-off-by: H

[PATCHv3 6/8] media: cedrus: Detect first slice of a frame

2019-10-10 Thread Hans Verkuil
the context. Signed-off-by: Jernej Skrabec [hverkuil-ci...@xs4all.nl: rewritten to use the new_frame bool] Signed-off-by: Hans Verkuil --- drivers/staging/media/sunxi/cedrus/cedrus.h | 1 + drivers/staging/media/sunxi/cedrus/cedrus_dec.c | 1 + 2 files changed, 2 insertions(+) diff --git a

[PATCHv3 4/8] media: v4l2-mem2mem: add stateless_(try_)decoder_cmd ioctl helpers

2019-10-10 Thread Hans Verkuil
From: Jernej Skrabec These helpers are used by stateless codecs when they support multiple slices per frame and hold capture buffer flag is set. It's expected that all such codecs will use this code. Signed-off-by: Jernej Skrabec Co-developed-by: Hans Verkuil Signed-off-by: Hans Ve

[PATCHv3 0/8] media: cedrus: h264: Support multi-slice frames

2019-10-10 Thread Hans Verkuil
conditions. Regards, Hans Hans Verkuil (4): vb2: add V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF v4l2-mem2mem: support held capture buffers videodev2.h: add V4L2_DEC_CMD_FLUSH v4l2-mem2mem: add new_frame detection Jernej Skrabec (4): media: v4l2-mem2mem: add stateless_(try_)decoder_cmd

[GIT PULL v2 FOR v5.5] ti-vpe maintenance, add V4L2_CTRL_TYPE_AREA/V4L2_CID_UNIT_CELL_SIZE

2019-10-10 Thread Hans Verkuil
This PR adds support for V4L2_CID_UNIT_CELL_SIZE and the V4L2_CTRL_TYPE_AREA control type. It also adds support for providing a default value for compound controls (will be useful for stateless codec support as well). It also adds a maintenance series for ti-vpe. Note the addition of a pixel encod

[PATCH] cec-pin: add 'received' callback

2019-10-09 Thread Hans Verkuil
Drivers that use the CEC pin framework have no way of processing messages themselves by providing the 'received' callback. This is present in cec_ops, but not in cec_pin_ops. Add support for this callback. Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/cec/cec-pin.c b/dri

[GIT PULL FOR v5.5] Various fixes/enhancements

2019-10-09 Thread Hans Verkuil
The following changes since commit 219031a6e7dff52a066e8b074adc0697f501e3d3: media: venus: fix build on 32bit environments (2019-10-08 13:46:36 -0300) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-v5.5i for you to fetch changes up to 2bb7c843ebb84

Re: [PATCH 2/2 RESEND] media: usbvision: Fix races among open, close, and disconnect

2019-10-09 Thread Hans Verkuil
On 10/7/19 5:09 PM, Alan Stern wrote: > Visual inspection of the usbvision driver shows that it suffers from > three races between its open, close, and disconnect handlers. In > particular, the driver is careful to update its usbvision->user and > usbvision->remove_pending flags while holding the

[GIT PULL FOR v5.5] ti-vpe maintenance, add V4L2_CTRL_TYPE_AREA/V4L2_CID_UNIT_CELL_SIZE

2019-10-09 Thread Hans Verkuil
This PR adds support for V4L2_CID_UNIT_CELL_SIZE and the V4L2_CTRL_TYPE_AREA control type. It also adds support for providing a default value for compound controls (will be useful for stateless codec support as well). It also adds a maintenance series for ti-vpe. Note the addition of a pixel encod

[GIT PULL FOR v5.5] Add HEVC stateless decoder support

2019-10-09 Thread Hans Verkuil
Time to get this in. Also verified that there are no holes in the new compound control structs for 32/64 bit intel/arm compilations. Regards, Hans The following changes since commit 219031a6e7dff52a066e8b074adc0697f501e3d3: media: venus: fix build on 32bit environments (2019-10-08 13:

cron job: media_tree daily build: OK

2019-10-08 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 Oct 9 05:00:11 CEST 2019 media-tree git hash:219031a6e7dff52a066e8b074adc0697f501e3d3 media_build gi

cron job: media_tree daily build: ERRORS

2019-10-07 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: Tue Oct 8 05:00:12 CEST 2019 media-tree git hash:4a9fbcbbf069a54e4ceaf36689846400e408640f media_build gi

Re: [PATCH v9] vivid: Add metadata capture support

2019-10-07 Thread Hans Verkuil
On 10/4/19 12:24 PM, Vandana BN wrote: > +void vivid_meta_cap_fillbuff(struct vivid_dev *dev, > + struct vivid_buffer *buf, u32 soe) soe should have been a u64 since f_time is a u64. > +{ > + struct vivid_uvc_meta_buf *meta = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); > +

Re: [PATCH v3 2/2] vivid: Add metadata output support

2019-10-07 Thread Hans Verkuil
On 10/4/19 2:08 PM, Vandana BN wrote: > Support metadata output in vivid driver. > Metadata output is used to set brightness, contrast, saturation > and hue. > Adds new files for metadata output. > > Signed-off-by: Vandana BN > --- > drivers/media/platform/vivid/Makefile | 2 +- > driv

[GIT FIXES FOR v5.4] Regression fix for meson CEC drivers

2019-10-07 Thread Hans Verkuil
The following changes since commit 503e59365dd134b2c63864f14e2de0476284b003: media: i2c: ov2659: Switch to SPDX Licensing (2019-10-01 17:39:16 -0300) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/fix-v5.4a for you to fetch changes up to 9b99475a1b930

cron job: media_tree daily build: OK

2019-10-04 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: Sat Oct 5 05:00:13 CEST 2019 media-tree git hash:503e59365dd134b2c63864f14e2de0476284b003 media_build gi

Re: [PATCH] Documentation:media:v4l2:Add vivid metadata doc

2019-10-04 Thread Hans Verkuil
On 10/4/19 1:55 PM, Vandana BN wrote: > Adds new file for describing new metadata format V4L2_META_FMT_VIVID added in > vivid driver. > > Signed-off-by: Vandana BN > --- > Documentation/media/uapi/v4l/meta-formats.rst | 1 + > .../media/uapi/v4l/pixfmt-meta-vivid.rst | 43

Re: [PATCH v8] vivid: Add metadata capture support

2019-10-04 Thread Hans Verkuil
On 10/4/19 11:44 AM, Vandana BN wrote: > This patch adds meatadata capture support in vivid driver. > Adds new files for metadata capture. > Adds vivid controls to generate PTS and SCR for metadata stream. > > Signed-off-by: Vandana BN > --- > V8 - squash commit:fixes for v4l2-compliance issues.

Re: [Linux-kernel-mentees] [PATCH v2 2/2] vivid: Add metadata output support

2019-10-04 Thread Hans Verkuil
On 10/3/19 7:38 PM, Shuah Khan wrote: > On 10/3/19 5:08 AM, Vandana BN wrote: >> Support metadata output in vivid driver. >> Metadata output is used to set brightness, contrast, saturation >> and hue. >> Adds new files for metadata output. >> >> Signed-off-by: Vandana BN >> --- >> drivers/media/

cron job: media_tree daily build: OK

2019-10-03 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 Oct 4 05:00:10 CEST 2019 media-tree git hash:503e59365dd134b2c63864f14e2de0476284b003 media_build gi

Re: [PATCH v2 2/2] vivid: Add metadata output support

2019-10-03 Thread Hans Verkuil
On 10/3/19 1:08 PM, Vandana BN wrote: > Support metadata output in vivid driver. > Metadata output is used to set brightness, contrast, saturation > and hue. > Adds new files for metadata output. > > Signed-off-by: Vandana BN > --- > drivers/media/platform/vivid/Makefile | 2 +- > driv

Re: [PATCH v2 1/2] v4l2-core: Add new metadata format

2019-10-03 Thread Hans Verkuil
On 10/3/19 1:08 PM, Vandana BN wrote: > Add new metadata format to support metadata output in vivid. > > Signed-off-by: Vandana BN > --- > drivers/media/v4l2-core/v4l2-ioctl.c | 1 + > include/uapi/linux/videodev2.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/drivers/media/

Re: [PATCH v7 2/2] vivid: fixes for v4l2-compliance issues.

2019-10-03 Thread Hans Verkuil
On 9/25/19 10:27 AM, Vandana BN wrote: > From: Hans Verkuil > > This patch fixes v4l2-compliance issues seen on metadata device. > > Signed-off-by: Hans Verkuil Can you squash this patch into the previous one? It's really all fixes for the previous patch, and it is bett

Re: [PATCH v7 1/2] vivid: Add metadata capture support

2019-10-03 Thread Hans Verkuil
On 9/25/19 10:27 AM, Vandana BN wrote: > This patch adds meatadata capture support in vivid driver. > Adds new files for metadata capture. > Adds vivid controls to generate PTS and SCR for metadata stream. > > Signed-off-by: Vandana BN > --- > drivers/media/platform/vivid/Makefile | 2

[GIT PULL FOR v5.5] [v2] Two cec fixes

2019-10-03 Thread Hans Verkuil
Hans Verkuil (2): cec-funcs.h: add status_req checks cec-funcs.h: use new CEC_OP_UI_CMD defines include/uapi/linux/cec-funcs.h | 34 ++ 1 file changed, 18 insertions(+), 16 deletions(-)

[GIT PULL FOR v5.5] Two cec fixes

2019-10-03 Thread Hans Verkuil
7a47b22e2051d688b45c8d0d62c098b797240c4c: cec-funcs.h: use new CEC_OP_UI_CMD defines (2019-10-03 12:51:29 +0200) Tag branch Hans Verkuil (2): cec-funcs.h: add status_req

Re: [PATCH 1/2] v4l2-core: Add new metadata format

2019-10-03 Thread Hans Verkuil
On 10/3/19 9:18 AM, Vandana BN wrote: > Add new metadata format to support metadata output in vivid. > > Signed-off-by: Vandana BN > --- > drivers/media/v4l2-core/v4l2-ioctl.c | 1 + > include/uapi/linux/videodev2.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/drivers/media/

Re: [PATCH 1/2] v4l2-core: Add new metadata format

2019-10-03 Thread Hans Verkuil
On 10/3/19 9:18 AM, Vandana BN wrote: > Add new metadata format to support metadata output in vivid. > > Signed-off-by: Vandana BN > --- > drivers/media/v4l2-core/v4l2-ioctl.c | 1 + > include/uapi/linux/videodev2.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/drivers/media/

Re: [PATCH] v4l2-ctl: support for metadata output

2019-10-03 Thread Hans Verkuil
Hi Vandana, Since the videodev2.h header is copied from the header I can't apply this yet until support for V4L2_META_FMT_VIVID is merged into the kernel. I also have a few other comments, see below: On 10/3/19 9:06 AM, Vandana BN wrote: > Adds support to test metadata output format V4L2_META_FM

Re: [PATCH v5 2/2] Add test for new features in cec-follower

2019-10-02 Thread Hans Verkuil
On 10/3/19 5:18 AM, Jiunn Chang wrote: > Analog tuner control test tuner_ctl_test(): > - give analog tuner status > - select tuner analog service > - analog tuner step features > > Signed-off-by: Jiunn Chang > --- > utils/cec-compliance/cec-test.cpp | 74 +++ >

cron job: media_tree daily build: OK

2019-10-02 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 Oct 3 05:00:10 CEST 2019 media-tree git hash:503e59365dd134b2c63864f14e2de0476284b003 media_build gi

Re: [ANN] v4l-utils: remove utils/cec-follower/cec-log.h after a 'git pull'

2019-10-02 Thread Hans Verkuil
On 10/2/19 10:52 AM, Hans Verkuil wrote: > Just a heads up: I synced v4l-utils with the latest media_tree master branch, > and that required some reorganization for the CEC utilities. > > If you do a 'git pull' in an existing v4l-utils repo, then it will fail to > build

Re: Build failed in Jenkins: v4l-utils #43

2019-10-02 Thread Hans Verkuil
On 10/2/19 12:41 PM, Mauro Carvalho Chehab wrote: > Em Wed, 2 Oct 2019 11:49:20 +0200 > Hans Verkuil escreveu: > >> On 10/2/19 11:36 AM, Mauro Carvalho Chehab wrote: >>> Em Wed, 2 Oct 2019 10:25:02 +0200 >>> Hans Verkuil escreveu: >>> >>>

Re: Build failed in Jenkins: v4l-utils #43

2019-10-02 Thread Hans Verkuil
On 10/2/19 11:36 AM, Mauro Carvalho Chehab wrote: > Em Wed, 2 Oct 2019 10:25:02 +0200 > Hans Verkuil escreveu: > >> Hi Mauro, >> >> On 10/2/19 10:16 AM, Jenkins Builder Robot wrote: >>> See >>> <https://builder.linuxtv.org/job/v4l-utils/4

[ANN] v4l-utils: remove utils/cec-follower/cec-log.h after a 'git pull'

2019-10-02 Thread Hans Verkuil
Just a heads up: I synced v4l-utils with the latest media_tree master branch, and that required some reorganization for the CEC utilities. If you do a 'git pull' in an existing v4l-utils repo, then it will fail to build due to an orphaned utils/cec-follower/cec-log.h file. Just remove it and it wi

Re: Build failed in Jenkins: v4l-utils #43

2019-10-02 Thread Hans Verkuil
Hi Mauro, On 10/2/19 10:16 AM, Jenkins Builder Robot wrote: > See > > > Changes: > > [hverkuil-cisco] keytable: add new generated keymaps > > [hverkuil-cisco] msg2ctl.pl: add newline after log_msg > > [hverkuil-cisco

  1   2   3   4   5   6   7   8   9   10   >