[PATCH 37/41] Documentation: video4linux: fix spelling mistakes

2016-04-24 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- Documentation/video4linux/vivid.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/video4linux/vivid.txt b/Documentation/video4linux/vivid.txt index e35d376..8da5d2a 100644 --- a/Documentation/video4linux/vivid.txt +++ b/

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-24 Thread Ivaylo Dimitrov
On 25.04.2016 00:55, Pavel Machek wrote: Hi! Those patch series make cameras on Nokia N900 partially working. Some more patches are needed, but I've already sent them for upstreaming so they are not part of the series: https://lkml.org/lkml/2016/4/16/14 https://lkml.org/lkml/2016/4/16/33 As

Re: [PATCH v7 5/8] [media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver

2016-04-24 Thread 李務誠
> > > > ... > > > > > +static int fops_vcodec_open(struct file *file) > > > +{ > > > + struct video_device *vfd = video_devdata(file); > > > + struct mtk_vcodec_dev *dev = video_drvdata(file); > > > + struct mtk_vcodec_ctx *ctx = NULL; > > > + int ret = 0; > > > + > > > + if (dev->instanc

Re: [PATCH v7 5/8] [media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver

2016-04-24 Thread tiffany lin
Hi Hans, On Fri, 2016-04-22 at 15:47 +0200, Hans Verkuil wrote: > On 04/22/2016 06:25 AM, Tiffany Lin wrote: > > Add v4l2 layer encoder driver for MT8173 > > > > Signed-off-by: Tiffany Lin > > > > --- > > drivers/media/platform/Kconfig | 16 + > > drivers/media/platform/

mceusb xhci issue?

2016-04-24 Thread Wade Berrier
Hello, I have a mceusb compatible transceiver that only seems to work with certain computers. I'm testing this on centos7 (3.10.0) and fedora23 (4.4.7). The only difference I can see is that the working computer shows "using uhci_hcd" and the non working shows "using xhci_hcd". Here's the dmesg

cron job: media_tree daily build: WARNINGS

2016-04-24 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 Apr 25 04:00:15 CEST 2016 git branch: test git hash: e07d46e7e0da86c146f199dae76f879096bc436a gcc versi

[PATCH 23/41] Documentation: DocBook: fix spelling mistake

2016-04-24 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- Documentation/DocBook/media/dvb/net.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/DocBook/media/dvb/net.xml b/Documentation/DocBook/media/dvb/net.xml index d2e44b7..da095ed 100644 --- a/Documentation/DocBook/media/dvb/net.

[PATCH 14/41] Documentation: dt: media: fix spelling mistake

2016-04-24 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- Documentation/devicetree/bindings/media/xilinx/video.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/xilinx/video.txt b/Documentation/devicetree/bindings/media/xilinx/video.txt index cbd46fa..68ac21

Re: [RFC PATCH 01/24] V4L fixes

2016-04-24 Thread Pavel Machek
On Mon 2016-04-25 00:08:01, Ivaylo Dimitrov wrote: > From: "Tuukka.O Toivonen" > > Squashed from the following upstream commits: > > V4L: Create control class for sensor mode > V4L: add ad5820 focus specific custom controls > V4L: add V4L2_CID_TEST_PATTERN > V4L: Add V4L2_CID_MODE_OPSYSCLOCK for

Re: [RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-24 Thread Pavel Machek
Hi! > Those patch series make cameras on Nokia N900 partially working. > Some more patches are needed, but I've already sent them for > upstreaming so they are not part of the series: > > https://lkml.org/lkml/2016/4/16/14 > https://lkml.org/lkml/2016/4/16/33 > > As omap3isp driver supports only

Re: [PATCHv3 01/12] vb2: add a dev field to use for the default allocation context

2016-04-24 Thread Laurent Pinchart
Hi Hans, On Saturday 23 Apr 2016 12:37:10 Hans Verkuil wrote: > On 04/23/2016 02:14 AM, Laurent Pinchart wrote: > > On Friday 22 Apr 2016 10:38:08 Hans Verkuil wrote: > >> From: Hans Verkuil > >> > >> The allocation context is nothing more than a per-plane device pointer > >> to use when allocat

[RFC PATCH 21/24] omap3isp: dt: Add support for CSI1/CCP2 busses

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus Obtain the CSI1/CCP2 bus parameters from the OF node. Signed-off-by: Sakari Ailus --- drivers/media/platform/omap3isp/isp.c | 110 -- 1 file changed, 77 insertions(+), 33 deletions(-) diff --git a/drivers/media/platform/omap3isp/isp.c b/driv

[RFC PATCH 04/24] smiapp-pll: Take existing divisor into account in minimum divisor check

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus Required added multiplier (and divisor) calculation did not take into account the existing divisor when checking the values against the minimum divisor. Do just that. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp-pll.c | 3 ++- 1 file changed, 2 insertions(+), 1 d

[RFC PATCH 09/24] v4l: Add CSI1 and CCP2 bus type to enum v4l2_mbus_type

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus CCP2, or CSI-1, is an older single data lane serial bus. Signed-off-by: Sakari Ailus --- include/media/v4l2-mediabus.h | 4 1 file changed, 4 insertions(+) diff --git a/include/media/v4l2-mediabus.h b/include/media/v4l2-mediabus.h index 34cc99e..315c167 100644 --- a/in

[RFC PATCH 06/24] smiapp: Add quirk control support

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus Quirk controls can be set up in the init quirk. Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-core.c | 6 ++ drivers/media/i2c/smiapp/smiapp-quirk.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drive

[RFC PATCH 11/24] dt: bindings: v4l: Add bus-type video interface property

2016-04-24 Thread Ivaylo Dimitrov
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. Signed-off-by: Sakari Ailus --- Documentation/devicetree/bindings/media/video-int

[RFC PATCH 05/24] smiapp: Add smiapp_has_quirk() to tell whether a quirk is implemented

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus Signed-off-by: Sakari Ailus --- drivers/media/i2c/smiapp/smiapp-quirk.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/smiapp/smiapp-quirk.h b/drivers/media/i2c/smiapp/smiapp-quirk.h index dac5566..209818f 100644 --- a/drivers/me

[RFC PATCH 12/24] dt: bindings: Add CSI1/CCP2 related properties to video-interfaces.txt

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus Document the CSI1/CCP2 properties strobe_clk_inv and strobe_clock properties. The former tells whether the strobe/clock signal is inverted, while the latter signifies the clock or strobe mode. Signed-off-by: Sakari Ailus --- Documentation/devicetree/bindings/media/video-inte

[RFC PATCH 10/24] v4l: of: Separate lane parsing from CSI-2 bus parameter parsing

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus The CSI-1 will need these as well, separate them into a different function. have_clk_lane and num_data_lanes arguments may be NULL; the CSI-1 bus will have no use for them. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-of.c | 60 +-

[RFC PATCH 16/24] media: video-bus-switch: new driver

2016-04-24 Thread Ivaylo Dimitrov
Signed-off-by: Ivaylo Dimitrov --- drivers/media/platform/Kconfig| 10 + drivers/media/platform/Makefile | 2 + drivers/media/platform/video-bus-switch.c | 366 ++ 3 files changed, 378 insertions(+) create mode 100644 drivers/media/platform/vi

[RFC PATCH 14/24] media: et8ek8: add device tree binding document

2016-04-24 Thread Ivaylo Dimitrov
From: Sebastian Reichel Add the document for et8ek8 dt. --- .../bindings/media/i2c/toshiba,et8ek8.txt | 56 ++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/toshiba,et8ek8.txt diff --git a/Documentation/devicetree/

[RFC PATCH 18/24] v4l2-async: per notifier locking

2016-04-24 Thread Ivaylo Dimitrov
From: Sebastian Reichel --- drivers/media/v4l2-core/v4l2-async.c | 50 ++-- include/media/v4l2-async.h | 2 ++ 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c

[RFC PATCH 24/24] ARM: dts: omap3-n900: enable cameras - remove invalid entry

2016-04-24 Thread Ivaylo Dimitrov
Signed-off-by: Ivaylo Dimitrov --- arch/arm/boot/dts/omap3-n900.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 03e1613..bf74f85 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@

[RFC PATCH 17/24] smiapp: add CCP2 support

2016-04-24 Thread Ivaylo Dimitrov
From: Sebastian Reichel Add support for CCP2 connected SMIA sensors as found on the Nokia N900. Signed-off-by: Sebastian Reichel --- drivers/media/i2c/smiapp/smiapp-core.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b

[RFC PATCH 23/24] [media] omap3isp: Make sure CSI1 interface is enabled in CPP2 mode

2016-04-24 Thread Ivaylo Dimitrov
OMAP3430 needs various syscon CONTROL_CSIRXFE bits set in order to operate. Implement the missing functionality. Signed-off-by: Ivaylo Dimitrov --- drivers/media/platform/omap3isp/ispccp2.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/media/platform/om

[RFC PATCH 15/24] media: add subdev type for bus switch

2016-04-24 Thread Ivaylo Dimitrov
From: Sebastian Reichel --- include/uapi/linux/media.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index df59ede..244bea1 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -137,6 +137,7 @@ struct media_devi

[RFC PATCH 13/24] v4l: of: Support CSI-1 and CCP2 busses

2016-04-24 Thread Ivaylo Dimitrov
Add support for parsing of CSI-1 and CCP2 bus related properties documented in video-interfaces.txt. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-of.c | 35 +++ include/media/v4l2-of.h | 17 + 2 files changed, 52 insertion

[RFC PATCH 03/24] et8ek8: Toshiba 5MP sensor driver

2016-04-24 Thread Ivaylo Dimitrov
add driver Signed-off-by: Ivaylo Dimitrov --- drivers/media/i2c/smia/Kconfig |8 + drivers/media/i2c/smia/Makefile |1 + drivers/media/i2c/smia/et8ek8.c | 1788 +++ 3 files changed, 1797 insertions(+) create mode 100644 drivers/media/i2c/smia/et8ek8.

[RFC PATCH 02/24] smiaregs: Generic i2c register writing

2016-04-24 Thread Ivaylo Dimitrov
Signed-off-by: Ivaylo Dimitrov --- drivers/media/i2c/Kconfig | 1 + drivers/media/i2c/Makefile| 1 + drivers/media/i2c/smia/Kconfig| 9 + drivers/media/i2c/smia/Makefile | 1 + drivers/media/i2c/smia/smiaregs.c | 724 ++ include/me

[RFC PATCH 08/24] v4l: of: Obtain data bus type from bus-type property

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus Only try parsing bus specific properties in this case. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-of.c | 42 +-- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-of.c b/drivers

[RFC PATCH 19/24] v4l2_device_register_subdev_nodes: allow calling multiple times

2016-04-24 Thread Ivaylo Dimitrov
From: Sebastian Reichel --- drivers/media/v4l2-core/v4l2-device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-device.c b/drivers/media/v4l2-core/v4l2-device.c index 06fa5f1..5aebe0a 100644 --- a/drivers/media/v4l2-core/v4l2-device.c +++ b/drivers/media/v4

[RFC PATCH 22/24] [media] omap3isp: Correctly set IO_OUT_SEL and VP_CLK_POL for CCP2 mode

2016-04-24 Thread Ivaylo Dimitrov
ISP CSI1 module needs all the bits correctly set to work. Signed-off-by: Ivaylo Dimitrov --- drivers/media/platform/omap3isp/isp.c | 2 ++ drivers/media/platform/omap3isp/ispccp2.c | 7 +-- drivers/media/platform/omap3isp/ispreg.h | 4 drivers/media/platform/omap3isp/omap3isp.h

[RFC PATCH 20/24] ARM: dts: omap3-n900: enable cameras

2016-04-24 Thread Ivaylo Dimitrov
Signed-off-by: Ivaylo Dimitrov --- arch/arm/boot/dts/omap3-n900.dts | 140 +++ 1 file changed, 140 insertions(+) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index cc4cab2..03e1613 100644 --- a/arch/arm/boot/dts/omap3-n900.d

[RFC PATCH 07/24] v4l: of: Call CSI2 bus csi2, not csi

2016-04-24 Thread Ivaylo Dimitrov
From: Sakari Ailus The function to parse CSI2 bus parameters was called v4l2_of_parse_csi_bus(), rename it as v4l2_of_parse_csi2_bus() in anticipation of CSI1/CCP2 support. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-of.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(

[RFC PATCH 00/24] Make Nokia N900 cameras working

2016-04-24 Thread Ivaylo Dimitrov
Those patch series make cameras on Nokia N900 partially working. Some more patches are needed, but I've already sent them for upstreaming so they are not part of the series: https://lkml.org/lkml/2016/4/16/14 https://lkml.org/lkml/2016/4/16/33 As omap3isp driver supports only one endpoint on ccp2

[RFC PATCH 01/24] V4L fixes

2016-04-24 Thread Ivaylo Dimitrov
From: "Tuukka.O Toivonen" Squashed from the following upstream commits: V4L: Create control class for sensor mode V4L: add ad5820 focus specific custom controls V4L: add V4L2_CID_TEST_PATTERN V4L: Add V4L2_CID_MODE_OPSYSCLOCK for reading output system clock Signed-off-by: Tuukka Toivonen Signe

Re: [PATCH 2/2] [media] tvp5150: propagate I2C write error in .s_register callback

2016-04-24 Thread Lad, Prabhakar
On Fri, Apr 15, 2016 at 2:00 AM, Javier Martinez Canillas wrote: > The tvp5150_write() function can fail so don't return 0 unconditionally > in tvp5150_s_register() but propagate what's returned by tvp5150_write(). > > Signed-off-by: Javier Martinez Canillas > Acked-by: Lad, Prabhakar Cheers, -

Re: [PATCH 1/2] [media] tvp5150: return I2C write operation failure to callers

2016-04-24 Thread Lad, Prabhakar
On Fri, Apr 15, 2016 at 2:00 AM, Javier Martinez Canillas wrote: > The tvp5150_write() function calls i2c_smbus_write_byte_data() that > can fail but does not propagate the error to the caller. Instead it > just prints a debug, so callers can't know if the operation failed. > > So change the funct

Re: [PATCHv4 06/13] staging/media: convert drivers to use the new vb2_queue dev field

2016-04-24 Thread Lad, Prabhakar
Hi Hans, On Sat, Apr 23, 2016 at 12:03 PM, Hans Verkuil wrote: > From: Hans Verkuil > > Stop using alloc_ctx and just fill in the device pointer. > > Signed-off-by: Hans Verkuil > Cc: "Lad, Prabhakar" > Reviewed-by: Laurent Pinchart Acked-by: Lad, Prabhakar Cheers, --Prabhakar Lad > --- >

Re: [PATCHv3 05/12] staging/media: convert drivers to use the new vb2_queue dev field

2016-04-24 Thread Lad, Prabhakar
Hi Hans, Thanks for the patch. On Fri, Apr 22, 2016 at 9:38 AM, Hans Verkuil wrote: > From: Hans Verkuil > > Stop using alloc_ctx and just fill in the device pointer. > > Signed-off-by: Hans Verkuil > Cc: "Lad, Prabhakar" > Cc: Laurent Pinchart > --- > drivers/staging/media/davinci_vpfe/vpf

Re: [PATCHv4 07/13] media/platform: convert drivers to use the new vb2_queue dev field

2016-04-24 Thread Lad, Prabhakar
Hi Hans, Thanks for the patch. On Sat, Apr 23, 2016 at 12:03 PM, Hans Verkuil wrote: > From: Hans Verkuil > > Stop using alloc_ctx and just fill in the device pointer. > > Signed-off-by: Hans Verkuil > Cc: "Lad, Prabhakar" > Cc: Scott Jiang > Acked-by: Philipp Zabel > --- > drivers/media/p

Re: [PATCH 1/6] adv7180: fix broken standards handling

2016-04-24 Thread Lars-Peter Clausen
On 04/22/2016 03:03 PM, Hans Verkuil wrote: > From: Hans Verkuil > > The adv7180 attempts to autodetect the standard. Unfortunately this > is seriously broken. > > This patch removes the autodetect completely. Only the querystd op > will detect the standard. Since the design of the adv7180 requi