[PATCH] media: adv7180: add g_skip_frames support

2018-10-24 Thread Tim Harvey
The adv7180 produces 1 to 2 frames of garbage before proper sync is established. This allows V4L2 drivers and apps to skip those. Signed-off-by: Tim Harvey --- drivers/media/i2c/adv7180.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/media/i2c/adv7180.c b/drivers

Re: [PATCH v3 01/16] media: imx: add mem2mem device

2018-10-19 Thread Tim Harvey
On Fri, Oct 19, 2018 at 1:19 PM Steve Longerbeam wrote: > > > On 10/19/18 2:53 AM, Philipp Zabel wrote: > > Hi Tim, > > > > On Thu, 2018-10-18 at 15:53 -0700, Tim Harvey wrote: > > [...] > >> Philipp, > >> > >> Thanks for submitting

Re: [PATCH v3 01/16] media: imx: add mem2mem device

2018-10-18 Thread Tim Harvey
On Tue, Sep 18, 2018 at 2:34 AM Philipp Zabel wrote: > > Add a single imx-media mem2mem video device that uses the IPU IC PP > (image converter post processing) task for scaling and colorspace > conversion. > On i.MX6Q/DL SoCs with two IPUs currently only the first IPU is used. > > The hardware

Re: i.MX6 IPU CSI analog video input on Ventana

2018-10-18 Thread Tim Harvey
On Wed, Oct 17, 2018 at 4:37 PM Steve Longerbeam wrote: > > > On 10/17/18 4:05 PM, Tim Harvey wrote: > > On Wed, Oct 17, 2018 at 2:33 PM Steve Longerbeam > > wrote: > >> Hi Tim, > >> > >> On 10/17/18 1:38 PM, Tim Harvey wrote: > >> &g

Re: i.MX6 IPU CSI analog video input on Ventana

2018-10-17 Thread Tim Harvey
On Wed, Oct 17, 2018 at 2:33 PM Steve Longerbeam wrote: > > Hi Tim, > > On 10/17/18 1:38 PM, Tim Harvey wrote: > > On Mon, Jun 4, 2018 at 1:58 AM Krzysztof Hałasa wrote: > > I've just tested the PAL setup: in currect situation (v4.17 + Steve's > fix-csi-interlaced.2 +

Re: i.MX6 IPU CSI analog video input on Ventana

2018-10-17 Thread Tim Harvey
On Mon, Jun 4, 2018 at 1:58 AM Krzysztof Hałasa wrote: > > I've just tested the PAL setup: in currect situation (v4.17 + Steve's > fix-csi-interlaced.2 + "media: adv7180: fix field type" + a small cheap > PAL camera) the following produces bottom-first interlaced frames: > > media-ctl -r -l

Re: i.MX6 IPU CSI analog video input on Ventana

2018-05-21 Thread Tim Harvey
On Mon, May 21, 2018 at 1:09 AM, Krzysztof Hałasa wrote: > Tested with NTSC camera, it's the same as with PAL. > The only case when IPU2_CSI1_SENS_CONF register is set to interlaced > mode (PRCTL=3, CCIR interlaced mode (BT.656)) is when all parts of the > pipeline are set to

Re: i.MX6 IPU CSI analog video input on Ventana

2018-05-18 Thread Tim Harvey
On Fri, May 18, 2018 at 10:28 AM, Krzysztof Hałasa wrote: > Steve Longerbeam writes: > >> Yes, the CSI on i.MX6 does not deal well with unstable bt.656 sync codes, >> which results in vertical sync issues (scrolling or split images). The >> ADV7180 >> will

Re: [PATCH v3][RESEND] media: i2c: tda1997: replace codec to component

2018-04-23 Thread Tim Harvey
On Mon, Apr 23, 2018 at 9:52 AM, Mark Brown <broo...@kernel.org> wrote: > On Mon, Apr 23, 2018 at 09:44:17AM -0700, Tim Harvey wrote: > >> Could you add some detail to the commit explaining why we need to >> replace codec to component? I don't really know what tha

Re: [PATCH v3][RESEND] media: i2c: tda1997: replace codec to component

2018-04-23 Thread Tim Harvey
On Sun, Apr 22, 2018 at 7:10 PM, Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > Now we can replace Codec to Component. Let's do it. > > Note: > xxx_codec_xxx() -> xxx_component_xxx() >

