[PATCH v2 20/21] [media] imx: Set i.MX MIPI CSI-2 entity function to bridge

2016-10-14 Thread Philipp Zabel
The i.MX6 MIPI CSI2 bridge converts the external MIPI CSI2 input into a SoC internal parallel bus connected to the IPU CSIs via the CSI2IPU gasket. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/platform/imx/imx-mipi-csi2.c | 1 + 1 file changed, 1 insertion(+)

[PATCH v2 19/21] [media] video-multiplexer: set entity function to mux

2016-10-14 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/platform/video-multiplexer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/video-multiplexer.c b/drivers/media/platform/video-multiplexer.c index f79b90e..466d9d0 100644 --- a/drivers

[PATCH v2 21/21] [media] tc358743: set entity function to video interface bridge

2016-10-14 Thread Philipp Zabel
The TC358743 is an HDMI to MIPI CSI2-2 bridge. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/i2c/tc358743.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index 7f82932..259ccf6 100644 --- a/drivers

[PATCH v2 18/21] [media] add mux and video interface bridge entity functions

2016-10-14 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- Documentation/media/uapi/mediactl/media-types.rst | 22 ++ include/uapi/linux/media.h| 6 ++ 2 files changed, 28 insertions(+) diff --git a/Documentation/media/uapi/mediactl/media-typ

[PATCH v2 16/21] gpu: ipuv3: add ipu_csi_set_downsize

2016-10-14 Thread Philipp Zabel
Support downsizing to 1/2 width and/or height in the CSI. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/gpu/ipu-v3/ipu-csi.c | 16 include/video/imx-ipu-v3.h | 1 + 2 files changed, 17 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-csi.c b/drive

[PATCH v2 14/21] ARM: dts: imx6qdl: Add MIPI CSI-2 D-PHY compatible and clocks

2016-10-14 Thread Philipp Zabel
called hsi_tx currently, but it really gates a whole lot of other clocks, too. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- arch/arm/boot/dts/imx6qdl.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index cd325

[PATCH v2 00/21] Basic i.MX IPUv3 capture support

2016-10-14 Thread Philipp Zabel
to their upstream subdevices themselves. - Various fixes (see individual patches for details) regards Philipp Philipp Zabel (20): [media] v4l2-async: move code out of v4l2_async_notifier_register into v4l2_async_test_nofity_all [media] v4l2-async: allow subdevices to add further subdevices

[PATCH v2 05/21] [media] imx: Add i.MX SoC wide media device driver

2016-10-14 Thread Philipp Zabel
. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- .../devicetree/bindings/media/fsl-imx-capture.txt | 25 +++ drivers/media/platform/Kconfig | 2 + drivers/media/platform/Makefile| 1 + drivers/media/platform/imx/Kconfig

[PATCH v2 10/21] [media] imx: Add i.MX MIPI CSI-2 subdevice driver

2016-10-14 Thread Philipp Zabel
-by: Philipp Zabel <p.za...@pengutronix.de> --- Changes since v1: - Call mipi_csi2_prepare_stream from mipi_csi2_s_stream and propagate s_stream to MIPI CSI-2 transmitter in the correct order. --- .../devicetree/bindings/media/fsl-imx-capture.txt | 67 ++ drivers/media/platform/imx/K

[PATCH v2 08/21] [media] imx: Add i.MX IPUv3 capture driver

2016-10-14 Thread Philipp Zabel
and interlace offset parameters. Currently the direct CSI -> SMFC -> IDMAC path is supported. Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de> Signed-off-by: Marc Kleine-Budde <m...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- Cha

[PATCH v2 12/21] ARM: dts: imx6qdl: Add capture-subsystem node

2016-10-14 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- arch/arm/boot/dts/imx6dl.dtsi | 5 + arch/arm/boot/dts/imx6q.dtsi | 5 + 2 files changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl.dtsi b/arch/arm/boot/dts/imx6dl.dtsi index 9a4c22c..3c817de 100644 --- a/ar

[PATCH v2 04/21] [media] v4l2-async: add new subdevices to the tail of subdev_list

2016-10-14 Thread Philipp Zabel
That way the asynchronous notifier will pick them up in the order they were registered. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/v4l2-core/v4l2-async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-asyn

[PATCH v2 06/21] [media] imx: Add IPUv3 media common code

2016-10-14 Thread Philipp Zabel
; Signed-off-by: Lucas Stach <l.st...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/platform/imx/Kconfig | 3 + drivers/media/platform/imx/Makefile | 1 + drivers/media/platform/imx/imx-ipu.c | 321 +++ driver

[PATCH v2 11/21] [media] tc358743: put lanes in STOP state before starting streaming

2016-10-14 Thread Philipp Zabel
Without calling tc358743_set_csi after stopping streaming (or calling tc358743_s_dv_timings or tc358743_set_fmt from userspace after stopping the stream), the i.MX6 MIPI CSI2 input fails waiting for lanes to enter STOP state when streaming is started again. Signed-off-by: Philipp Zabel <p

[PATCH v2 03/21] [media] v4l: of: add v4l2_of_subdev_registered

2016-10-14 Thread Philipp Zabel
known to the master/bridge device when it sets up the notifier. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- Changes since v1: - Alphabetical #include order - Compile v4l2_of_subdev_registered only if CONFIG_MEDIA_CONTROLLER is set. --- drivers/media/v4l2-core/v4l2-of.

[PATCH v2 07/21] [media] imx-ipu: Add i.MX IPUv3 CSI subdevice driver

2016-10-14 Thread Philipp Zabel
or IC modules. Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de> Signed-off-by: Marc Kleine-Budde <m...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- Changes since v1: - Propagate field and colorspace in ipucsi_subdev_set_format. - Recursi

[PATCH v2 17/21] [media] imx-ipuv3-csi: support downsizing

2016-10-14 Thread Philipp Zabel
Add support for the CSI internal horizontal and vertical downsizing. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- Changes since v1: - Rebased onto CSI changes. --- drivers/media/platform/imx/imx-ipuv3-csi.c | 18 -- 1 file changed, 12 insertions(+), 6 del

[PATCH v2 01/21] [media] v4l2-async: move code out of v4l2_async_notifier_register into v4l2_async_test_nofity_all

2016-10-14 Thread Philipp Zabel
This will be reused in the following patch to catch already registered, newly added asynchronous subdevices from v4l2_async_register_subdev. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- Changes since v1: - Add missing v4l2_async_test_notify_all() call. --- drivers/media/v4l

[PATCH v2 09/21] [media] platform: add video-multiplexer subdevice driver

2016-10-14 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- Changes since v1: - Propagate s_stream to selected upstream subdevice. --- .../bindings/media/video-multiplexer.txt | 59 +++ drivers/media/platform/Kconfig | 8 + drivers/media/platf

[PATCH v2 02/21] [media] v4l2-async: allow subdevices to add further subdevices to the notifier waiting list

2016-10-14 Thread Philipp Zabel
-by: Philipp Zabel <p.za...@pengutronix.de> --- Changes since v1: - Don't add more async subdevs than V4L2_MAX_SUBDEVS. - Fix v4l2_async_unregister, allocate a correctly sized device cache without modifying notifier->num_subdevs. --- drivers/media/v4l2-core/v4l2-asy

[PATCH v2 13/21] ARM: dts: imx6qdl: Add mipi_ipu1/2 multiplexers, mipi_csi, and their connections

2016-10-14 Thread Philipp Zabel
to select between CSI0/1 parallel input pads and the MIPI CSI-2 virtual channels 0/3. On i.MX6DL/S two five-input multiplexers in front of IPU1 CSI0 and IPU1 CSI1 allow to select between CSI0/1 parallel input pads and any of the four MIPI CSI-2 virtual channels. Signed-off-by: Philipp Zabel <p

Re: [PATCH 02/22] [media] v4l2-async: allow subdevices to add further subdevices to the notifier waiting list

2016-10-14 Thread Philipp Zabel
Am Freitag, den 14.10.2016, 18:06 +0100 schrieb Ian Arkver: > On 14/10/16 16:48, Philipp Zabel wrote: > > Am Samstag, den 08.10.2016, 01:43 +0300 schrieb Sakari Ailus: > > [...] > > [...] > >>> diff --git a/include/media/v4l2-async.h b/include/media/v4l2-async.h &g

Re: [16/22] ARM: dts: nitrogen6x: Add dtsi for BD_HDMI_MIPI HDMI to MIPI CSI-2 receiver board

2016-10-14 Thread Philipp Zabel
Hi Gary, Am Montag, den 10.10.2016, 17:48 +0200 schrieb Gary Bisson: > Hi Philipp, All, > > On Fri, Oct 07, 2016 at 06:01:01PM +0200, Philipp Zabel wrote: > > Add device tree nodes for the BD_HDMI_MIPI HDMI to MIPI CSI-2 receiver > > board with a TC358743 connected to the

Re: [PATCH 02/22] [media] v4l2-async: allow subdevices to add further subdevices to the notifier waiting list

2016-10-14 Thread Philipp Zabel
Am Donnerstag, den 13.10.2016, 14:56 +0300 schrieb Sakari Ailus: > Hi Philipp, > > On Wed, Oct 12, 2016 at 03:26:48PM +0200, Philipp Zabel wrote: > > On Fri, Oct 7, 2016 at 11:52 PM, Sakari Ailus <sakari.ai...@iki.fi> wrote: > > > Hi Philipp, > > > > &g

Re: [PATCH 12/22] [media] tc358743: put lanes in STOP state before starting streaming

2016-10-14 Thread Philipp Zabel
Am Freitag, den 07.10.2016, 21:02 +0200 schrieb Marek Vasut: > On 10/07/2016 06:00 PM, Philipp Zabel wrote: > > Without calling tc358743_set_csi from the new prepare_stream callback > > (or calling tc358743_s_dv_timings or tc358743_set_fmt from userspace > > after stopping t

Re: [PATCH 02/22] [media] v4l2-async: allow subdevices to add further subdevices to the notifier waiting list

2016-10-14 Thread Philipp Zabel
Am Samstag, den 08.10.2016, 01:43 +0300 schrieb Sakari Ailus: [...] > > void v4l2_async_notifier_unregister(struct v4l2_async_notifier *notifier) > > { > > struct v4l2_subdev *sd, *tmp; > > - unsigned int notif_n_subdev = notifier->num_subdevs; > > - unsigned int n_subdev =

Re: [PATCH 03/22] [media] v4l: of: add v4l2_of_subdev_registered

2016-10-14 Thread Philipp Zabel
Am Freitag, den 07.10.2016, 20:50 +0200 schrieb Marek Vasut: > On 10/07/2016 06:00 PM, Philipp Zabel wrote: > > Provide a default registered callback for device tree probed subdevices > > that use OF graph bindings to add still missing source subdevices to > > the async

Re: [PATCH 04/22] [media] v4l2-subdev.h: add prepare_stream op

2016-10-14 Thread Philipp Zabel
Am Samstag, den 08.10.2016, 02:16 +0300 schrieb Sakari Ailus: > Hi Philipp, > > On Fri, Oct 07, 2016 at 06:00:49PM +0200, Philipp Zabel wrote: > > In some cases, for example MIPI CSI-2 input on i.MX6, the sending and > > receiving subdevice need to be prepared in lock-s

Re: [PATCH 03/22] [media] v4l: of: add v4l2_of_subdev_registered

2016-10-14 Thread Philipp Zabel
Am Samstag, den 08.10.2016, 01:50 +0300 schrieb Sakari Ailus: > Hi Philipp, > > On Fri, Oct 07, 2016 at 06:00:48PM +0200, Philipp Zabel wrote: > > Provide a default registered callback for device tree probed subdevices > > that use OF graph bindings to add still miss

Re: [PATCH 18/22] [media] imx-ipuv3-csi: support downsizing

2016-10-14 Thread Philipp Zabel
Am Freitag, den 07.10.2016, 21:01 +0200 schrieb Marek Vasut: > On 10/07/2016 06:01 PM, Philipp Zabel wrote: > > Add support for the CSI internal horizontal and vertical downsizing. > > > > Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> > > --- > >

Re: [PATCH 02/22] [media] v4l2-async: allow subdevices to add further subdevices to the notifier waiting list

2016-10-12 Thread Philipp Zabel
On Fri, Oct 7, 2016 at 11:52 PM, Sakari Ailus <sakari.ai...@iki.fi> wrote: > Hi Philipp, > > On Fri, Oct 07, 2016 at 06:00:47PM +0200, Philipp Zabel wrote: >> Currently the v4l2_async_notifier needs to be given a list of matches >> for all expected subdevices on creatio

Re: [PATCH 01/22] [media] v4l2-async: move code out of v4l2_async_notifier_register into v4l2_async_test_nofity_all

2016-10-07 Thread Philipp Zabel
Am Freitag, den 07.10.2016, 18:30 +0200 schrieb Marek Vasut: > On 10/07/2016 06:00 PM, Philipp Zabel wrote: > > This will be reused in the following patch to catch already registered, > > newly added asynchronous subdevices from v4l2_async_register_subdev. > > > > S

[PATCH 16/22] ARM: dts: nitrogen6x: Add dtsi for BD_HDMI_MIPI HDMI to MIPI CSI-2 receiver board

2016-10-07 Thread Philipp Zabel
Add device tree nodes for the BD_HDMI_MIPI HDMI to MIPI CSI-2 receiver board with a TC358743 connected to the Nitrogen6X MIPI CSI-2 input connector. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- .../boot/dts/imx6qdl-nitrogen6x-bd-hdmi-mipi.dtsi | 73 ++

[PATCH 12/22] [media] tc358743: put lanes in STOP state before starting streaming

2016-10-07 Thread Philipp Zabel
Without calling tc358743_set_csi from the new prepare_stream callback (or calling tc358743_s_dv_timings or tc358743_set_fmt from userspace after stopping the stream), the i.MX6 MIPI CSI2 input fails waiting for lanes to enter STOP state when streaming is started again. Signed-off-by: Philipp

[PATCH 08/22] [media] imx-ipu: Add i.MX IPUv3 CSI subdevice driver

2016-10-07 Thread Philipp Zabel
or IC modules. Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de> Signed-off-by: Marc Kleine-Budde <m...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/platform/imx/Kconfig | 7 + drivers/media/platform/imx/Makefile|

[PATCH 11/22] [media] imx: Add i.MX MIPI CSI-2 subdevice driver

2016-10-07 Thread Philipp Zabel
-by: Philipp Zabel <p.za...@pengutronix.de> --- .../devicetree/bindings/media/fsl-imx-capture.txt | 67 ++ drivers/media/platform/imx/Kconfig | 7 + drivers/media/platform/imx/Makefile| 1 + drivers/media/platform/imx/imx-mipi-csi2.c

[PATCH 18/22] [media] imx-ipuv3-csi: support downsizing

2016-10-07 Thread Philipp Zabel
Add support for the CSI internal horizontal and vertical downsizing. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/platform/imx/imx-ipuv3-csi.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/media/platform/imx/imx

[PATCH 14/22] ARM: dts: imx6qdl: Add mipi_ipu1/2 multiplexers, mipi_csi, and their connections

2016-10-07 Thread Philipp Zabel
to select between CSI0/1 parallel input pads and the MIPI CSI-2 virtual channels 0/3. On i.MX6DL/S two five-input multiplexers in front of IPU1 CSI0 and IPU1 CSI1 allow to select between CSI0/1 parallel input pads and any of the four MIPI CSI-2 virtual channels. Signed-off-by: Philipp Zabel <p

[PATCH 06/22] [media] imx: Add i.MX SoC wide media device driver

2016-10-07 Thread Philipp Zabel
. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- .../devicetree/bindings/media/fsl-imx-capture.txt | 25 +++ drivers/media/platform/Kconfig | 2 + drivers/media/platform/Makefile| 1 + drivers/media/platform/imx/Kconfig

[PATCH 05/22] [media] v4l2-async: add new subdevices to the tail of subdev_list

2016-10-07 Thread Philipp Zabel
That way the asynchronous notifier will pick them up in the order they were registered. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/v4l2-core/v4l2-async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-asyn

[PATCH 22/22] [media] tc358743: set entity function to video interface bridge

2016-10-07 Thread Philipp Zabel
The TC358743 is an HDMI to MIPI CSI2-2 bridge. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/i2c/tc358743.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index dfa45d2..c7a8f55 100644 --- a/drivers

[PATCH 03/22] [media] v4l: of: add v4l2_of_subdev_registered

2016-10-07 Thread Philipp Zabel
known to the master/bridge device when it sets up the notifier. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/v4l2-core/v4l2-of.c | 68 +++ include/media/v4l2-of.h | 12 +++ 2 files changed, 80 insertions(+) diff

[PATCH 21/22] [media] imx: Set i.MX MIPI CSI-2 entity function to bridge

2016-10-07 Thread Philipp Zabel
The i.MX6 MIPI CSI2 bridge converts the external MIPI CSI2 input into a SoC internal parallel bus connected to the IPU CSIs via the CSI2IPU gasket. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/platform/imx/imx-mipi-csi2.c | 1 + 1 file changed, 1 insertion(+)

[PATCH 07/22] [media] imx: Add IPUv3 media common code

2016-10-07 Thread Philipp Zabel
; Signed-off-by: Lucas Stach <l.st...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/platform/imx/Kconfig | 3 + drivers/media/platform/imx/Makefile | 1 + drivers/media/platform/imx/imx-ipu.c | 321 +++ driver

[PATCH 20/22] [media] video-multiplexer: set entity function to mux

2016-10-07 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/platform/video-multiplexer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/video-multiplexer.c b/drivers/media/platform/video-multiplexer.c index e9137ba..bcd1688 100644 --- a/drivers

[PATCH 13/22] ARM: dts: imx6qdl: Add capture-subsystem node

2016-10-07 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- arch/arm/boot/dts/imx6dl.dtsi | 5 + arch/arm/boot/dts/imx6q.dtsi | 5 + 2 files changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl.dtsi b/arch/arm/boot/dts/imx6dl.dtsi index 9a4c22c..3c817de 100644 --- a/ar

[PATCH 19/22] [media] add mux and video interface bridge entity functions

2016-10-07 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- Documentation/media/uapi/mediactl/media-types.rst | 22 ++ include/uapi/linux/media.h| 6 ++ 2 files changed, 28 insertions(+) diff --git a/Documentation/media/uapi/mediactl/media-typ

[PATCH 09/22] [media] imx: Add i.MX IPUv3 capture driver

2016-10-07 Thread Philipp Zabel
and interlace offset parameters. Currently the direct CSI -> SMFC -> IDMAC path is supported. Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de> Signed-off-by: Marc Kleine-Budde <m...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/me

[PATCH 15/22] ARM: dts: imx6qdl: Add MIPI CSI-2 D-PHY compatible and clocks

2016-10-07 Thread Philipp Zabel
called hsi_tx currently, but it really gates a whole lot of other clocks, too. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- arch/arm/boot/dts/imx6qdl.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index cd325

[PATCH 17/22] gpu: ipuv3: add ipu_csi_set_downsize

2016-10-07 Thread Philipp Zabel
Support downsizing to 1/2 width and/or height in the CSI. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/gpu/ipu-v3/ipu-csi.c | 16 include/video/imx-ipu-v3.h | 1 + 2 files changed, 17 insertions(+) diff --git a/drivers/gpu/ipu-v3/ipu-csi.c b/drive

[PATCH 04/22] [media] v4l2-subdev.h: add prepare_stream op

2016-10-07 Thread Philipp Zabel
-by: Philipp Zabel <p.za...@pengutronix.de> --- include/media/v4l2-subdev.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index cf778c5..6502f43 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h @@ -395,6

[PATCH 01/22] [media] v4l2-async: move code out of v4l2_async_notifier_register into v4l2_async_test_nofity_all

2016-10-07 Thread Philipp Zabel
This will be reused in the following patch to catch already registered, newly added asynchronous subdevices from v4l2_async_register_subdev. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/v4l2-core/v4l2-async.c | 38 +--- 1 file c

[PATCH 10/22] [media] platform: add video-multiplexer subdevice driver

2016-10-07 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- .../bindings/media/video-multiplexer.txt | 59 +++ drivers/media/platform/Kconfig | 8 + drivers/media/platform/Makefile| 2 + drivers/media/platform/video-multiplexer.c

[PATCH 02/22] [media] v4l2-async: allow subdevices to add further subdevices to the notifier waiting list

2016-10-07 Thread Philipp Zabel
-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/v4l2-core/v4l2-async.c | 78 ++-- include/media/v4l2-async.h | 12 ++ 2 files changed, 86 insertions(+), 4 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/medi

[PATCH 00/22] Basic i.MX IPUv3 capture support

2016-10-07 Thread Philipp Zabel
0002d:port2 -> n000a:port0 [style=dashed] n0033 [label="{{} | tc358743 1-000f\n/dev/v4l-subdev7 | { 0}}", shape=Mrecord, style=filled, fillcolor=green] n0033:port0 -> n002d:port0 } regards Philipp Philipp Zabel (21): [media] v4l2-async: move code out o

Re: [PATCH] [media] dw2102: Add support for Terratec Cinergy S2 USB BOX

2016-08-31 Thread Philipp Zabel
Am Mittwoch, den 27.07.2016, 17:34 +0200 schrieb Benjamin Larsson: > On 07/18/2016 01:59 PM, Mauro Carvalho Chehab wrote: > >It would be > > nice if both Philipp and Benjamin test such patch, for us to be sure > > that it would work for both. > > > > Regards, > > Mauro > > I added it to the

Re: [PATCH v4 09/12] [media] vivid: Local optimization

2016-07-18 Thread Philipp Zabel
Hi Ricardo, Am Montag, den 18.07.2016, 15:21 +0200 schrieb Ricardo Ribalda Delgado: > Hi Philipp > > On Mon, Jul 18, 2016 at 3:13 PM, Philipp Zabel <p.za...@pengutronix.de> wrote: > > Since the constant expressions are evaluated at compile time, you are > > not actuall

Re: [PATCH v4 09/12] [media] vivid: Local optimization

2016-07-18 Thread Philipp Zabel
Hi Ricardo, Am Montag, den 18.07.2016, 14:42 +0200 schrieb Ricardo Ribalda Delgado: > Avoid duplicated data shifts when possible. > > Signed-off-by: Ricardo Ribalda Delgado > --- > drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 13 +++-- > 1 file changed, 7

Re: [PATCH] [media] dw2102: Add support for Terratec Cinergy S2 USB BOX

2016-07-18 Thread Philipp Zabel
Am Montag, den 18.07.2016, 08:59 -0300 schrieb Mauro Carvalho Chehab: > Em Mon, 18 Jul 2016 07:49:49 +0200 > Olli Salonen escreveu: > > > Hi Mauro, > > > > I have a feeling that this device equals DVBSky S960 (driver > > dvb-usb-dvbsky) which might be equal to TechnoTrend

Re: gstreamer: v4l2videodec plugin

2016-05-19 Thread Philipp Zabel
Am Samstag, den 14.05.2016, 15:07 +0300 schrieb Stanimir Varbanov: [...] > > While I got you. I would be very interested to know who QCOM driver > > interpreted the width and height expose on capture side of the decoder. > > I'm adding Philippe Zabel in CC here (he's maintaining the > >

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

2016-04-22 Thread Philipp Zabel
abhakar.cse...@gmail.com> > Cc: Scott Jiang <scott.jiang.li...@gmail.com> > Cc: Philipp Zabel <p.za...@pengutronix.de> coda-wise Acked-by: Philipp Zabel <p.za...@pengutronix.de> > --- > drivers/media/platform/am437x/am437x-vpfe.c| 10 +- > d

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

2016-04-22 Thread Philipp Zabel
easonboard.com> > Cc: Sakari Ailus <sakari.ai...@iki.fi> > Cc: Mauro Carvalho Chehab <mche...@osg.samsung.com> > Cc: Florian Echtler <f...@butterbrot.org> > Cc: Federico Vaga <federico.v...@gmail.com> > Cc: "Lad, Prabhakar" <prabhakar.cse...@gmail.co

[PATCH] [media] v4l2-ioctl: fix YUV422P pixel format description

2016-03-04 Thread Philipp Zabel
The plane order is YUV, not YVU. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index 8a018c6..5

[PATCH] coda: fix first encoded frame payload

2016-01-04 Thread Philipp Zabel
media: videobuf2: Restructure vb2_buffer") Reported-by: Michael Olbrich <m.olbr...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> Tested-by: Jan Luebbe <j...@pengutronix.de> --- drivers/media/platform/coda/coda-bit.c | 2 +- 1 file changed, 1 insertion(+

[PATCH] [media] dw2102: Add support for Terratec Cinergy S2 USB BOX

2016-01-04 Thread Philipp Zabel
The Terratec Cinergy S2 USB BOX uses a Montage M88TS2022 tuner and a M88DS3103 demodulator, same as Technotrend TT-connect S2-4600. This patch adds the missing USB Product ID to make it work. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/usb/dvb-usb/dw2102

Re: problem with coda when running qt-gstreamer and video reaches its end (resending in plain text)

2015-12-16 Thread Philipp Zabel
Hi Piotr, thank you for the report. Am Mittwoch, den 16.12.2015, 14:09 +0100 schrieb Piotr Lewicki: > Hello, > I'm running an application that plays video on an embedded device. It > uses Qt5.4 and qt-gstreamer plugin and it runs on imx6q processor with > yocto based linux (kernel version

Re: [PATCH 3/4] drm, ipu-v3: use https://linuxtv.org for LinuxTV URL

2015-12-04 Thread Philipp Zabel
at DRM include and at > the ipu-v3 driver to point to the https://linuxtv.org > URL instead. > > Signed-off-by: Mauro Carvalho Chehab <mche...@osg.samsung.com> Acked-by: Philipp Zabel <p.za...@pengutronix.de> regards Philipp -- To unsubscribe from this list: send the lin

[PATCH 2/5] [media] coda: relax coda_jpeg_check_buffer for trailing bytes

2015-12-02 Thread Philipp Zabel
From: Philipp Zabel <philipp.za...@gmail.com> coda_jpeg_check_buffer only cares about the buffer length and contents, so change the parameter type back from v4l2_vb2_buffer to just the vb2_buffer. Instead of just checking the first and last bytes for the SOI and EOI markers, relax the EOI

[PATCH 3/5] [media] coda: hook up vidioc_prepare_buf

2015-12-02 Thread Philipp Zabel
Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/platform/coda/coda-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index 03b46de..007f458 100644 --- a/drivers/media/pl

[PATCH 5/5] [media] coda: enable MPEG-2 ES decoding

2015-12-02 Thread Philipp Zabel
Hook up the MPEG-2 ES decoder. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/platform/coda/coda-common.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index 2452f46..2

[PATCH 1/5] [media] coda: make to_coda_video_device static

2015-12-02 Thread Philipp Zabel
This function is not used outside coda-common.c. Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- drivers/media/platform/coda/coda-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/cod

[PATCH 4/5] [media] coda: don't start streaming without queued buffers

2015-12-02 Thread Philipp Zabel
We could support start streaming with an empty output queue for the BIT decoders due to the bitstream buffer which could still contain data at this point, but there is really no reason for userspace to expect this to work. Simplify the code by disallowing it. Signed-off-by: Philipp Zabel <p

Re: [PATCH v3 5/5] [media] imx-ipu: Add i.MX IPUv3 scaler driver

2015-10-02 Thread Philipp Zabel
Hi Jean-Michel, Am Donnerstag, den 01.10.2015, 09:55 +0200 schrieb Jean-Michel Hautbois: > Hi Philipp, Hans, > > > 2015-07-24 17:12 GMT+02:00 Hans Verkuil : [...] > What is the status of this driver ? > I can test it here, Philipp, are you planning to take Hans remarks >

Re: iMX6 CSI capture support?

2015-10-02 Thread Philipp Zabel
Hi David, Am Donnerstag, den 01.10.2015, 16:33 +0200 schrieb David Müller: > Hello > > Some time ago, there were some patches around implementing CSI capture > support for the iMX6 IPU. > > It seems like these patches never made it into the vanilla kernel tree. > > What is the status of iMX6

Re: [PATCH v3 5/5] [media] imx-ipu: Add i.MX IPUv3 scaler driver

2015-10-02 Thread Philipp Zabel
Am Freitag, den 02.10.2015, 11:06 +0200 schrieb Jean-Michel Hautbois: > 2015-10-02 10:37 GMT+02:00 Philipp Zabel <p.za...@pengutronix.de>: > > Hi Jean-Michel, > > > > Am Donnerstag, den 01.10.2015, 09:55 +0200 schrieb Jean-Michel Hautbois: > >> Hi Philipp, Hans,

Re: Coda encoder stop

2015-10-02 Thread Philipp Zabel
Am Freitag, den 02.10.2015, 16:59 +0200 schrieb Jean-Michel Hautbois: [...] > Oups, forgot to paste the kernel output : > > [ 324.390498] [ cut here ] > [ 324.395163] WARNING: CPU: 1 PID: 1434 at >

[PATCH] [media] tc358743: only queue subdev notifications if devnode is set

2015-08-20 Thread Philipp Zabel
Hardware interrupts are enabled in the probe function, before the subdev is registered to its v4l2_device. Until v4l2_device_register_subdev_node is called, sd-devnode is NULL and v4l2_subdev_notify_event must not be called. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media

Re: [PATCH 2/2] [media] tc358743: make reset gpio optional

2015-08-19 Thread Philipp Zabel
-König u.kleine-koe...@pengutronix.de Acked-by: Philipp Zabel p.za...@pengutronix.de thanks Philipp -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/2] [media] tc358743: set direction of reset gpio using devm_gpiod_get

2015-08-19 Thread Philipp Zabel
the flag parameter will become mandatory soon. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de Acked-by: Philipp Zabel p.za...@pengutronix.de thanks Philipp -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org

[PATCH] [media] v4l2: move tracepoint generation into separate file

2015-08-06 Thread Philipp Zabel
by 2091f5181c66 ([media] videobuf2: add trace events): ERROR: __tracepoint_vb2_buf_done undefined! ERROR: __tracepoint_vb2_dqbuf undefined! ERROR: __tracepoint_vb2_qbuf undefined! ERROR: __tracepoint_vb2_buf_queue undefined! Signed-off-by: Philipp Zabel p.za...@pengutronix.de

Re: [PATCH] [media] v4l2: move tracepoint generation into separate file

2015-08-06 Thread Philipp Zabel
Am Donnerstag, den 06.08.2015, 09:23 -0400 schrieb Steven Rostedt: On Thu, 6 Aug 2015 14:38:02 +0200 Philipp Zabel p.za...@pengutronix.de wrote: To compile videobuf2-core as a module, the vb2_* tracepoints must be exported from the videodev module. Instead of exporting vb2 tracepoint

Re: [PATCH] [media] coda: drop zero payload bitstream buffers

2015-08-03 Thread Philipp Zabel
...@linux.com Yes, that looks better. Acked-by: Philipp Zabel p.za...@pengutronix.de thanks Philipp -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: coda: Problems with encoding in i.MX6DL.

2015-07-29 Thread Philipp Zabel
Hi Javier, Am Mittwoch, den 29.07.2015, 08:26 +0200 schrieb Javier Martin: Hello, I am running kernel 4.1 in a var-dvk-solo-linux evaluation board from Variscite. This is what I get at system start-up: coda 204.vpu: Firmware code revision: 34588 coda 204.vpu: Initialized

Re: [PATCH v3 3/3] [media] videobuf2: add trace events

2015-07-28 Thread Philipp Zabel
Am Montag, den 27.07.2015, 13:12 +0200 schrieb Philipp Zabel: Hi Hans, Am Sonntag, den 26.07.2015, 13:18 +0200 schrieb Hans Verkuil: Hi Philipp, [...] diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index 93b3154..b866a6b 100644

[PATCH] [media] v4l2: export videobuf2 trace points

2015-07-28 Thread Philipp Zabel
If videobuf2-core is built as a module, the vb2 trace points must be exported from videodev.o to avoid errors when linking videobuf2-core. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/v4l2-core/v4l2-ioctl.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers

Re: [PATCH] [media] v4l2: export videobuf2 trace points

2015-07-28 Thread Philipp Zabel
Am Dienstag, den 28.07.2015, 10:02 +0200 schrieb Hans Verkuil: On 07/28/2015 09:55 AM, Philipp Zabel wrote: If videobuf2-core is built as a module, the vb2 trace points must be exported from videodev.o to avoid errors when linking videobuf2-core. I'm no tracepoint expert, so I'll just ask

Re: [PATCH 1/2] [media] coda: fix sequence counter increment

2015-07-28 Thread Philipp Zabel
Am Dienstag, den 28.07.2015, 10:54 +0200 schrieb Hans Verkuil: On 07/08/2015 05:49 PM, Philipp Zabel wrote: Hi Zahari, Am Mittwoch, den 08.07.2015, 15:37 +0200 schrieb Zahari Doychev: The coda context queue sequence counter is incremented only if the vb2 source buffer payload is non

Re: [PATCH v3 3/3] [media] videobuf2: add trace events

2015-07-27 Thread Philipp Zabel
Hi Hans, Am Sonntag, den 26.07.2015, 13:18 +0200 schrieb Hans Verkuil: Hi Philipp, [...] diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index 93b3154..b866a6b 100644 --- a/drivers/media/v4l2-core/videobuf2-core.c +++

Re: [PATCH v2 3/4] [media] tc358743: support probe from device tree

2015-07-17 Thread Philipp Zabel
Hi Hans, Am Freitag, den 17.07.2015, 14:23 +0200 schrieb Hans Verkuil: [...] + endpoint = v4l2_of_alloc_parse_endpoint(ep); + if (IS_ERR(endpoint)) { + dev_err(dev, failed to parse endpoint\n); + return PTR_ERR(endpoint); + } + + if (endpoint-bus_type !=

[PATCH v3 4/4] [media] tc358743: add direct interrupt handling

2015-07-17 Thread Philipp Zabel
When probed from device tree, the i2c client driver can handle the interrupt on its own. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/i2c/tc358743.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media

[PATCH v3 1/4] [media] tc358743: register v4l2 asynchronous subdevice

2015-07-17 Thread Philipp Zabel
Add support for registering the sensor subdevice using the v4l2-async API. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/i2c/tc358743.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index

[PATCH v3 2/4] [media] tc358743: enable v4l2 subdevice devnode

2015-07-17 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/i2c/tc358743.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index 8d9906b..a7542e5 100644 --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media

[PATCH v3 3/4] [media] tc358743: support probe from device tree

2015-07-17 Thread Philipp Zabel
Add support for probing the TC358743 subdevice from device tree. The reference clock must be supplied using the common clock bindings. MIPI CSI-2 specific properties are parsed from the OF graph endpoint node and support for a non-continuous MIPI CSI-2 clock is added. Signed-off-by: Philipp Zabel

[PATCH v2] [media] tc358743: allow event subscription

2015-07-17 Thread Philipp Zabel
This is useful to subscribe to HDMI hotplug events via the V4L2_CID_DV_RX_POWER_PRESENT control. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v1: - Make use of v4l2_subdev_notify_event, v4l2_src_change_event_subdev_subscribe, and v4l2_ctrl_subdev_subscribe_event

Re: [PATCH v2] [media] tc358743: allow event subscription

2015-07-17 Thread Philipp Zabel
Am Freitag, den 17.07.2015, 17:12 +0200 schrieb Hans Verkuil: On 07/17/2015 05:06 PM, Philipp Zabel wrote: This is useful to subscribe to HDMI hotplug events via the V4L2_CID_DV_RX_POWER_PRESENT control. Very quick, but it doesn't apply. You need to combine the original [PATCH 5/5] [media

[PATCH v3] [media] tc358743: allow event subscription

2015-07-17 Thread Philipp Zabel
This is useful to subscribe to HDMI hotplug events via the V4L2_CID_DV_RX_POWER_PRESENT control. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- Changes since v1: - Make use of v4l2_subdev_notify_event, v4l2_src_change_event_subdev_subscribe, and v4l2_ctrl_subdev_subscribe_event

[PATCH v2 4/4] [media] tc358743: add direct interrupt handling

2015-07-17 Thread Philipp Zabel
When probed from device tree, the i2c client driver can handle the interrupt on its own. Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/i2c/tc358743.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media

[PATCH v2 3/4] [media] tc358743: support probe from device tree

2015-07-17 Thread Philipp Zabel
Add support for probing the TC358743 subdevice from device tree. The reference clock must be supplied using the common clock bindings. MIPI CSI-2 specific properties are parsed from the OF graph endpoint node and support for a non-continuous MIPI CSI-2 clock is added. Signed-off-by: Philipp Zabel

[PATCH v2 2/4] [media] tc358743: enable v4l2 subdevice devnode

2015-07-17 Thread Philipp Zabel
Signed-off-by: Philipp Zabel p.za...@pengutronix.de --- drivers/media/i2c/tc358743.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index 8d9906b..a7542e5 100644 --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media

Re: [PATCH 3/5] [media] tc358743: support probe from device tree

2015-07-17 Thread Philipp Zabel
Am Dienstag, den 14.07.2015, 12:15 +0200 schrieb Hans Verkuil: [...] As you said, it's not public and without the formulas there is nothing you can do but hardcode it. If I understand this correctly these values depend on the link frequency, so the DT should contain the link frequency and

<    2   3   4   5   6   7   8   9   10   11   >