[PATCH v5 10/14] media: ov772x: reconstruct s_frame_interval()

2018-05-06 Thread Akinobu Mita
This splits the s_frame_interval() in subdev video ops into selecting the frame interval and setting up the registers. This is a preparatory change to avoid accessing registers under power saving mode. Cc: Jacopo Mondi Cc: Laurent Pinchart

[PATCH v5 08/14] media: ov772x: support device tree probing

2018-05-06 Thread Akinobu Mita
The ov772x driver currently only supports legacy platform data probe. This change enables device tree probing. Note that the platform data probe can select auto or manual edge control mode, but the device tree probling can only select auto edge control mode for now. Cc: Jacopo Mondi

[PATCH v5 11/14] media: ov772x: use v4l2_ctrl to get current control value

2018-05-06 Thread Akinobu Mita
The ov772x driver provides three V4L2 controls and the current value of each control is saved as a variable in the private data structure. We don't need to keep track of the current value by ourself, if we use v4l2_ctrl returned from v4l2_ctrl_new_std() instead. This is a preparatory change to

[PATCH v5 09/14] media: ov772x: handle nested s_power() calls

2018-05-06 Thread Akinobu Mita
Depending on the v4l2 driver, calling s_power() could be nested. So the actual transitions between power saving mode and normal operation mode should only happen at the first power on and the last power off. This adds an s_power() nesting counter and updates the power state if the counter is

[PATCH v2 2/2] dvbsky: Add support for MyGica T230C v2

2018-05-06 Thread Thomas Hollstegge
Support for newer revisions of the MyGica T230C, shipping with a different USB pid. Although sometimes referred to as T230C2, the device is sold under its original name T230C. Besides a slightly different PCB layout and some different minor components, it utilizes the same bridge, demodulator and

[PATCH v2 0/2] media: dvbsky: Add support for MyGica T230C v2

2018-05-06 Thread Thomas Hollstegge
Add support for newer revisions of the USB DVB-C/DVB-T/DVB-T2 stick MyGica T230C, sometimes referred to as MyGica T230C2. The device needs a fixed TS clock frequency of 10MHz to be able to demod some channels. This is done by adding two new optional configuration options for the Si2168 demod

[PATCH v2 1/2] si2168: Set TS clock mode and frequency

2018-05-06 Thread Thomas Hollstegge
Some devices require a higher TS clock frequency to demodulate some muxes. This adds two optional parameters to control the TS clock frequency mode as well as the frequency. Signed-off-by: Thomas Hollstegge --- drivers/media/dvb-frontends/si2168.c | 20

[PATCH v5 13/14] media: ov772x: make set_fmt() and s_frame_interval() return -EBUSY while streaming

2018-05-06 Thread Akinobu Mita
The ov772x driver is going to offer a V4L2 sub-device interface, so changing the output data format and the frame interval on this sub-device can be made anytime. However, these requests are preferred to fail while the video stream on the device is active. Cc: Jacopo Mondi

[PATCH v5 12/14] media: ov772x: avoid accessing registers under power saving mode

2018-05-06 Thread Akinobu Mita
The set_fmt() in subdev pad ops, the s_ctrl() for subdev control handler, and the s_frame_interval() in subdev video ops could be called when the device is under power saving mode. These callbacks for ov772x driver cause updating H/W registers that will fail under power saving mode. This avoids

[PATCH v5 14/14] media: ov772x: create subdevice device node

2018-05-06 Thread Akinobu Mita
Set the V4L2_SUBDEV_FL_HAS_DEVNODE flag for the subdevice so that the subdevice device node is created. Cc: Jacopo Mondi Cc: Laurent Pinchart Cc: Hans Verkuil Cc: Sakari Ailus

[PATCH v5 03/14] media: ov772x: allow i2c controllers without I2C_FUNC_PROTOCOL_MANGLING

2018-05-06 Thread Akinobu Mita
The ov772x driver only works when the i2c controller have I2C_FUNC_PROTOCOL_MANGLING. However, many i2c controller drivers don't support it. The reason that the ov772x requires I2C_FUNC_PROTOCOL_MANGLING is that it doesn't support repeated starts. This changes the reading ov772x register method

[PATCH v5 01/14] media: dt-bindings: ov772x: add device tree binding

2018-05-06 Thread Akinobu Mita
This adds a device tree binding documentation for OV7720/OV7725 sensor. Cc: Jacopo Mondi Cc: Laurent Pinchart Cc: Hans Verkuil Cc: Sakari Ailus Cc: Mauro Carvalho Chehab

[PATCH v5 04/14] media: ov772x: add checks for register read errors

2018-05-06 Thread Akinobu Mita
This change adds checks for register read errors and returns correct error code. Cc: Jacopo Mondi Cc: Laurent Pinchart Cc: Hans Verkuil Cc: Sakari Ailus Cc: Mauro Carvalho

[PATCH v5 00/14] media: ov772x: support media controller, device tree probing, etc.

2018-05-06 Thread Akinobu Mita
This patchset includes support media controller, sub-device interface, device tree probing and other miscellanuous changes for ov772x driver. * v5 (thanks to Jacopo Mondi) - Add Acked-by: line - Add Reviewed-by: line - Remove unnecessary space - Align arguments to open parenthesis - Sort variable

[PATCH v5 02/14] media: ov772x: correct setting of banding filter

