cron job: media_tree daily build: WARNINGS

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

Re: [GIT PULL FOR v5.2] Media Device Allocator API

2019-04-03 Thread shuah
On 4/3/19 1:32 AM, Hans Verkuil wrote: Hi Mauro, After five (!) years of work, this is finally ready to go in. Thank you Shuah for your perseverance! Awesome. I am glad that this work is finally getting in. thanks, -- Shuah

[PATCH v2 11/16] media: vicodec: change fwht_encode_frame to get the header separately

2019-04-03 Thread Dafna Hirschfeld
pass a pointer to the compressed frame header as a different variable. This is a preparation for the stateless encoder where the header is not in the same buffer with the data. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/codec-v4l2-fwht.c | 9 - drivers/media/platf

[PATCH v2 13/16] media: vicodec: add field 'dev_inst' to vicodec_ctx

2019-04-03 Thread Dafna Hirschfeld
Add the field 'dev_inst' to vicodec_ctx that points to the 'vicodec_dev_instance'. This saves many if-elses Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 42 ++- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/drivers/media/pl

[PATCH v2 14/16] media: vicodec: Register another node for stateless encoder

2019-04-03 Thread Dafna Hirschfeld
Add stateless encoder instance field to the dev struct and register another node for the stateless encoder. The stateless API for the node will be implemented in further patches. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 44 +++ 1 file ch

[PATCH v2 12/16] media: vicodec: bugfix: release stateless dec m2m_dev in vicodec_remove

2019-04-03 Thread Dafna Hirschfeld
add a call 'v4l2_m2m_release(dev->stateless_dec.m2m_dev)' in vicodec_remove Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicode

[PATCH v2 08/16] vicodec: set KEY/PFRAME flag when decoding

2019-04-03 Thread Dafna Hirschfeld
From: Hans Verkuil Set V4L2_BUF_FLAG_P/KEYFRAME after decoding a frame. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platfo

[PATCH v2 09/16] v4l2-ctrls: add v4l2_ctrl_s_ctrl_ptr()

2019-04-03 Thread Dafna Hirschfeld
From: Hans Verkuil Add a function to set a compound control by passing a pointer to the new data. Functions to set other control types already existed, but not for this. This is needed for stateless encoders. Signed-off-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ctrls.c | 11

[PATCH v2 16/16] media: vicodec: Add support for stateless encoder

2019-04-03 Thread Dafna Hirschfeld
Adjust the stateless API code to support both encoder and decoder. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 106 -- 1 file changed, 73 insertions(+), 33 deletions(-) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/

[PATCH v2 15/16] media: vicodec: set pixelformat V4L2_PIX_FMT_FWHT_STATELESS for stateless encoder

2019-04-03 Thread Dafna Hirschfeld
for stateless encoder, set the capture pixelformat to V4L2_PIX_FMT_FWHT_STATELESS and the pix info to pixfmt_stateless_fwht Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 32 --- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/

[PATCH v2 05/16] vicodec: add V4L2_CID_MIN_BUFFERS_FOR_OUTPUT

2019-04-03 Thread Dafna Hirschfeld
From: Hans Verkuil The stateful encoder requires the presence of this control. Since a single buffer is sufficient for vicodec, we just set this control to 1. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

[PATCH v2 10/16] media: vicodec: don't test if info is NULL

2019-04-03 Thread Dafna Hirschfeld
pixel info of q_data is never set to NULL so there is no need to test if it is. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vi

[PATCH v2 04/16] vicodec: pass on enc output format to capture side

2019-04-03 Thread Dafna Hirschfeld
From: Hans Verkuil Setting the encoder output format to e.g. 1920x1080 will set the crop rectangle to 1920x1080, the coded resolution to 1920x1088 and the capture coded resolution and sizeimage to 1920x1088 as well. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c

[PATCH v2 00/16] media: vicodec: adding support for stateless encoder

2019-04-03 Thread Dafna Hirschfeld
patches 10-16 are new, patch 16 is experimental. It is not yet clear how vicodec will update the request controls so that the userspace can read it. Dafna Hirschfeld (7): media: vicodec: don't test if info is NULL media: vicodec: change fwht_encode_frame to get the header separately media: v

[PATCH v2 03/16] vicodec: always return a valid format.

2019-04-03 Thread Dafna Hirschfeld
From: Hans Verkuil Rather than returning width/height values of 0, just default to a format. Formats in V4L2 are always supposed to be valid, there is no concept of an invalid format. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 26 ++- 1 file

[PATCH v2 07/16] vicodec: restrict decoder format list when src fmt is known

2019-04-03 Thread Dafna Hirschfeld
From: Hans Verkuil Report the full list of supported decoder formats until the format encoded in the bitstream is known. After that only report the formats compatible with that initial format. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 23 +++---

[PATCH v2 06/16] vicodec: improve handling of ENC_CMD_STOP/START

2019-04-03 Thread Dafna Hirschfeld
From: Hans Verkuil Correctly handle stopping and restarting the encoder, keeping track of the stop and drain states. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 121 +++--- 1 file changed, 100 insertions(+), 21 deletions(-) diff --git a/drivers/

[PATCH v2 01/16] videobuf2-v4l2: set last_buffer_dequeued in dqbuf

2019-04-03 Thread Dafna Hirschfeld
From: Hans Verkuil last_buffer_dequeued was set to true in __fill_v4l2_buffer, but this is called for qbuf as well. Move it to vb2_dqbuf. Signed-off-by: Hans Verkuil --- drivers/media/common/videobuf2/videobuf2-v4l2.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH v2 02/16] vicodec: move v4l2_ctrl_request_complete after spin_unlock

2019-04-03 Thread Dafna Hirschfeld
From: Hans Verkuil v4l2_ctrl_request_complete can sleep, so can't be called while a spinlock is held. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/vicodec/vicodec-cor

Re: print frequency debug only if dvb_frontend_debug is enables

2019-04-03 Thread Sean Young
On Thu, Mar 28, 2019 at 11:44:00AM +0100, Peter Holik wrote: > Hi! > > Every transponder switch from my vdr causes this debug message "frequency > interval: tuner: ..., frontend: ..." in syslog. > > I think this should only happen if dvb_frontend_debug parameter is set. > > cu Peter You need a

Re: [PATCH 0/0] media: uvcdriver: add support for Chicony HP Full-HD Camera (04f2:b62f)

2019-04-03 Thread Salvador Fernández
Hi Laurent, Sorry for the delay. El mar., 2 abr. 2019 a las 13:41, Laurent Pinchart () escribió: > > Hi Salvador, > > Thank you for the patch. > > On Mon, Apr 01, 2019 at 05:47:26PM +0200, Salvador Fernández wrote: > > Hi developers, > > > > A very simple patch to add support for newer HP Full-HD

Re: [PATCH] media: rc: xbox_remote: add protocol and set timeout

2019-04-03 Thread Sean Young
On Sun, Mar 24, 2019 at 10:43:51AM +0100, Matthias Reichl wrote: > The timestamps in ir-keytable -t output showed that the Xbox DVD > IR dongle decodes scancodes every 64ms. The last scancode of a > longer button press is decodes 64ms after the last-but-one which > indicates the decoder doesn't use

[PATCH v3 2/3] videobuf2-dma-sg: Prevent size from overflowing

2019-04-03 Thread Sakari Ailus
buf->size is an unsigned long; casting that to int will lead to an overflow if buf->size exceeds INT_MAX. Fix this by changing the type to unsigned long instead. This is possible as the buf->size is always aligned to PAGE_SIZE, and therefore the size will never have values lesser than 0. Note on

[PATCH v3 0/3] Videobuf2 corner case fixes

2019-04-03 Thread Sakari Ailus
Hi all, Here's a third version of the set fixing a few videobuf2 corner cases. Most drivers have limits for the size already but not necessarily all of them. since v2: - Remove the sanity check from the second patch as suggested by Mauro. since v1: - Add a sanity check for alignment in vb2_dma

[PATCH v3 1/3] videobuf2-core: Prevent size alignment wrapping buffer size to 0

2019-04-03 Thread Sakari Ailus
PAGE_ALIGN() may wrap the buffer size around to 0. Prevent this by checking that the aligned value is not smaller than the unaligned one. Note on backporting to stable: the file used to be under drivers/media/v4l2-core, it was moved to the current location after 4.14. Signed-off-by: Sakari Ailus

[PATCH v3 3/3] videobuf2-core.h: Document the alloc memop size argument as page aligned

2019-04-03 Thread Sakari Ailus
The size argument of the alloc memop, which allocates buffer memory, is page aligned. Document it as such in the only caller as well as ops documentation. Signed-off-by: Sakari Ailus Reviewed-by: Hans Verkuil --- drivers/media/common/videobuf2/videobuf2-core.c | 1 + include/media/videobuf2-cor

[PATCH v4l-utils] keytable: improve description of ir-keytable

2019-04-03 Thread Sean Young
Signed-off-by: Sean Young --- utils/keytable/ir-keytable.1.in | 8 +--- utils/keytable/keytable.c | 10 +++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/utils/keytable/ir-keytable.1.in b/utils/keytable/ir-keytable.1.in index 3ea7ea51..5237f0be 100644 --- a/uti

[GIT PULL FOR v5.2] Media Device Allocator API

2019-04-03 Thread Hans Verkuil
Hi Mauro, After five (!) years of work, this is finally ready to go in. Thank you Shuah for your perseverance! Regards, Hans The following changes since commit 1c3ec30bb23023d738b538e64ac3028902d53692: media: index.rst: exclude Indexes section from latex/pdf output (2019-03-30 09:4