Re: [PATCH v13 7/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2018-02-15 Thread Tim Harvey
On Thu, Feb 15, 2018 at 10:36 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 15/02/18 18:55, Tim Harvey wrote: >> The GW54xx has a front-panel microHDMI connector routed to a TDA19971 >> which is connected the the IPU CSI when using IMX6Q. > > I assume that this an

[PATCH v13 2/8] media: v4l-ioctl: fix clearing pad for VIDIOC_DV_TIMIGNS_CAP

2018-02-15 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- 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 7961499..5f3670d 100644 --- a/drivers/media/v4l

[PATCH v13 0/8] TDA1997x HDMI video reciver

2018-02-15 Thread Tim Harvey
el: imx-media Serial : Bus info : Media version: 4.15.0 Hardware revision: 0x (0) Driver version : 4.15.0 Required ioctls: test MEDIA_IOC_DEVICE_INFO: OK Allow for multiple opens: test second /dev/media0 o

[PATCH v13 1/8] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2018-02-15 Thread Tim Harvey
From: Hans Verkuil Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Cc: Randy Dunlap Signed-off-by: Hans Verkuil

[PATCH v13 3/8] media: add digital video decoder entity functions

2018-02-15 Thread Tim Harvey
Add a new media entity function definition for digital TV decoders: MEDIA_ENT_F_DTV_DECODER Signed-off-by: Tim Harvey <thar...@gateworks.com> --- Documentation/media/uapi/mediactl/media-types.rst | 11 +++ include/uapi/linux/media.h| 5 + 2 files chang

[PATCH v13 5/8] media: dt-bindings: Add bindings for TDA1997X

2018-02-15 Thread Tim Harvey
Acked-by: Rob Herring <r...@kernel.org> Acked-by: Sakari Ailus <sakari.ai...@iki.fi> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v6: - replace copyright with SPDX tag - added Rob's ack v5: - added Sakari's ack v4: - move include/dt-bindings/media/tda1997x.h

[PATCH v13 4/8] MAINTAINERS: add entry for NXP TDA1997x driver

2018-02-15 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 845fc25..439b500 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13262,6 +13262,14 @@ T: git git://linuxtv.org/mkrufky/tuners.

[PATCH v13 8/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x

2018-02-15 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - add missing audmux config arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/imx6qdl-gw551

[PATCH v13 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-15 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil <hverk...@xs4all.nl> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v13: - fix coccinelle warnings v12: - fix coccinelle warnings v11: - return -ERANGE from tda1997x_detect_std (Hans) - clean up tda1997x_g_

[PATCH v13 7/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2018-02-15 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - remove leading 0 from unit address - add newline between property list and child node v4: no chan

Re: [PATCH v12 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-15 Thread Tim Harvey
On Thu, Feb 15, 2018 at 9:16 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 15/02/18 17:39, Tim Harvey wrote: >> Add support for the TDA1997x HDMI receivers. >> >> Cc: Hans Verkuil <hverk...@xs4all.nl> >> Signed-off-by: Tim Harvey <thar...@gatework

[PATCH v12 1/8] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2018-02-15 Thread Tim Harvey
From: Hans Verkuil Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Cc: Randy Dunlap Signed-off-by: Hans Verkuil

[PATCH v12 2/8] media: v4l-ioctl: fix clearing pad for VIDIOC_DV_TIMIGNS_CAP

2018-02-15 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- 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 7961499..5f3670d 100644 --- a/drivers/media/v4l

[PATCH v12 8/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x

2018-02-15 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - add missing audmux config arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/imx6qdl-gw551

[PATCH v12 7/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2018-02-15 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - remove leading 0 from unit address - add newline between property list and child node v4: no chan

[PATCH v12 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-15 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil <hverk...@xs4all.nl> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v12: - fix coccinelle warnings v11: - return -ERANGE from tda1997x_detect_std (Hans) - clean up tda1997x_g_input_status (Hans) - show dete

[PATCH v12 4/8] MAINTAINERS: add entry for NXP TDA1997x driver

2018-02-15 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 845fc25..439b500 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13262,6 +13262,14 @@ T: git git://linuxtv.org/mkrufky/tuners.

[PATCH v12 5/8] media: dt-bindings: Add bindings for TDA1997X

2018-02-15 Thread Tim Harvey
Acked-by: Rob Herring <r...@kernel.org> Acked-by: Sakari Ailus <sakari.ai...@iki.fi> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v6: - replace copyright with SPDX tag - added Rob's ack v5: - added Sakari's ack v4: - move include/dt-bindings/media/tda1997x.h

[PATCH v12 3/8] media: add digital video decoder entity functions

2018-02-15 Thread Tim Harvey
Add a new media entity function definition for digital TV decoders: MEDIA_ENT_F_DTV_DECODER Signed-off-by: Tim Harvey <thar...@gateworks.com> --- Documentation/media/uapi/mediactl/media-types.rst | 11 +++ include/uapi/linux/media.h| 5 + 2 files chang

[PATCH v12 0/8] TDA1997x HDMI video reciver

2018-02-15 Thread Tim Harvey
al : Bus info : Media version: 4.15.0 Hardware revision: 0x (0) Driver version : 4.15.0 Required ioctls: test MEDIA_IOC_DEVICE_INFO: OK Allow for multiple opens: test second /dev/media0 open: OK test MEDIA_IO

[PATCH v11 1/8] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2018-02-14 Thread Tim Harvey
From: Hans Verkuil Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Cc: Randy Dunlap Signed-off-by: Hans Verkuil

[PATCH v11 0/8] TDA1997x HDMI video reciver

2018-02-14 Thread Tim Harvey
: Media version: 4.15.0 Hardware revision: 0x (0) Driver version : 4.15.0 Required ioctls: test MEDIA_IOC_DEVICE_INFO: OK Allow for multiple opens: test second /dev/media0 open: OK test MEDIA_IOC_DEVICE_INFO: OK test

[PATCH v11 2/8] media: v4l-ioctl: fix clearing pad for VIDIOC_DV_TIMIGNS_CAP

2018-02-14 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- 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 7961499..5f3670d 100644 --- a/drivers/media/v4l

[PATCH v11 3/8] media: add digital video decoder video interface entity functions

2018-02-14 Thread Tim Harvey
Add a new media entity function definition for digital TV decoders: MEDIA_ENT_F_DTV_DECODER Signed-off-by: Tim Harvey <thar...@gateworks.com> --- Documentation/media/uapi/mediactl/media-types.rst | 11 +++ include/uapi/linux/media.h| 5 + 2 files chang

[PATCH v11 8/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x

2018-02-14 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - add missing audmux config arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/imx6qdl-gw551

[PATCH v11 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-14 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil <hverk...@xs4all.nl> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v11: - return -ERANGE from tda1997x_detect_std (Hans) - clean up tda1997x_g_input_status (Hans) - show detected timings on resolution change if d

[PATCH v11 7/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2018-02-14 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - remove leading 0 from unit address - add newline between property list and child node v4: no chan

[PATCH v11 5/8] media: dt-bindings: Add bindings for TDA1997X

2018-02-14 Thread Tim Harvey
Acked-by: Rob Herring <r...@kernel.org> Acked-by: Sakari Ailus <sakari.ai...@iki.fi> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v6: - replace copyright with SPDX tag - added Rob's ack v5: - added Sakari's ack v4: - move include/dt-bindings/media/tda1997x.h

[PATCH v11 4/8] MAINTAINERS: add entry for NXP TDA1997x driver

2018-02-14 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 845fc25..439b500 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13262,6 +13262,14 @@ T: git git://linuxtv.org/mkrufky/tuners.

Re: [PATCH v10 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-14 Thread Tim Harvey
On Wed, Feb 14, 2018 at 6:08 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > Hi Tim, > > On 12/02/18 23:27, Tim Harvey wrote: >> On Fri, Feb 9, 2018 at 12:08 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: >>> Hi Tim, >>> >>> We're almost there.

Re: [PATCH v10 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-12 Thread Tim Harvey
On Fri, Feb 9, 2018 at 12:08 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > Hi Tim, > > We're almost there. Two more comments: > > On 02/09/2018 07:32 AM, Tim Harvey wrote: >> +static int >> +tda1997x_detect_std(struct tda1997x_state *state, >> +

Re: [PATCH v9 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-09 Thread Tim Harvey
On Fri, Feb 9, 2018 at 12:02 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 02/09/2018 09:00 AM, Tim Harvey wrote: >> On Thu, Feb 8, 2018 at 11:41 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: >>> On 02/09/2018 07:01 AM, Tim Harvey wrote: >>>> >>

Re: [PATCH v9 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-09 Thread Tim Harvey
On Thu, Feb 8, 2018 at 11:41 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 02/09/2018 07:01 AM, Tim Harvey wrote: >> >> I don't see v4l2-subdev.c (or anything) ever calling g_input_status. >> How do I test this? > > Huh, that's a very good question! It is meant

[PATCH v10 0/8] TDA1997x HDMI video reciver

2018-02-08 Thread Tim Harvey
al : Bus info : Media version: 4.15.0 Hardware revision: 0x (0) Driver version : 4.15.0 Required ioctls: test MEDIA_IOC_DEVICE_INFO: OK Allow for multiple opens: test second /dev/media0 open: OK test MEDIA_IO

[PATCH v10 3/8] media: add digital video decoder entity functions

2018-02-08 Thread Tim Harvey
Add a new media entity function definition for digital TV decoders: MEDIA_ENT_F_DTV_DECODER Signed-off-by: Tim Harvey <thar...@gateworks.com> --- Documentation/media/uapi/mediactl/media-types.rst | 11 +++ include/uapi/linux/media.h| 5 + 2 files chang

[PATCH v10 1/8] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2018-02-08 Thread Tim Harvey
From: Hans Verkuil Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Cc: Randy Dunlap Signed-off-by: Hans Verkuil

[PATCH v10 7/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2018-02-08 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - remove leading 0 from unit address - add newline between property list and child node v4: no chan

[PATCH v10 4/8] MAINTAINERS: add entry for NXP TDA1997x driver

2018-02-08 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 845fc25..439b500 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13262,6 +13262,14 @@ T: git git://linuxtv.org/mkrufky/tuners.

[PATCH v10 5/8] media: dt-bindings: Add bindings for TDA1997X

2018-02-08 Thread Tim Harvey
Acked-by: Rob Herring <r...@kernel.org> Acked-by: Sakari Ailus <sakari.ai...@iki.fi> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v6: - replace copyright with SPDX tag - added Rob's ack v5: - added Sakari's ack v4: - move include/dt-bindings/media/tda1997x.h

[PATCH v10 8/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x

2018-02-08 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - add missing audmux config arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/imx6qdl-gw551

[PATCH v10 2/8] media: v4l-ioctl: fix clearing pad for VIDIOC_DV_TIMIGNS_CAP

2018-02-08 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- 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 7961499..5f3670d 100644 --- a/drivers/media/v4l

[PATCH v10 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-08 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil <hverk...@xs4all.nl> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v10: - removed unnecessary check for !timings in get/set/query dv timings (Hans) - dropped pointless s_stream handler (Hans) -

Re: [PATCH v9 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-08 Thread Tim Harvey
at a S_DV_TIMINGS calls updates the format. > > Details below: > > On 02/07/18 23:42, Tim Harvey wrote: >> +struct tda1997x_state { > > ... > >> + struct v4l2_dv_timings timings; >> + const struct v4l2_dv_timings *detected_timings; > > ...

[PATCH v9 0/8] TDA1997x HDMI video reciver

2018-02-07 Thread Tim Harvey
: Media version: 4.15.0 Hardware revision: 0x (0) Driver version : 4.15.0 Compliance test for device /dev/media0: Required ioctls: test MEDIA_IOC_DEVICE_INFO: OK Allow for multiple opens: test second /dev/media0 open: OK t

[PATCH v9 2/8] media: v4l-ioctl: fix clearing pad for VIDIOC_DV_TIMIGNS_CAP

2018-02-07 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- 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 7961499..5f3670d 100644 --- a/drivers/media/v4l

[PATCH v9 1/8] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2018-02-07 Thread Tim Harvey
From: Hans Verkuil Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Cc: Randy Dunlap Signed-off-by: Hans Verkuil

[PATCH v9 6/8] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-07 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil <hverk...@xs4all.nl> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v9: - remove redundant pad bounds check already in v4l2-subdev.c - assign entity function (Hans) - properly assign/check/free ctrl_handler (Ha

[PATCH v9 3/8] media: add digital video decoder entity function

2018-02-07 Thread Tim Harvey
Add a new media entity function definition for digital TV decoders: MEDIA_ENT_F_DTV_DECODER Signed-off-by: Tim Harvey <thar...@gateworks.com> --- Documentation/media/uapi/mediactl/media-types.rst | 11 +++ include/uapi/linux/media.h| 5 + 2 files chang

[PATCH v9 5/8] media: dt-bindings: Add bindings for TDA1997X

2018-02-07 Thread Tim Harvey
Acked-by: Rob Herring <r...@kernel.org> Acked-by: Sakari Ailus <sakari.ai...@iki.fi> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v6: - replace copyright with SPDX tag - added Rob's ack v5: - added Sakari's ack v4: - move include/dt-bindings/media/tda1997x.h

[PATCH v9 8/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x

2018-02-07 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - add missing audmux config arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/imx6qdl-gw551

[PATCH v9 7/8] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2018-02-07 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - remove leading 0 from unit address - add newline between property list and child node v4: no chan

[PATCH v9 4/8] MAINTAINERS: add entry for NXP TDA1997x driver

2018-02-07 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 845fc25..439b500 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13262,6 +13262,14 @@ T: git git://linuxtv.org/mkrufky/tuners.

Re: [PATCH v8 0/7] TDA1997x HDMI video reciver

2018-02-07 Thread Tim Harvey
On Wed, Feb 7, 2018 at 1:09 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 02/07/18 09:22, Hans Verkuil wrote: >> On 02/07/2018 12:29 AM, Tim Harvey wrote: >>> Media Controller ioctls: >>> fail: v4l2-test-media.cpp(141): ent.function == &g

Re: [PATCH v8 0/7] TDA1997x HDMI video reciver

2018-02-06 Thread Tim Harvey
On Tue, Feb 6, 2018 at 1:21 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 02/06/2018 09:27 PM, Tim Harvey wrote: > > > >> v4l2-compliance test results: >> - with the following kernel patches: >>v4l2-subdev: clear reserved fields >> . v4

Re: [PATCH v8 5/7] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-06 Thread Tim Harvey
On Tue, Feb 6, 2018 at 12:38 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 02/06/2018 09:27 PM, Tim Harvey wrote: >> Add support for the TDA1997x HDMI receivers. >> >> Cc: Hans Verkuil <hverk...@xs4all.nl> >> Signed-off-by: Tim Harvey <thar...@g

[PATCH v8 0/7] TDA1997x HDMI video reciver

2018-02-06 Thread Tim Harvey
ted) test VIDIOC_G_FMT: OK (Not Supported) test VIDIOC_TRY_FMT: OK (Not Supported) test VIDIOC_S_FMT: OK (Not Supported) test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported) test Composing: OK (Not Supported) test Scal

[PATCH v8 1/7] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2018-02-06 Thread Tim Harvey
From: Hans Verkuil <hverk...@xs4all.nl> Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> Signed

[PATCH v8 2/7] media: v4l-ioctl: fix pad for VIDIOC_DV_TIMIGNS_CAP

2018-02-06 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- 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 7961499..5f3670d 100644 --- a/drivers/media/v4l

[PATCH v8 4/7] media: dt-bindings: Add bindings for TDA1997X

2018-02-06 Thread Tim Harvey
Acked-by: Rob Herring <r...@kernel.org> Acked-by: Sakari Ailus <sakari.ai...@iki.fi> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v6: - replace copyright with SPDX tag - added Rob's ack v5: - added Sakari's ack v4: - move include/dt-bindings/media/tda1997x.h

[PATCH v8 3/7] MAINTAINERS: add entry for NXP TDA1997x driver

2018-02-06 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 845fc25..439b500 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13262,6 +13262,14 @@ T: git git://linuxtv.org/mkrufky/tuners.

[PATCH v8 7/7] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x

2018-02-06 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - add missing audmux config --- arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/i

[PATCH v8 5/7] media: i2c: Add TDA1997x HDMI receiver driver

2018-02-06 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil <hverk...@xs4all.nl> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v8: - fix available formats for tda19971 bt656 bus width >12 - support full range of input modes based on timings_cap - fix set_format (compl

[PATCH v8 6/7] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2018-02-06 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - remove leading 0 from unit address - add newline between property list and child node v4: no chan

Re: Please help test the new v4l-subdev support in v4l2-compliance

2018-02-06 Thread Tim Harvey
On Tue, Feb 6, 2018 at 11:05 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 02/06/2018 07:48 PM, Tim Harvey wrote: >> On Mon, Feb 5, 2018 at 11:34 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: >>> On 02/06/2018 08:16 AM, Tim Harvey wrote: >>>> On Sat, F

Re: Please help test the new v4l-subdev support in v4l2-compliance

2018-02-06 Thread Tim Harvey
On Mon, Feb 5, 2018 at 11:34 PM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 02/06/2018 08:16 AM, Tim Harvey wrote: >> On Sat, Feb 3, 2018 at 7:56 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: >> >> With regards to the 3 failures: >> >> 1. test V

Re: Please help test the new v4l-subdev support in v4l2-compliance

2018-02-05 Thread Tim Harvey
On Sat, Feb 3, 2018 at 7:56 AM, Hans Verkuil wrote: > Hi Tim, Jacopo, > > I have now finished writing the v4l2-compliance tests for the various > v4l-subdev > ioctls. I managed to test some with the vimc driver, but that doesn't > implement all > ioctls, so I could use some

Re: Please help test the new v4l-subdev support in v4l2-compliance

2018-02-05 Thread Tim Harvey
On Mon, Feb 5, 2018 at 8:27 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 02/05/2018 05:21 PM, Tim Harvey wrote: > > > >> >> I ran a 'make distclean; ./bootstrap.sh && ./configure && make' >> >> last version I built successful

Re: Please help test the new v4l-subdev support in v4l2-compliance

2018-02-05 Thread Tim Harvey
On Sat, Feb 3, 2018 at 7:56 AM, Hans Verkuil wrote: > Hi Tim, Jacopo, > > I have now finished writing the v4l2-compliance tests for the various > v4l-subdev > ioctls. I managed to test some with the vimc driver, but that doesn't > implement all > ioctls, so I could use some

Re: [PATCH v6 4/6] media: i2c: Add TDA1997x HDMI receiver driver

2018-01-31 Thread Tim Harvey
Tim Harvey - Principal Software Engineer Gateworks Corporation - http://www.gateworks.com/ 3026 S. Higuera St. San Luis Obispo CA 93401 805-781-2000 On Wed, Jan 31, 2018 at 5:22 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 01/31/18 08:38, Hans Verkuil wrote: >> On 01/31/201

Re: [PATCH v6 4/6] media: i2c: Add TDA1997x HDMI receiver driver

2018-01-30 Thread Tim Harvey
On Mon, Jan 29, 2018 at 4:00 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 01/25/2018 05:15 PM, Tim Harvey wrote: >>> >>> Hmm. This receiver supports multiple output formats, but you advertise only >>> one. >>> That looks wrong. If nothing e

[PATCH v7 0/6] TDA1997x HDMI video receiver

2018-01-30 Thread Tim Harvey
test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK test VIDIOC_TRY_FMT: OK test VIDIOC_S_FMT: OK test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported)

[PATCH v7 1/6] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2018-01-30 Thread Tim Harvey
From: Hans Verkuil <hverk...@xs4all.nl> Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> Signed

[PATCH v7 3/6] media: dt-bindings: Add bindings for TDA1997X

2018-01-30 Thread Tim Harvey
Acked-by: Rob Herring <r...@kernel.org> Acked-by: Sakari Ailus <sakari.ai...@iki.fi> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v6: - replace copyright with SPDX tag - added Rob's ack v5: - added Sakari's ack v4: - move include/dt-bindings/media/tda1997x.h

[PATCH v7 2/6] MAINTAINERS: add entry for NXP TDA1997x driver

2018-01-30 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index aa71ab52f..502bc97 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13244,6 +13244,14 @@ T: git git://linuxtv.org/mkrufky/tuners.

[PATCH v7 4/6] media: i2c: Add TDA1997x HDMI receiver driver

2018-01-30 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil <hverk...@xs4all.nl> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v7: - fix interlaced mode - support no AVI infoframe (ie DVI) (Hans) - add support for multiple output formats (Hans) v6: - fix return on regul

[PATCH v7 5/6] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2018-01-30 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - remove leading 0 from unit address - add newline between property list and child node v4: no chan

[PATCH v7 6/6] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x

2018-01-30 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v5: - add missing audmux config --- arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-gw551x.dtsi b/arch/arm/boot/dts/imx6qdl-gw551

Re: [PATCH v6 4/6] media: i2c: Add TDA1997x HDMI receiver driver

2018-01-25 Thread Tim Harvey
On Mon, Jan 15, 2018 at 4:56 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 12/28/2017 09:09 PM, Tim Harvey wrote: >> Add support for the TDA1997x HDMI receivers. >> > > This looks good. > > But there is one corner case that isn't handled in this driver: what if

Re: IMX6 interlaced capture

2018-01-04 Thread Tim Harvey
On Thu, Jan 4, 2018 at 10:51 AM, Steve Longerbeam <slongerb...@gmail.com> wrote: > > > On 01/04/2018 09:57 AM, Tim Harvey wrote: >> >> On Tue, Jan 2, 2018 at 6:00 PM, Steve Longerbeam <slongerb...@gmail.com> >> wrote: >>> >>> Hi Tim, >&g

Re: IMX6 interlaced capture

2018-01-04 Thread Tim Harvey
On Tue, Jan 2, 2018 at 6:00 PM, Steve Longerbeam <slongerb...@gmail.com> wrote: > Hi Tim, > > Happy New Year! And pardon the delay. > > > On 12/28/2017 01:56 PM, Tim Harvey wrote: >> >> Steve/Hans, >> >> I'm trying to get interlaced capture worki

IMX6 interlaced capture

2017-12-28 Thread Tim Harvey
Steve/Hans, I'm trying to get interlaced capture working with the TDA1997x driver I've been working on which is connected to an IMX6 CSI. The particular board I'm currently testing on is an IMX6Q which has both a TDA19971 HDMI receiver as well as an ADV7180 analog video decoder. The media-ctl

[PATCH v6 1/6] v4l2-dv-timings: add v4l2_hdmi_colorimetry()

2017-12-28 Thread Tim Harvey
From: Hans Verkuil <hverk...@xs4all.nl> Add the v4l2_hdmi_colorimetry() function so we have a single function that determines the colorspace, YCbCr encoding, quantization range and transfer function from the InfoFrame data. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> Signed

[PATCH v6 0/6] TDA1997x HDMI video receiver

2017-12-28 Thread Tim Harvey
: OK test VIDIOC_S_FMT: OK test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK (Not Supported) test Composing: OK (Not Supported) test Scaling: OK (Not Supported) Codec ioctls: t

[PATCH v6 6/6] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW551x

2017-12-28 Thread Tim Harvey
Cc: Shawn Guo <shawn...@kernel.org> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v6: no changes v5: - add missing audmux config --- arch/arm/boot/dts/imx6qdl-gw551x.dtsi | 138 ++ 1 file changed, 138 insertions(+) diff --git a/arch/arm/boot

[PATCH v6 2/6] MAINTAINERS: add entry for NXP TDA1997x driver

2017-12-28 Thread Tim Harvey
Signed-off-by: Tim Harvey <thar...@gateworks.com> --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index aa71ab52f..502bc97 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13244,6 +13244,14 @@ T: git git://linuxtv.org/mkrufky/tuners.

[PATCH v6 4/6] media: i2c: Add TDA1997x HDMI receiver driver

2017-12-28 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil <hverk...@xs4all.nl> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v6: - fix return on regulator enablei in tda1997x_set_power() (Fabio) - replace copyright with SPDX tag (Philippe) - fix colorspace handlin

[PATCH v6 5/6] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2017-12-28 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Cc: Shawn Guo <shawn...@kernel.org> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v6: no changes v5: - remove leading 0 from unit address (Shawn) -

[PATCH v6 3/6] media: dt-bindings: Add bindings for TDA1997X

2017-12-28 Thread Tim Harvey
Acked-by: Rob Herring <r...@kernel.org> Acked-by: Sakari Ailus <sakari.ai...@iki.fi> Signed-off-by: Tim Harvey <thar...@gateworks.com> --- v6: - replace copyright with SPDX tag (Philippe) - added Rob's ack (Rob) v5: - added Sakari's ack v4: - move include/dt-binding

Re: [PATCH v5 4/6] media: i2c: Add TDA1997x HDMI receiver driver

2017-12-19 Thread Tim Harvey
On Tue, Dec 19, 2017 at 3:12 AM, Hans Verkuil <hverk...@xs4all.nl> wrote: > On 16/12/17 19:00, Tim Harvey wrote: >> + >> +static int tda1997x_fill_format(struct tda1997x_state *state, >> + struct v4l2_mbus_framefmt *format) >> +{ >

Re: [alsa-devel] [PATCH 3/5] media: i2c: Add TDA1997x HDMI receiver driver

2017-12-18 Thread Tim Harvey
On Sat, Dec 16, 2017 at 11:32 AM, Fabio Estevam <feste...@gmail.com> wrote: > Hi Tim, > > On Thu, Nov 9, 2017 at 4:45 PM, Tim Harvey <thar...@gateworks.com> wrote: > >> +static int tda1997x_set_power(struct tda1997x_state *state, bool on

  1   2   >