2018-05-06 Thread Akinobu Mita
The banding filter ON/OFF is controlled via bit 5 of COM8 register. It is attempted to be enabled in ov772x_set_params() by the following line. ret = ov772x_mask_set(client, COM8, BNDF_ON_OFF, 1); But this unexpectedly results disabling the banding filter, because the mask and set bits

[PATCH v5 06/14] media: ov772x: use generic names for reset and powerdown gpios

2018-05-06 Thread Akinobu Mita
The ov772x driver uses "rstb-gpios" and "pwdn-gpios" for reset and powerdown pins. However, using generic names for these gpios is preferred. ("reset-gpios" and "powerdown-gpios" respectively) There is only one mainline user for these gpios, so rename to generic names. Cc: Jacopo Mondi

[PATCH v5 07/14] media: ov772x: omit consumer ID when getting clock reference

2018-05-06 Thread Akinobu Mita
Currently the ov772x driver obtains a clock with a specific consumer ID. As there's a single clock for this driver, we could omit clock-names property in device tree by passing NULL as a consumer ID to clk_get(). Cc: Jacopo Mondi Cc: Laurent Pinchart

[PATCH v5 05/14] media: ov772x: add media controller support

2018-05-06 Thread Akinobu Mita
Create a source pad and set the media controller type to the sensor. Cc: Jacopo Mondi Cc: Laurent Pinchart Cc: Hans Verkuil Cc: Sakari Ailus Cc: Mauro Carvalho Chehab

help

2018-05-06 Thread Richard Lee

cron job: media_tree daily build: ERRORS

2018-05-06 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 May 7 05:00:14 CEST 2018 media-tree git hash:f10379aad39e9da8bc7d1822e251b5f0673067ef media_build

[PATCH] [media] media: delete unneeded include

2018-05-06 Thread Julia Lawall
pvrusb2-video-v4l.h only declares pvr2_saa7115_subdev_update and includes pvrusb2-hdw-internal.h. pvrusb2-cx2584x-v4l.c does not use pvr2_saa7115_subdev_update and it explicitly includes pvrusb2-hdw-internal.h. Signed-off-by: Julia Lawall ---

Re: [PATCH 1/2] media: siano: don't use GFP_DMA

2018-05-06 Thread Mauro Carvalho Chehab
Em Sun, 6 May 2018 08:05:05 +0900 Tomoki Sekiyama escreveu: > 2018/5/6 1:09 Mauro Carvalho Chehab : > > > I can't think on a single reason why this driver would be using > > GFP_DMA. The typical usage is as an USB driver. Any DMA

[PATCH] media: i2c: lm3560: add support for lm3559 chip

2018-05-06 Thread Pavel Machek
Add support for LM3559, as found in Motorola Droid 4 phone, for example. SW interface seems to be identical. Signed-off-by: Pavel Machek diff --git a/drivers/media/i2c/lm3560.c b/drivers/media/i2c/lm3560.c index b600e03a..c4e5ed5 100644 --- a/drivers/media/i2c/lm3560.c +++

[PATCH] media: i2c: lm3560: use conservative defaults

2018-05-06 Thread Pavel Machek
If no pdata is found, we should use lowest current settings, not highest. Signed-off-by: Pavel Machek diff --git a/drivers/media/i2c/lm3560.c b/drivers/media/i2c/lm3560.c index b600e03a..c4e5ed5 100644 --- a/drivers/media/i2c/lm3560.c +++ b/drivers/media/i2c/lm3560.c @@ -420,14

[PATCH v2] [media] pvrusb2: delete unneeded include

2018-05-06 Thread Julia Lawall
pvrusb2-video-v4l.h only declares pvr2_saa7115_subdev_update and includes pvrusb2-hdw-internal.h. pvrusb2-cx2584x-v4l.c does not use pvr2_saa7115_subdev_update and it explicitly includes pvrusb2-hdw-internal.h. Signed-off-by: Julia Lawall --- v2: Make the subject line a

[PATCH] media: Use ktime_set() in pt1.c

2018-05-06 Thread Jasmin J.
From: Jasmin Jessich In commit 20a63349b142 a new variable ktime_t delay has been added. We decided to use the API functions to initialize ktime_t variables within media-tree. Thus variable delay needs to be initialized with ktime_set() instead of setting it directly.

Re: [PATCH v3 0/8] R-Car DU: Support CRC calculation

2018-05-06 Thread Laurent Pinchart
Hi Mauro, On Saturday, 5 May 2018 18:05:13 EEST Mauro Carvalho Chehab wrote: > Em Sat, 05 May 2018 17:06:50 +0300 Laurent Pinchart escreveu: > > On Thursday, 3 May 2018 16:45:36 EEST Daniel Vetter wrote: > >> On Thu, May 3, 2018 at 2:06 PM, Laurent Pinchart wrote: > >>> Hi Dave, > >>> > >>> Ping

Re: [PATCH 1/2] media: siano: don't use GFP_DMA

2018-05-06 Thread Tomoki Sekiyama
2018-05-06 18:21 GMT+09:00 Mauro Carvalho Chehab : > Em Sun, 6 May 2018 08:05:05 +0900 > Tomoki Sekiyama escreveu: > >> 2018/5/6 1:09 Mauro Carvalho Chehab : >> >> > I can't think on a single reason why this driver

Re: [PATCH] lirc.4: remove ioctls and feature bits which were never implemented

2018-05-06 Thread Michael Kerrisk (man-opages)
[CCing original author of this page] On 04/23/2018 12:26 PM, Sean Young wrote: The lirc header file included ioctls and feature bits which were never implemented by any driver. They were removed in commit: