cron job: media_tree daily build: OK

2019-01-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 Jan 20 05:00:10 CET 2019 media-tree git hash:e8f9b16d72631870e30a3d8e4ee9f1c097bc7ba0 media_build git

[PATCH] media: cx23885: check allocation return

2019-01-19 Thread Nicholas Mc Guire
Checking of kmalloc() seems to have been committed - as cx23885_dvb_register() is checking for != 0 return, returning -ENOMEM should be fine here. While at it address the coccicheck suggestion to move to kmemdup rather than using kmalloc+memcpy. Signed-off-by: Nicholas Mc Guire Fixes: 46b21bbaa8

[PATCH] media: dvbsky: Avoid leaking dvb frontend

2019-01-19 Thread Stefan BrĂ¼ns
Commit 14f4eaeddabc ("media: dvbsky: fix driver unregister logic") fixed a use-after-free by removing the reference to the frontend after deleting the backing i2c device. This has the unfortunate side effect the frontend device is never freed in the dvb core leaving a dangling device, leading to e

[PATCH 3/4] media: imx: Rename functions that add IPU-internal subdevs/links

2019-01-19 Thread Steve Longerbeam
For the functions that add and remove the internal IPU subdevice descriptors and links between them, rename them to make clear they are the subdevs and links internal to the IPU. Also rename the platform data structure for the internal IPU subdevices. No functional changes. Signed-off-by: Steve Lo

[PATCH 4/4] media: imx: Don't register IPU subdevs/links if CSI port missing

2019-01-19 Thread Steve Longerbeam
The second IPU internal sub-devices were being registered and links to them created even when the second IPU is not present. This is wrong for i.MX6 S/DL and i.MX53 which have only a single IPU. Fixes: e130291212df5 ("[media] media: Add i.MX media core driver") Signed-off-by: Steve Longerbeam Cc

[PATCH 0/4] media: imx: Various fixes for i.MX5 support

2019-01-19 Thread Steve Longerbeam
Some fixes and improvements to support video capture on i.MX5. Steve Longerbeam (4): media: imx: csi: Allow unknown nearest upstream entities media: imx: Clear fwnode link struct for each endpoint iteration media: imx: Rename functions that add IPU-internal subdevs/links media: imx: Don't

[PATCH 2/4] media: imx: Clear fwnode link struct for each endpoint iteration

2019-01-19 Thread Steve Longerbeam
In imx_media_create_csi_of_links(), the 'struct v4l2_fwnode_link' must be cleared for each endpoint iteration, otherwise if the remote port has no "reg" property, link.remote_port will not be reset to zero. This was discovered on the i.MX53 SMD board, since the OV5642 connects directly to ipu1_csi0

[PATCH 1/4] media: imx: csi: Allow unknown nearest upstream entities

