Re: v4l2-fwnode: status, plans for merge, any branch to merge against?

2017-07-05 Thread Sakari Ailus
On Tue, Jul 04, 2017 at 05:08:19PM +0200, Pavel Machek wrote: > Hi! > > > > > > Are there any news about the fwnode branch? > > > > > > > > > > I have quite usable camera, but it is still based on > > > > > 982e8e40390d26430ef106fede41594139a4111c (that's v4.10). It would be > > > > > good to

[PATCH] staging: media: atomisp: i2c: ov5693: Fix style a coding style issue

2017-07-05 Thread Ivan Menshykov
Fix checkpath errors Signed-off-by: Ivan Menshykov --- drivers/staging/media/atomisp/i2c/ov5693/ov5693.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/atomisp/i2c/ov5693/ov5693.c

[PATCH 0/2] add support for Spreadtrum's FM driver

2017-07-05 Thread Chunyan Zhang
[add linux-media list and Mauro Carvalho Chehab] According to GregKH's suggestion [1], we tried to simply sort out the FM driver source code which has been using in the internal projects. Hopes it can help for fixing the problem raised in [1]. [1] https://lkml.org/lkml/2017/6/28/222 Chunyan

Re: [PATCH 2/2] misc: added Spreadtrum's radio driver

2017-07-05 Thread Chunyan Zhang
On 4 July 2017 at 18:51, Arnd Bergmann wrote: > On Tue, Jul 4, 2017 at 12:15 PM, Chunyan Zhang > wrote: >> This patch added FM radio driver for Spreadtrum's SC2342, which's >> a WCN SoC, also added a new directory for Spreadtrum's WCN SoCs. >> >>

Re: [PATCH 2/2] misc: added Spreadtrum's radio driver

2017-07-05 Thread Arnd Bergmann
On Wed, Jul 5, 2017 at 12:18 PM, Chunyan Zhang wrote: > On 4 July 2017 at 18:51, Arnd Bergmann wrote: >> On Tue, Jul 4, 2017 at 12:15 PM, Chunyan Zhang > Like I mentioned, SC2342 includes many functions, this patch is only > adding FM radio function included

[PATCH 1/3] [media] ov5645: Set media entity function

2017-07-05 Thread Todor Tomov
Set media entity function to MEDIA_ENT_F_CAM_SENSOR. Signed-off-by: Todor Tomov --- drivers/media/i2c/ov5645.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/ov5645.c b/drivers/media/i2c/ov5645.c index d1e844f..bb3dd0d 100644 ---

[PATCH 2/3] [media] ov5645: Add control to export pixel clock frequency

2017-07-05 Thread Todor Tomov
Add suport for standard V4L2_CID_PIXEL_RATE control. The pixel clock frequency value is specific for each sensor mode so the sensor mode structure is extended to add this. The control is read-only and its value is updated when the sensor mode is changed - on set_format. Signed-off-by: Todor Tomov

[PATCH 3/3] [media] ov5645: Add control to export CSI2 link frequency

2017-07-05 Thread Todor Tomov
Add suport for standard integer menu V4L2_CID_LINK_FREQ control. The CSI2 link frequency value is specific for each sensor mode so the sensor mode structure is extended to add this. The control is made read-only and its value is updated when the sensor mode is changed - on set_format.

Re: [PATCH v2 1/7] DT bindings: add bindings for ov965x camera module

2017-07-05 Thread Hugues FRUCHET
On 07/05/2017 04:03 PM, Rob Herring wrote: > On Mon, Jul 03, 2017 at 11:16:02AM +0200, Hugues Fruchet wrote: >> From: "H. Nikolaus Schaller" >> >> This adds documentation of device tree bindings >> for the OV965X family camera sensor module. >> >> Signed-off-by: H. Nikolaus

Re: [PATCH v2 1/7] DT bindings: add bindings for ov965x camera module

2017-07-05 Thread Rob Herring
On Mon, Jul 03, 2017 at 11:16:02AM +0200, Hugues Fruchet wrote: > From: "H. Nikolaus Schaller" > > This adds documentation of device tree bindings > for the OV965X family camera sensor module. > > Signed-off-by: H. Nikolaus Schaller > Signed-off-by:

[GIT PULL for v4.13-rc1] media updates

2017-07-05 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.13-1 For: - Addition of fwnode support at V4L2 core; - Addition of a few more SDR formats; - New imx driver to support i.MX6 cameras; - New driver for Qualcon venus codecs; - New I2C

Re: Trying to use IR driver for my SoC

2017-07-05 Thread Mason
On 29/06/2017 19:50, Sean Young wrote: > The only thing that stands out is RC5_TIME_BASE. If that is the bit > length or shortest pulse/space? In the latter case it should be 888 usec. IR_RC5_DECODER_CLK_DIV Length of 1 bit of the RC5 code in units of 27 MHz clks Default value = 0xbb86 =>

[PATCH] s5k5baf: remove unnecessary static in s5k5baf_get_selection()

2017-07-05 Thread Gustavo A. R. Silva
Remove unnecessary static on local variable rtype. Such variable is initialized before being used, on every execution path throughout the function. The static has no benefit and, removing it reduces the code size. This issue was detected using Coccinelle and the following semantic patch: @bad

Re: [PATCH v3 0/2] [media] videobuf2-dc: Add support for cacheable MMAP

2017-07-05 Thread Christoph Hellwig
On Mon, Jul 03, 2017 at 11:27:32AM +0200, Marek Szyprowski wrote: > The main question here if we want to merge incomplete solution or not. As > for now, there is no support in ARM/ARM64 for NON_CONSISTENT attribute. > Also none of the v4l2 drivers use it. Sadly support for NON_CONSISTENT >

Re: [PATCH v2] media: platform: rcar_imr: add IMR-LX3 support

2017-07-05 Thread Rob Herring
On Wed, Jun 28, 2017 at 10:58:44PM +0300, Sergei Shtylyov wrote: > Add support for the image renderer light extended 3 (IMR-LX3) found only in > the R-Car V2H (R8A7792) SoC. It's mostly the same as IMR-LSX3 but doesn't > support video capture data as a source of 2D textures. > > Signed-off-by:

Re: [PATCH 3/3] [media] ov5645: Add control to export CSI2 link frequency

2017-07-05 Thread Sakari Ailus
On Wed, Jul 05, 2017 at 11:44:49AM +0300, Todor Tomov wrote: > @@ -1231,6 +1246,13 @@ static int ov5645_probe(struct i2c_client *client, > _ctrl_ops, > V4L2_CID_PIXEL_RATE, >

[PATCH] sir_ir: remove unnecessary static in sir_interrupt()

2017-07-05 Thread Gustavo A. R. Silva
Remove unnecessary static on local variable delt. Such variable is initialized before being used, on every execution path throughout the function. The static has no benefit and, removing it reduces the code size. This issue was detected using Coccinelle and the following semantic patch: @bad

Re: [PATCH v6 4/4] dt-bindings: media: Document Synopsys Designware HDMI RX

2017-07-05 Thread Sylwester Nawrocki
On 07/04/2017 04:11 PM, Jose Abreu wrote: > Document the bindings for the Synopsys Designware HDMI RX. > > Signed-off-by: Jose Abreu > --- > .../devicetree/bindings/media/snps,dw-hdmi-rx.txt | 70 > ++ > 1 file changed, 70 insertions(+) > create

Re: [PATCH v6] media: platform: Renesas IMR driver

2017-07-05 Thread Sergei Shtylyov
Hello! On 07/03/2017 03:25 PM, Hans Verkuil wrote: From: Konstantin Kozhevnikov The image renderer, or the distortion correction engine, is a drawing processor with a simple instruction system capable of referencing video capture data or data in an

[PATCH] tuners: remove unnecessary static in simple_dvb_configure()

2017-07-05 Thread Gustavo A. R. Silva
Remove unnecessary static on local variable t_params. Such variable is initialized before being used, on every execution path throughout the function. The static has no benefit and, removing it reduces the code size. This issue was detected using Coccinelle and the following semantic patch: @bad

[PATCH 7/8] omap3isp: Check for valid port in endpoints

2017-07-05 Thread Sakari Ailus
Check that we do have a valid port in an endpoint, return an error if not. Signed-off-by: Sakari Ailus --- drivers/media/platform/omap3isp/isp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/omap3isp/isp.c

[PATCH 0/8] Prepare for CCP2 / CSI-1 support, omap3isp fixes

2017-07-05 Thread Sakari Ailus
Hi Pavel and others, Most of these patches have been posted to the list in some form or other already but a lot has happened since. Thus reposting. There are more patches in my ccp2 branch but they're not quite ready as such, for the reasons discussed previously. Pavel Machek (1): smiapp: add

[PATCH 1/8] dt: bindings: Explicitly specify bus type

2017-07-05 Thread Sakari Ailus
From: Sakari Ailus In the vast majority of cases the bus type is known to the driver(s) since a receiver or transmitter can only support a single one. There are cases however where different options are possible, or the bus type cannot be automatically detected. The

[PATCH 8/8] omap3isp: Destroy CSI-2 phy mutexes in error and module removal

2017-07-05 Thread Sakari Ailus
The CSI-2 phy driver did initialise mutexes in its init function but there was no corresponding cleanup function destroying them. Fix that. Also clean up ISP module initialisation a little. Signed-off-by: Sakari Ailus --- drivers/media/platform/omap3isp/isp.c

[PATCH 2/8] dt: bindings: Add strobe property for CCP2

2017-07-05 Thread Sakari Ailus
Document the CSI1/CCP2 property strobe. It signifies the clock or strobe mode. Signed-off-by: Sakari Ailus Signed-off-by: Ivaylo Dimitrov Signed-off-by: Pavel Machek Reviewed-By: Sebastian Reichel

[PATCH 5/8] v4l: Add support for CSI-1 and CCP2 busses

2017-07-05 Thread Sakari Ailus
From: Sakari Ailus CCP2 and CSI-1, are older single data lane serial busses. Signed-off-by: Sakari Ailus Signed-off-by: Pavel Machek --- drivers/media/platform/pxa_camera.c | 3 ++

[PATCH 4/8] v4l: fwnode: Obtain data bus type from FW

2017-07-05 Thread Sakari Ailus
From: Sakari Ailus Just obtain it. It'll actually get used soon with CSI-1/CCP2. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH 3/8] v4l: fwnode: Call CSI2 bus csi2, not csi

2017-07-05 Thread Sakari Ailus
The function to parse CSI2 bus parameters was called v4l2_fwnode_endpoint_parse_csi_bus(), rename it as v4l2_fwnode_endpoint_parse_csi2_bus() in anticipation of CSI1/CCP2 support. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-fwnode.c | 6 +++--- 1

[PATCH 6/8] smiapp: add CCP2 support

2017-07-05 Thread Sakari Ailus
From: Pavel Machek Add support for CCP2 connected SMIA sensors as found on the Nokia N900. Signed-off-by: Sebastian Reichel Signed-off-by: Ivaylo Dimitrov Signed-off-by: Pavel Machek Signed-off-by: Sakari Ailus