cron job: media_tree daily build: OK

2018-12-29 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 Dec 30 05:00:13 CET 2018 media-tree git hash:4bd46aa0353e022c2401a258e93b107880a66533 media_build git

Re: [RFC PATCH] media: rcar-vin: Allow independent VIN link enablement

2018-12-29 Thread Steve Longerbeam
Hi Niklas, On 12/26/18 4:51 PM, Niklas Söderlund wrote: Hi Steve, Thanks for your patch. On 2018-12-25 15:27:25 -0800, Steve Longerbeam wrote: There is a block of code in rvin_group_link_notify() that prevents enabling a link to a VIN node if any entity in the media graph is in use. This prev

[PATCH] media: tw9910: add missed clk_disable_unprepare() on failure path

2018-12-29 Thread Alexey Khoroshilov
If gpiod_get_optional() fails in tw9910_power_on(), clk is left undisabled. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/media/i2c/tw9910.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/tw9910.c b/drivers/me

Re: [PATCH v2] media: venus: add debugfs support

2018-12-29 Thread kbuild test robot
Hi Malathi, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20181224] [cannot apply to v4.20] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://git

[PATCH 10/13] cx231xx: Add i2c device analog tuner support

2018-12-29 Thread Brad Love
The boards listed below use i2c device drivers and have tuner_type equal TUNER_ABSENT. This means additional support is required to enable the analog tuning capability, a case statement is used to identify these models. Models with analog tuning enabled: - CX231XX_BOARD_HAUPPAUGE_930C_HD_1114xx (t

[PATCH] si2168: Change from DVB-T to DVB-T/T2 autodetect

2018-12-29 Thread Brad Love
DVB-T2 support can be a bit lacking in user land, this provides a module parameter to allow setting the PLP to auto detect DVB-T and DVB-T2 signals after tuning. If a DVB-T2 signal is found the signal is processed as DVB-T2, otherwise it is left as DVB-T. The detected signal type is taken into acco

[PATCH 08/13] cx23885: Add analog tuner support to Hauppauge QuadHD

2018-12-29 Thread Brad Love
Add analog tuner frontend to 888 Hauppauge QuadHD boards Signed-off-by: Brad Love --- drivers/media/pci/cx23885/cx23885-cards.c | 32 +++ drivers/media/pci/cx23885/cx23885-dvb.c | 20 +++ drivers/media/pci/cx23885/cx23885-video.c | 8 +++- 3 fil

[PATCH 13/13] lgdt3306a: Add CNR v5 stat

2018-12-29 Thread Brad Love
The CNR is already calculated, so populate DVBv5 CNR stat during read_status. Signed-off-by: Brad Love --- drivers/media/dvb-frontends/lgdt3306a.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/media/dvb-frontends/lgdt3306a.c b/drivers/media/dvb-frontends/lgdt3306a.

[PATCH 11/13] cx23885: Add i2c device analog tuner support

2018-12-29 Thread Brad Love
Hauppauge QuadHD boards all use i2c device drivers and have tuner_type equal TUNER_ABSENT. This means additional support is required to enable the analog tuning capability, a case statement is used to identify these models. Models with analog tuner inputs enabled: - CX23885_BOARD_HAUPPAUGE_HVR1265

[PATCH 12/13] si2157: add on-demand rf strength func

2018-12-29 Thread Brad Love
Add get_rf_strength callback to get RSSI from the tuner. DVBv5 stat cache is updated. Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 38 +- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/drivers/media/tuners/si2157.c b/drivers/medi

[PATCH 02/13] si2157: Check error status bit on cmd execute

2018-12-29 Thread Brad Love
Check error status bit on command execute, if error bit is set return -EAGAIN. Ignore -EAGAIN in probe during device check. Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/media/tuners/si2157.c b/

[PATCH 04/13] si2157: Add clock and pin setup for si2141

2018-12-29 Thread Brad Love
Include some missing setup for si2141 Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index f3a60a1..1ad2d42 100644 --- a/drivers/media/tuners/si2157.c

[PATCH 00/13] si2157: Analog tuning and optimizations

2018-12-29 Thread Brad Love
This series mainly enables analog tuning in the si2157 driver. Some various optimizations are included as well, along with the dots connected to allow devices with TUNER_ABSENT to utilize an analog frontend on two different bridges. Finally two missing statistics are added to get signal strength an

[PATCH 07/13] si2157: Briefly wait for tuning operation to complete

2018-12-29 Thread Brad Love
Some software reports no signal found on a frequency due to immediately checking for lock as soon as set_params returns. This waits up 40ms for tuning operation, then from 30-150ms (dig/analog) for signal lock before returning from set_params and set_analog_params. Tuning typically completes in 20

[PATCH 06/13] si2157: Add analog tuning related functions

2018-12-29 Thread Brad Love
Include set_analog_params, get_frequency, and get_bandwidth. Tested with NTSC and PAL standards via ch3/4 generator. Other standards are included, but are untested due to lack of generator. Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 245 +++

[PATCH 09/13] cx23885: Add analog tuner to 1265_K4

2018-12-29 Thread Brad Love
Enables the analog tuning frontend for Hauppauge HVR-1265_K4. Signed-off-by: Brad Love --- drivers/media/pci/cx23885/cx23885-cards.c | 7 +++ drivers/media/pci/cx23885/cx23885-dvb.c | 5 + 2 files changed, 12 insertions(+) diff --git a/drivers/media/pci/cx23885/cx23885-cards.c b/driv

[PATCH 03/13] si2157: Better check for running tuner in init

2018-12-29 Thread Brad Love
Getting the Xtal trim property to check if running is less error prone. Reset if_frequency if state is unknown. Replaces the previous "garbage check". Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/d

[PATCH 05/13] cx25840: Register labeling, chip specific correction

2018-12-29 Thread Brad Love
Remove vbi_regs_offset from a group of registers that are 888 specific, include those registers names. Add labels to some undocumented registers. Signed-off-by: Brad Love --- drivers/media/i2c/cx25840/cx25840-core.c | 33 1 file changed, 21 insertions(+), 12 del

[PATCH 01/13] si2157: Enable tuner status flags

2018-12-29 Thread Brad Love
Enable flags to get status of commands sent to the tuner. Signed-off-by: Brad Love --- drivers/media/tuners/si2157.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/tuners/si2157.c b/drivers/media/tuners/si2157.c index d389f1f..4855448 100644 --- a/drive

[PATCH 4/4] media: mt9m111: set initial frame size other than 0x0

2018-12-29 Thread Akinobu Mita
This driver sets initial frame width and height to 0x0, which is invalid. So set it to selection rectangle bounds instead. This is detected by v4l2-compliance detected. Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/mt9m111.c | 2 ++ 1 file change

[PATCH 1/4] media: mt9m111: fix setting pixclk polarity

2018-12-29 Thread Akinobu Mita
Since commit 98480d65c48c ("media: mt9m111: allow to setup pixclk polarity"), the MT9M111_OUTFMT_INV_PIX_CLOCK bit in the output format control 2 register has to be changed depending on the pclk-sample property setting. Without this change, the MT9M111_OUTFMT_INV_PIX_CLOCK bit is unchanged. Fixes

[PATCH 3/4] media: mt9m111: set all mbus format field when G_FMT and S_FMT ioctls

2018-12-29 Thread Akinobu Mita
This driver doesn't set all members of mbus format field when the VIDIOC_SUBDEV_{S,G}_FMT ioctls are called. This is detected by v4l2-compliance. Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/mt9m111.c | 7 +++ 1 file changed, 7 insertions(+)

[PATCH 0/4] media: bugfixes for mt9m111 driver

2018-12-29 Thread Akinobu Mita
This patch series contains four bugfixes for mt9m111 driver. The first patch fixes the recent change for v4.21. Akinobu Mita (4): media: mt9m111: fix setting pixclk polarity media: mt9m111: make VIDIOC_SUBDEV_G_FMT ioctl work with V4L2_SUBDEV_FORMAT_TRY media: mt9m111: set all mbus form

[PATCH 2/4] media: mt9m111: make VIDIOC_SUBDEV_G_FMT ioctl work with V4L2_SUBDEV_FORMAT_TRY

2018-12-29 Thread Akinobu Mita
The VIDIOC_SUBDEV_G_FMT ioctl for this driver doesn't recognize V4L2_SUBDEV_FORMAT_TRY and always works as if V4L2_SUBDEV_FORMAT_ACTIVE is specified. Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/mt9m111.c | 31 +++ 1 f

Re: [PATCH] media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration

2018-12-29 Thread Jacek Anaszewski
Hi Paweł, Thank you for the patch. On 12/29/18 4:46 PM, Paweł Chmiel wrote: Previously when doing format enumeration, it was returning all formats supported by driver, even if they're not supported by hw. Add missing check for fmt_ver_flag, so it'll be fixed and only those supported by hw w

[PATCH] media: vicodec: Add num_planes field to v4l2_fwht_pixfmt_info

2018-12-29 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,

[PATCH] media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration

2018-12-29 Thread Paweł Chmiel
Previously when doing format enumeration, it was returning all formats supported by driver, even if they're not supported by hw. Add missing check for fmt_ver_flag, so it'll be fixed and only those supported by hw will be returned. Similar thing is already done in s5p_jpeg_find_format. It was f

[PATCH v4l-utils] v4l2-ctl: Move some code from do_handle_cap to a new function

2018-12-29 Thread Dafna Hirschfeld
Move the code that deals with reading from file in 'do_handle_cap' to a new function 'write_buffer_to_file' Signed-off-by: Dafna Hirschfeld --- utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 139 +- 1 file changed, 72 insertions(+), 67 deletions(-) diff --git a/utils/v4l2-ctl/v

[PATCH v5] media: vicodec: add support for CROP and COMPOSE selection

2018-12-29 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 --- Main changes from v4: In s/g_selection, check buffer type according to 'multiplanar' variable.