2019-01-19 Thread Steve Longerbeam
On i.MX6, the nearest upstream entity to the CSI can only be the CSI video muxes or the Synopsys DW MIPI CSI-2 receiver. However the i.MX53 has no CSI video muxes or a MIPI CSI-2 receiver. So allow for the nearest upstream entity to the CSI to be something other than those. Fixes: bf3cfaa712e5c (

[PATCH v4 6/6] media: vicodec: Add support for resolution change event.

2019-01-19 Thread Dafna Hirschfeld
If the the queues are not streaming then the first resolution change is handled in the buf_queue callback. The following resolution change events are handled in job_ready. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/vicodec-core.c | 355 ++ 1 file changed,

[PATCH v4 4/6] media: vicodec: Add pixel encoding flags to fwht header

2019-01-19 Thread Dafna Hirschfeld
Add flags indicating the pixel encoding - yuv/rgb/hsv to fwht header and to the pixel info. Use it to enumerate the supported pixel formats. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/codec-fwht.h | 6 ++ .../media/platform/vicodec/codec-v4l2-fwht.c | 76 +

[PATCH v4 2/6] media: vicodec: add support for CROP and COMPOSE selection

2019-01-19 Thread Dafna Hirschfeld
Add support for the selection api for the crop and compose targets. The driver rounds up the coded width and height such that all planes dimensions are multiple of 8. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/codec-fwht.c | 80 +++-- drivers/media/platform/vicodec/cod

[PATCH v4 5/6] media: vicodec: Separate fwht header from the frame data

2019-01-19 Thread Dafna Hirschfeld
Keep the fwht header in separated field from the data. Refactor job_ready to use a new function 'get_next_header' Signed-off-by: Dafna Hirschfeld --- .../media/platform/vicodec/codec-v4l2-fwht.c | 24 ++-- .../media/platform/vicodec/codec-v4l2-fwht.h | 1 + drivers/media/platform/vicodec/vi

[PATCH v4 3/6] media: vicodec: use 3 bits for the number of components

2019-01-19 Thread Dafna Hirschfeld
Use 3 bits for the number of components mask in the fwht header flags Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/codec-fwht.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vicodec/codec-fwht.h b/drivers/media/platform/vicodec/

[PATCH v4 0/6] media: vicodec: resolution change suport

2019-01-19 Thread Dafna Hirschfeld
Changes from v3: 1. bugfix in stop_sreaming callback, ctx->max_comp_size should initialize when the ref_fram is freed. 2. added patch - use 3 bits for the number of components in the fwht header. 3. remove the first patch: "bugfix - replace '=' with '|='" since it was already merged Dafna Hirschfe

[PATCH v4 1/6] media: vicodec: Add num_planes field to v4l2_fwht_pixfmt_info

2019-01-19 Thread Dafna Hirschfeld
Add the field 'num_planes' to 'v4l2_fwht_pixfmt_info' struct. Signed-off-by: Dafna Hirschfeld --- .../media/platform/vicodec/codec-v4l2-fwht.c | 48 +-- .../media/platform/vicodec/codec-v4l2-fwht.h | 1 + drivers/media/platform/vicodec/vicodec-core.c | 2 +- 3 files changed,

Re: [PATCH v9 4/4] sound/usb: Use Media Controller API to share media resources

2019-01-19 Thread Hans Verkuil
On 01/19/2019 02:03 AM, shuah wrote: > On 1/18/19 2:54 PM, shuah wrote: >> On 1/18/19 1:36 AM, Hans Verkuil wrote: >>> On 12/18/18 6:59 PM, sh...@kernel.org wrote: From: Shuah Khan Media Device Allocator API to allows multiple drivers share a media device. This API solves

Re: Charity Support

2019-01-19 Thread M.M. Fridman
I, Mikhail Fridman have selected you specifically as one of my beneficiaries for my Charitable Donation of $5 Million Dollars, Check the link below for confirmation: https://www.rt.com/business/343781-mikhail-fridman-will-charity/ I await your earliest response for further directives. Best

Re: [PATCH v7] media: imx: add mem2mem device

2019-01-19 Thread Hans Verkuil
On 01/18/2019 05:51 PM, Philipp Zabel wrote: > On Fri, 2019-01-18 at 12:18 +0100, Philipp Zabel wrote: >> Hi Hans, >> >> On Fri, 2019-01-18 at 10:30 +0100, Hans Verkuil wrote: >>> On 1/17/19 4:50 PM, Philipp Zabel wrote: >> >> [...] + +static const struct video_device ipu_csc_scaler_video

Re: [PATCH v2] Input: Add missing event codes for common IR remote buttons

2019-01-19 Thread Dmitry Torokhov
Hi Derek, On Tue, Nov 13, 2018 at 08:20:22AM -0800, VDR User wrote: > > On Sat, 2018-11-03 at 07:55 -0700, Derek Kelly wrote: > > > The following patch adds event codes for common buttons found on > > > various > > > provider and universal remote controls. They represent functions not > > > covere