Re: [PATCH v2 01/10] media: imx-csi: Pass sink pad field to ipu_csi_init_interface

2018-06-01 Thread Philipp Zabel
On Thu, 2018-05-31 at 17:30 -0700, Steve Longerbeam wrote: > The output pad's field type was being passed to ipu_csi_init_interface(), > in order to deal with field type 'alternate' at the sink pad, which > is not understood by ipu_csi_init_interface(). > > Remove that code and pass the sink pad f

[PATCH] gpu: ipu-v3: Allow negative offsets for interlaced scanning

2018-06-01 Thread Philipp Zabel
The IPU also supports interlaced buffers that start with the bottom field. To achieve this, the the base address EBA has to be increased by a stride length and the interlace offset ILO has to be set to the negative stride. Signed-off-by: Philipp Zabel --- drivers/gpu/ipu-v3/ipu-cpmem.c | 8

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

2018-06-01 Thread Philipp Zabel
Hi Krzysztof, On Fri, 2018-06-01 at 12:02 +0200, Krzysztof Hałasa wrote: > Steve Longerbeam writes: > > > I tend to agree, I've found conflicting info out there regarding > > PAL vs. NTSC field order. And I've never liked having to guess > > at input analog standard based on input # lines. I wil

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

2018-05-30 Thread Philipp Zabel
On Wed, May 30, 2018 at 01:56:34PM -0700, Steve Longerbeam wrote: > > > On 05/30/2018 11:46 AM, Krzysztof Hałasa wrote: > > Steve Longerbeam writes: > > > > > > but it should be possible for the user to explicitly request the field > > > > order on CSI output (I can make a patch I guess). > > >

Re: [PATCH 4/6] media: imx-csi: Enable interlaced scan for field type alternate

2018-05-30 Thread Philipp Zabel
On Mon, May 28, 2018 at 09:38:42AM -0700, Steve Longerbeam wrote: > On 05/28/2018 12:59 AM, Ian Arkver wrote: > > If your intent here is to de-interweave the two fields back to two > > sequential fields, I don't believe the IDMAC operation would achieve > > that. It's basically line stride doubling

Re: [PATCH 4/6] media: imx-csi: Enable interlaced scan for field type alternate

2018-05-28 Thread Philipp Zabel
On Fri, 2018-05-25 at 16:53 -0700, Steve Longerbeam wrote: > Interlaced scan, a.k.a. interweave, should be enabled at the CSI IDMAC > output pad if the input field type is 'alternate' (in addition to field > types 'seq-tb' and 'seq-bt'). > > Which brings up whether V4L2_FIELD_HAS_BOTH() macro shou

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

2018-05-24 Thread Philipp Zabel
Hi Steve, On Thu, 2018-05-24 at 14:33 -0700, Steve Longerbeam wrote: > Hi Krzysztof, Philipp, > > And I can confirm that capturing planar 4:2:0 (YU12, YV12, or NV12), > is broken because of the call to ipu_cpmem_skip_odd_chroma_rows(). > YU12 or NV12 images look correct again when commenting out

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

2018-05-24 Thread Philipp Zabel
On Thu, 2018-05-24 at 11:12 -0700, Steve Longerbeam wrote: [...] > > The following is required as well. Now the question is why we can't skip > > writing those odd UV rows. Anyway, with these 2 changes, I get a stable > > NTSC (and probably PAL) interlaced video stream. > > > > The manual says: Re

[PATCH v3] media: video-mux: fix compliance failures

2018-05-24 Thread Philipp Zabel
Limit frame sizes to the [1, 65536] interval, media bus formats to the available list of formats, and initialize pad and try formats. Reported-by: Rui Miguel Silva Signed-off-by: Philipp Zabel Tested-by: Rui Miguel Silva Acked-by: Sakari Ailus --- Changes since v2: - Make loop variables

Re: [PATCH v2] media: video-mux: fix compliance failures

2018-05-24 Thread Philipp Zabel
Hi Sakari, thank you for the review comments. On Thu, 2018-05-24 at 14:38 +0300, Sakari Ailus wrote: > Hi Philipp, > > Thanks for the patch. > > On Wed, May 23, 2018 at 11:24:23AM +0200, Philipp Zabel wrote: > > Limit frame sizes to the [1, 65536] interval, media b

Re: [PATCH 2/2] media: platform: add driver for TI SCAN921226H video deserializer

2018-05-23 Thread Philipp Zabel
Hi Jan, Hans just pointed out a few issues in my video-mux compliance patch [1] that also apply to this driver, see below. [1] v1: https://patchwork.linuxtv.org/patch/49827/ v2: https://patchwork.linuxtv.org/patch/49839/ On Fri, 2018-05-04 at 14:49 +0200, Jan Luebbe wrote: [...] > diff --git

Re: [PATCH] media: video-mux: fix compliance failures

2018-05-23 Thread Philipp Zabel
On Wed, 2018-05-23 at 10:53 +0200, Hans Verkuil wrote: > On 23/05/18 10:47, Philipp Zabel wrote: > > Hi Hans, > > > > thank you for the review comments. > > > > On Tue, 2018-05-22 at 19:47 +0200, Hans Verkuil wrote: > > > On 22/05/18 18:29, Philipp Zab

[PATCH v2] media: video-mux: fix compliance failures

2018-05-23 Thread Philipp Zabel
Limit frame sizes to the [1, 65536] interval, media bus formats to the available list of formats, and initialize pad and try formats. Reported-by: Rui Miguel Silva Signed-off-by: Philipp Zabel --- Changes since v1: - Limit to [1, 65536] instead of [1, UINT_MAX - 1] - Add missing break in

Re: [PATCH] media: video-mux: fix compliance failures

2018-05-23 Thread Philipp Zabel
Hi Hans, thank you for the review comments. On Tue, 2018-05-22 at 19:47 +0200, Hans Verkuil wrote: > On 22/05/18 18:29, Philipp Zabel wrote: > > Limit frame sizes to the [1, UINT_MAX-1] interval, media bus formats to > > the available list of formats, and initialize pad

[PATCH] media: video-mux: fix compliance failures

2018-05-22 Thread Philipp Zabel
Limit frame sizes to the [1, UINT_MAX-1] interval, media bus formats to the available list of formats, and initialize pad and try formats. Reported-by: Rui Miguel Silva Signed-off-by: Philipp Zabel --- drivers/media/platform/video-mux.c | 110 + 1 file changed, 110

Re: [PATCH] gpu: ipu-v3: Fix BT1120 interlaced CCIR codes

2018-05-22 Thread Philipp Zabel
Hi Marek, On Fri, 2018-05-18 at 18:21 +0200, Marek Vasut wrote: > On 05/18/2018 05:51 PM, Philipp Zabel wrote: > > Hi Marek, > > > > On Sat, 2018-04-07 at 15:04 +0200, Marek Vasut wrote: > > > The BT1120 interlaced CCIR codes are the same as BT656 ones > > &g

[PATCH] media: uvcvideo: Fix driver reference counting

2018-05-21 Thread Philipp Zabel
probe error path. This also allows to remove the temporary additional reference in uvc_unregister_video. Fixes: 9d15cd958c17 ("media: uvcvideo: Convert from using an atomic variable to a reference count") Signed-off-by: Philipp Zabel --- drivers/media/usb/uvc/uvc_driver.c | 11 ++---

Re: [PATCH v5 06/12] media: dt-bindings: add bindings for i.MX7 media driver

2018-05-18 Thread Philipp Zabel
On Fri, 2018-05-18 at 10:28 +0100, Rui Miguel Silva wrote: > Add bindings documentation for i.MX7 media drivers. > > Signed-off-by: Rui Miguel Silva > --- > .../devicetree/bindings/media/imx7.txt| 125 ++ > 1 file changed, 125 insertions(+) > create mode 100644 Documenta

Re: [PATCH] gpu: ipu-v3: Fix BT1120 interlaced CCIR codes

2018-05-18 Thread Philipp Zabel
erbeam > Cc: Philipp Zabel > --- > drivers/gpu/ipu-v3/ipu-csi.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/ipu-v3/ipu-csi.c b/drivers/gpu/ipu-v3/ipu-csi.c > index caa05b0702e1..301a729581ce 100644 > --- a/drivers/gpu/ipu-

Re: [PATCH v3 1/2] media: imx: capture: refactor enum_/try_fmt

2018-05-18 Thread Philipp Zabel
es handling the different configurations for RGB565 between > parallel and MIPI CSI-2, as we don't need to check the details of the > format anymore. > > Signed-off-by: Jan Luebbe Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v3 2/2] media: imx: add support for RGB565_2X8 on parallel bus

2018-05-18 Thread Philipp Zabel
is used for generic formats on the parallel bus. > > Based on the selected format and bus, we then update the width to > account for the multiple cycles per pixel. > > Signed-off-by: Jan Luebbe > Signed-off-by: Steve Longerbeam I only have a small suggestion below, either wa

Re: [PATCH v5 02/12] media: staging/imx7: add imx7 CSI subdev driver

2018-05-18 Thread Philipp Zabel
On Fri, 2018-05-18 at 10:27 +0100, Rui Miguel Silva wrote: > This add the media entity subdevice and control driver for the i.MX7 > CMOS Sensor Interface. > > Signed-off-by: Rui Miguel Silva > --- [...] > +static int imx7_csi_probe(struct platform_device *pdev) > +{ > + struct device *dev = &

Re: [PATCH v5 01/12] media: staging/imx: refactor imx media device probe

2018-05-18 Thread Philipp Zabel
Hi Rui, thank you for refactoring, I think this is much better than having the pretend capture-subsytem device in the DT. I would like to get rid of the ipu_present flag, if it can be done reasonably. For details, see below. On Fri, 2018-05-18 at 10:27 +0100, Rui Miguel Silva wrote: > Refactor a

Re: [PATCH v4 00/14] media: imx: Switch to subdev notifiers

2018-05-14 Thread Philipp Zabel
> The remaining patches update the subdev drivers to register a > subdev notifier with endpoint parsing, and the changes to imx-media > to support that. > > Signed-off-by: Steve Longerbeam > Acked-by: Philipp Zabel Patches 07-14 (video-mux and the imx patches) are Reviewed-by: Philipp Zabel The series is Tested-by: Philipp Zabel on i.MX6 with Toshiba TC358743 connected via MIPI CSI-2. regards Philipp

Re: [PATCH v3 09/14] ARM: dts: imx7s: add multiplexer controls

2018-05-09 Thread Philipp Zabel
ible = "mmio-mux"; > + #mux-control-cells = <1>; > + mux-reg-masks = <0x14 0x0010>; > + }; > }; > > ocotp: ocotp-ctrl@3035 { Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH v3 10/14] ARM: dts: imx7: Add video mux, csi and mipi_csi and connections

2018-05-09 Thread Philipp Zabel
On Mon, 2018-05-07 at 17:21 +0100, Rui Miguel Silva wrote: > This patch adds the device tree nodes for csi, video multiplexer and mipi-csi > besides the graph connecting the necessary endpoints to make the media capture > entities to work in imx7 Warp board. > > Also add the pin control related wi

Re: [PATCH v3 07/14] media: dt-bindings: add bindings for i.MX7 media driver

2018-05-08 Thread Philipp Zabel
On Mon, 2018-05-07 at 17:21 +0100, Rui Miguel Silva wrote: > Add bindings documentation for i.MX7 media drivers. > > Signed-off-by: Rui Miguel Silva > --- > .../devicetree/bindings/media/imx7.txt| 152 ++ > 1 file changed, 152 insertions(+) > create mode 100644 Documenta

Re: [PATCH v2 0/2] media: imx: add capture support for RGB565_2X8 on parallel bus

2018-05-08 Thread Philipp Zabel
y pass on the format in the second patch. > > Changes since v1: > - fixed problems reported the kbuild test robot > - added helper functions as suggested by Steve Longerbeam > (is_parallel_bus and requires_passthrough) > - removed passthough format check in csi_link_valida

Re: [PATCH] media: imx-csi: fix burst size for 16 bit

2018-05-03 Thread Philipp Zabel
quot;media: imx- csi: fix burst size"), but for 16-bit formats. Acked-by: Philipp Zabel regards Philipp

[PATCH] media: imx: add 16-bit grayscale support

2018-05-03 Thread Philipp Zabel
tured from sensors that provide MEDIA_BUS_FMT_Y10_1X10 or MEDIA_BUS_FMT_Y12_1X12 data. Cc: Jan Luebbe Signed-off-by: Philipp Zabel --- drivers/staging/media/imx/imx-media-csi.c | 1 + drivers/staging/media/imx/imx-media-utils.c | 9 + 2 files changed, 10 insertions(+) diff --git a/drive

[PATCH v2 1/3] media: coda: reuse coda_s_fmt_vid_cap to propagate format in coda_s_fmt_vid_out

2018-04-27 Thread Philipp Zabel
Instead of duplicating the same code, call into coda_s_fmt_vid_out to propagate the output format to the capture queue. Signed-off-by: Philipp Zabel --- Changes since v1 [1]: - split out into a separate patch [1] https://patchwork.linuxtv.org/patch/48266/ This is what coda_s_fmt_vid_cap

[PATCH v2 3/3] media: coda: set colorimetry on coded queue

2018-04-27 Thread Philipp Zabel
-by: Philipp Zabel --- Added patch since v1 [1]: - remove automatic format propagation on S_FMT(OUT) for encoders - adding S_FMT(CAP) propagation from capture to output queue for encoders is left for a later time, this isn't even documented yet. [1] https://patchwork.linuxtv.org/patch/

[PATCH v2 2/3] media: coda: do not try to propagate format if capture queue busy

2018-04-27 Thread Philipp Zabel
The driver helpfully resets the capture queue format and selection rectangle whenever output format is changed. This only works while the capture queue is not busy. Signed-off-by: Philipp Zabel --- Changes since v1 [1]: - split out into a separate patch [1] https://patchwork.linuxtv.org/patch

Re: [DE] Re: [CN] Re: [DE] Re: coda: i.MX6 decoding performance issues for multi-streaming

2018-04-24 Thread Philipp Zabel
Hi Javier, On Mon, 2018-04-23 at 11:29 +0200, Javier Martin wrote: > Sorry for resurrecting this thread but I'm still quite interested on > making this scenario work: > > > OK, I've performed some tests with several resolutions and gop sizes, > here is the table with the results: > > > > A

Re: [PATCH v2 06/15] media: staging/imx: add imx7 capture subsystem

2018-04-23 Thread Philipp Zabel
On Mon, 2018-04-23 at 14:47 +0100, Rui Miguel Silva wrote: > Add imx7 capture subsystem to imx-media core to allow the use some of the > existing modules for i.MX5/6 with i.MX7 SoC. > > Since i.MX7 does not have an IPU unset the ipu_present flag to differentiate > some runtime behaviors. > > Sign

Re: [PATCH v2 11/15] ARM: dts: imx7: Add video mux, csi and mipi_csi and connections

2018-04-23 Thread Philipp Zabel
On Mon, 2018-04-23 at 14:47 +0100, Rui Miguel Silva wrote: > This patch adds the device tree nodes for csi, video multiplexer and mipi-csi > besides the graph connecting the necessary endpoints to make the media capture > entities to work in imx7 Warp board. > > Also add the pin control related wi

Re: [PATCH v2] media: imx-media-csi: Fix inconsistent IS_ERR and PTR_ERR

2018-04-23 Thread Philipp Zabel
t; > This issue was detected with the help of Coccinelle. > > > > Fixes: 52e17089d185 ("media: imx: Don't initialize vars that won't be used") > > Signed-off-by: Gustavo A. R. Silva > > Signed-off-by: Fabio Estevam > > Acked-by: Philipp Zabel Reviewed-by: Philipp Zabel Tested-by: Philipp Zabel regards Philipp

Re: [PATCH v2 08/10] dt-bindings: media: Document bindings for the Sunxi-Cedrus VPU driver

2018-04-19 Thread Philipp Zabel
Hi Paul, On Thu, 2018-04-19 at 17:45 +0200, Paul Kocialkowski wrote: > This adds a device-tree binding document that specifies the properties > used by the Sunxi-Cedurs VPU driver, as well as examples. > > Signed-off-by: Paul Kocialkowski > --- > .../devicetree/bindings/media/sunxi-cedrus.txt

Re: [PATCH 07/15] media: staging/imx: add 10 bit bayer support

2018-04-19 Thread Philipp Zabel
On Thu, 2018-04-19 at 11:18 +0100, Rui Miguel Silva wrote: > Some sensors can only output 10 bit bayer formats, like the OV2680. Add > support > for that in imx-media. > > Signed-off-by: Rui Miguel Silva > --- > drivers/staging/media/imx/imx-media-utils.c | 24 + > 1 file ch

[PATCH v4l-utils] media-ctl: add --get-dv option

2018-04-18 Thread Philipp Zabel
Printing the queried and current DV timings is already supported as part of the --print-topology option. Add a --get-dv option to print DV timings of an individual entitiy, to complement --set-dv. Signed-off-by: Philipp Zabel --- utils/media-ctl/media-ctl.c | 12 utils/media-ctl

Re: imx-media: MT9P031 Capture issues on IMX6

2018-04-17 Thread Philipp Zabel
On Tue, 2018-04-17 at 11:32 +0200, Ibtsam Ul-Haq wrote: > On Tue, Apr 17, 2018 at 10:34 AM, Philipp Zabel > wrote: > > Hi Ibtsam, > > > > On Tue, 2018-04-17 at 09:26 +0200, Ibtsam Ul-Haq wrote: > > > On Mon, Apr 16, 2018 at 11:30 AM, Philipp Zabel > > &g

Re: imx-media: MT9P031 Capture issues on IMX6

2018-04-17 Thread Philipp Zabel
Hi Ibtsam, On Tue, 2018-04-17 at 09:26 +0200, Ibtsam Ul-Haq wrote: > On Mon, Apr 16, 2018 at 11:30 AM, Philipp Zabel > wrote: > > On Mon, 2018-04-16 at 09:54 +0200, Ibtsam Ul-Haq wrote: > > [...] > > > This indeed looks the case. But then, is 'GR16' the Fo

Re: [PATCH v3 1/2] media: imx-media-csi: Fix inconsistent IS_ERR and PTR_ERR

2018-04-16 Thread Philipp Zabel
h the help of Coccinelle. > > Fixes: 52e17089d185 ("media: imx: Don't initialize vars that won't be used") > Signed-off-by: Gustavo A. R. Silva > Signed-off-by: Fabio Estevam > Acked-by: Philipp Zabel > --- > Changes since v2: > - None > Changes since v1: &g

Re: OV5640 with 12MHz xclk

2018-04-16 Thread Philipp Zabel
On Sun, 2018-04-15 at 18:39 -0700, Samuel Bobrowicz wrote: > Can anyone verify if the OV5640 driver works with input clocks other > than the typical 24MHz? The driver suggests anything from 6MHz-24MHz > is acceptable, but I am running into issues while bringing up a module > that uses a 12MHz oscil

Re: imx-media: MT9P031 Capture issues on IMX6

2018-04-16 Thread Philipp Zabel
On Mon, 2018-04-16 at 09:54 +0200, Ibtsam Ul-Haq wrote: [...] > This indeed looks the case. But then, is 'GR16' the FourCC for 'SGRBG16'? Yes, see Documentation/media/uapi/v4l/pixfmt-srggb16.rst: https://linuxtv.org/downloads/v4l-dvb-apis-new/uapi/v4l/pixfmt-srggb16.html > To be honest, I had not

Re: imx-media: MT9P031 Capture issues on IMX6

2018-04-13 Thread Philipp Zabel
Hi Ibtsam, On Thu, 2018-04-12 at 16:00 +0200, Ibtsam Ul-Haq wrote: > Greetings everyone, > I am using Linux 4.14.31 on an IMX6 platform, with an MT9P031 sensor > attached to the ipu1_csi0 (parallel). > My Gstreamer version is 1.14.0 and v4l-utils version is 1.14.2. > The problem is that I am unabl

Re: [PATCH] media: imx: Skip every second frame in VDIC DIRECT mode

2018-04-12 Thread Philipp Zabel
On Sat, 2018-04-07 at 15:04 +0200, Marek Vasut wrote: > In VDIC direct mode, the VDIC applies combing filter during and > doubles the framerate, that is, after the first two half-frames > are received and the first frame is emitted by the VDIC, every > subsequent half-frame is patched into the resu

Re: [PATCH] media: coda: do not try to propagate format if capture queue busy

2018-04-06 Thread Philipp Zabel
Hi Tomasz, On Tue, 2018-04-03 at 10:13 +, Tomasz Figa wrote: > Hi Philipp, > > On Thu, Mar 29, 2018 at 2:12 AM Philipp Zabel > wrote: > > > The driver helpfully resets the capture queue format and selection > > rectangle whenever output format is changed. Th

Re: [PATCH] media: coda: do not try to propagate format if capture queue busy

2018-04-06 Thread Philipp Zabel
Hi Ian, On Fri, 2018-04-06 at 09:40 +0100, Ian Arkver wrote: > > - ret = coda_try_fmt_vid_cap(file, priv, &f_cap); > > - if (ret) > > - return ret; > > - > > - q_data_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); > > - r.left = 0; > > - r.top = 0; > > - r.width = q_data

Re: IMX6 Media dev node not created

2018-04-05 Thread Philipp Zabel
Hi Ibtsam, On Thu, 2018-04-05 at 16:24 +0200, Ibtsam Ul-Haq wrote: > Hi Fabio, > > Thanks for your reply. > > On Thu, Apr 5, 2018 at 3:31 PM, Fabio Estevam wrote: > > Hi Ibtsam, > > > > [Adding Steve and Philipp in case they can provide some suggestions] > > > > On Thu, Apr 5, 2018 at 9:30 AM

Re: [PATCH] media: platform: video-mux: propagate format from sink to source

2018-04-04 Thread Philipp Zabel
t; > > + /* Propagate the format from an active sink to source */ > + if ((pad->flags & MEDIA_PAD_FL_SINK) && (pad->index == vmux->active)) The flags check could be removed. It is not necessary since vmux->active is never set to the source pad index. > + *source_mbusformat = sdformat->format; > + > mutex_unlock(&vmux->lock); > > return 0; Reviewed-by: Philipp Zabel regards Philipp

[PATCH] media: coda: do not try to propagate format if capture queue busy

2018-03-28 Thread Philipp Zabel
The driver helpfully resets the capture queue format and selection rectangle whenever output format is changed. This only works while the capture queue is not busy. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 28 +++- 1 file changed, 15

Re: [CN] Re: [DE] Re: coda: i.MX6 decoding performance issues for multi-streaming

2018-03-14 Thread Philipp Zabel
Hi Javier, On Wed, 2018-03-14 at 15:35 +0100, Javier Martin wrote: [...] > The encoder is running on a different system with an older 4.1.0 kernel. > Altough the firmware version in the code is 3.1.1 as well. > > Do you think I should try updating the system in the encoder to kernel > 4.15 too

Re: [DE] Re: coda: i.MX6 decoding performance issues for multi-streaming

2018-03-14 Thread Philipp Zabel
On Wed, 2018-03-14 at 13:05 +0100, Javier Martin wrote: > Sorry everyone about my previous e-mail with all the HTML garbage. Here > is the plain text answer instead. > > Hi Philipp, > > thanks for your answer. > > On 13/03/18 12:20, Philipp Zabel wrote: > > Hi

Re: coda: i.MX6 decoding performance issues for multi-streaming

2018-03-13 Thread Philipp Zabel
Hi Javier, On Mon, 2018-03-12 at 17:54 +0100, Javier Martin wrote: > Hi, > we have an i.MX6 Solo based board running the latest mainline kernel > (4.15.3). > > As part of our development we were measuring the decoding performance of > the i.MX6 coda chip. > > For that purpose we are feeding th

Re: [PATCH] staging/imx: Fix inconsistent IS_ERR and PTR_ERR

2018-03-02 Thread Philipp Zabel
Hi Fabio, On Thu, 2018-03-01 at 13:43 -0300, Fabio Estevam wrote: > On Thu, Mar 1, 2018 at 1:27 PM, Philipp Zabel wrote: > > > Oh, this only works for csi ports that have pinctrl in their csi port > > node, like: > > > > &ipu1_csi0 { > > pinctrl-

Re: [PATCH] staging/imx: Fix inconsistent IS_ERR and PTR_ERR

2018-03-01 Thread Philipp Zabel
On Thu, 2018-03-01 at 13:02 -0300, Fabio Estevam wrote: > On Thu, Mar 1, 2018 at 1:09 AM, Gustavo A. R. Silva > wrote: > > Fix inconsistent IS_ERR and PTR_ERR in imx_csi_probe. > > The proper pointer to be passed as argument is pinctrl > > instead of priv->vdev. > > > > This issue was detected wi

Re: [PATCH] staging/imx: Fix inconsistent IS_ERR and PTR_ERR

2018-03-01 Thread Philipp Zabel
gt;dev->of_node = pdata->of_node; > pinctrl = devm_pinctrl_get_select_default(priv->dev); > if (IS_ERR(pinctrl)) { > - ret = PTR_ERR(priv->vdev); > + ret = PTR_ERR(pinctrl); > goto free; > } Thanks, Acked-by: Philipp Zabel regards Philipp

Re: [PATCH 01/13] media: v4l2-fwnode: Let parse_endpoint callback decide if no remote is error

2018-02-27 Thread Philipp Zabel
Hi Sakari, On Fri, 2018-02-23 at 14:47 +0200, Sakari Ailus wrote: > Hi Philipp, > > On Fri, Feb 23, 2018 at 12:16:17PM +0100, Philipp Zabel wrote: > > Hi Laurent, > > > > On Fri, 2018-02-23 at 12:05 +0200, Laurent Pinchart wrote: > > > Hi Philipp, > >

Re: [PATCH 3/3] media: imx: Don't initialize vars that won't be used

2018-02-27 Thread Philipp Zabel
hat's missing there > is an error handling code, in case it fails. Add it. > > Signed-off-by: Mauro Carvalho Chehab Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH] media: imx: add 8-bit grayscale support

2018-02-27 Thread Philipp Zabel
Hi Hans, On Thu, 2018-02-15 at 15:43 +0100, Hans Verkuil wrote: > Hi Philipp, > > Can you let me know if/when I can merge this? It looks good, so when the other > patch is merged, then this can be merged as well. Thank you for the reminder, the required patch is now merged into v4.16-rc3, commit

Re: [PATCH v8 1/2] dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI)

2018-02-27 Thread Philipp Zabel
On Tue, 2018-02-27 at 10:07 +0800, Yong Deng wrote: > Add binding documentation for Allwinner V3s CSI. > > Acked-by: Maxime Ripard > Acked-by: Sakari Ailus > Reviewed-by: Rob Herring > Signed-off-by: Yong Deng > --- > .../devicetree/bindings/media/sun6i-csi.txt| 59 >

Re: [PATCH 01/13] media: v4l2-fwnode: Let parse_endpoint callback decide if no remote is error

2018-02-23 Thread Philipp Zabel
Hi Laurent, On Fri, 2018-02-23 at 12:05 +0200, Laurent Pinchart wrote: > Hi Philipp, > > On Friday, 23 February 2018 11:56:52 EET Philipp Zabel wrote: > > On Fri, 2018-02-23 at 11:29 +0200, Laurent Pinchart wrote: > > > On Thursday, 22 February 2018 03:39:37 EE

Re: [PATCH 01/13] media: v4l2-fwnode: Let parse_endpoint callback decide if no remote is error

2018-02-23 Thread Philipp Zabel
Hi Laurent, On Fri, 2018-02-23 at 11:29 +0200, Laurent Pinchart wrote: > Hi Steve, > > Thank you for the patch. > > On Thursday, 22 February 2018 03:39:37 EET Steve Longerbeam wrote: > > For some subdevices, a fwnode endpoint that has no connection to a remote > > endpoint may not be an error. L

Re: [PATCH v2] media: staging/imx: Implement init_cfg subdev pad op

2018-02-21 Thread Philipp Zabel
*fmt, > bool ic_route); > diff --git a/drivers/staging/media/imx/imx6-mipi-csi2.c > b/drivers/staging/media/imx/imx6-mipi-csi2.c > index 477d191..f74c610 100644 > --- a/drivers/staging/media/imx/imx6-mipi-csi2.c > +++ b/drivers/staging/media/imx/imx6-mipi-csi2.c > @@ -531,6 +531,7 @@ static const struct v4l2_subdev_video_ops csi2_video_ops > = { > }; > > static const struct v4l2_subdev_pad_ops csi2_pad_ops = { > + .init_cfg = imx_media_init_cfg, > .get_fmt = csi2_get_fmt, > .set_fmt = csi2_set_fmt, > }; Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH] media: imx: mipi csi-2: Fix set_fmt try

2018-02-21 Thread Philipp Zabel
;format_mbus; > > - if (sdformat->which == V4L2_SUBDEV_FORMAT_TRY) > - cfg->try_fmt = sdformat->format; > - else > - csi2->format_mbus = sdformat->format; > + fmt = __csi2_get_fmt(csi2, cfg, sdformat->pad, sdformat->which); > + > + *fmt = sdformat->format; > out: > mutex_unlock(&csi2->lock); > return ret; Reviewed-by: Philipp Zabel regards Philipp

Re: [PATCH] staging: imx-media-vdic: fix inconsistent IS_ERR and PTR_ERR

2018-02-19 Thread Philipp Zabel
Hi Gustavo, On Wed, 2018-02-14 at 14:57 -0600, Gustavo A. R. Silva wrote: > Hi all, > > I was just wondering about the status of this patch. It is en route as commit dcd71a9292b1 ("staging: imx-media-vdic: fix inconsistent IS_ERR and PTR_ERR") in Hans' for-v4.17a branch: git://linuxtv.org/hver

Re: [PATCH] media: imx.rst: Fix formatting errors

2018-02-19 Thread Philipp Zabel
On Fri, 2018-02-16 at 17:54 -0800, Steve Longerbeam wrote: > Fix a few formatting errors. > > Signed-off-by: Steve Longerbeam Reviewed-by: Philipp Zabel regards Philipp

[PATCH] media: imx: csi: fix enum_mbus_code for unknown mbus format codes

2018-02-08 Thread Philipp Zabel
If no imx_media_pixfmt is found for a given mbus format code, we shouldn't crash. Return -EINVAL for any index. Signed-off-by: Philipp Zabel --- drivers/staging/media/imx/imx-media-csi.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/media/imx/imx-media-csi.c b/dr

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

2018-02-08 Thread Philipp Zabel
On Wed, 2018-02-07 at 23:19 +0100, Hans Verkuil wrote: > On 02/07/2018 11:05 PM, Tim Harvey wrote: > > On Wed, Feb 7, 2018 at 1:09 AM, Hans Verkuil wrote: > > > On 02/07/18 09:22, Hans Verkuil wrote: > > > > On 02/07/2018 12:29 AM, Tim Harvey wrote: > > > > > Media Controller ioctls: > > > > >

[PATCH] media: imx: add 8-bit grayscale support

2018-01-22 Thread Philipp Zabel
The IPUv3 code has 8-bit grayscale capture support. Enable imx-media to use it. Signed-off-by: Philipp Zabel --- This patch depends on https://patchwork.kernel.org/patch/10178777/ to work, otherwise STREAMON will fail with -EINVAL. --- drivers/staging/media/imx/imx-media-csi.c | 1 + drivers

Re: [RFT PATCH v3 4/6] uvcvideo: queue: Simplify spin-lock usage

2018-01-17 Thread Philipp Zabel
On Tue, 2018-01-16 at 19:23 +0200, Laurent Pinchart wrote: > Hi Kieran, > > Thank you for the patch. > > On Friday, 12 January 2018 11:19:26 EET Kieran Bingham wrote: > > Both uvc_start_streaming(), and uvc_stop_streaming() are called from > > userspace context. As such, they do not need to save

Re: [RFT PATCH v3 0/6] Asynchronous UVC

2018-01-15 Thread Philipp Zabel
appreciate if > anyone can test this on a range of USB cameras. FWIW, Tested-by: Philipp Zabel with a Lite-On internal Laptop Webcam, Logitech C910 (USB2 isoc), Oculus Sensor (USB3 isoc), and Microsoft HoloLens Sensors (USB3 bulk). regards Philipp

Re: MT9M131 on I.MX6DL CSI color issue

2018-01-15 Thread Philipp Zabel
Hi Florian, On Fri, 2018-01-12 at 01:16 +0100, Florian Boor wrote: > Hello all, > > I have a Phytec VM-009 camera based on MT9M131 connected to CSI0 of a I.MX6DL > based board running mainline 4.13.0 + custom devicetree. Its using the > parallel > interface, 8 bit bus width on pins 12 to 19. >

Re: [PATCH] media: uvcvideo: support multiple frame descriptors with the same dimensions

2018-01-05 Thread Philipp Zabel
Hi Laurent, On Fri, 2018-01-05 at 15:30 +0200, Laurent Pinchart wrote: > Hi Philipp, > > Thank you for the patch. > > On Friday, 5 January 2018 00:51:29 EET Philipp Zabel wrote: > > The Microsoft HoloLens Sensors device has two separate frame descriptors > > with the

[PATCH] media: uvcvideo: support multiple frame descriptors with the same dimensions

2018-01-04 Thread Philipp Zabel
Windows Mixed Reality headset. Signed-off-by: Philipp Zabel --- Changes since v1 [1]: - Break out of frame size loop if maxd == 0 in uvc_v4l2_set_streamparm. - Moved d and tmp variables in uvc_v4l2_set_streamparm into loop, renamed tmp variable to tmp_ival. - Changed i loop variables to unsigned int

[PATCH] media: coda: bump maximum number of internal framebuffers to 19

2018-01-04 Thread Philipp Zabel
. Lift the current maximum of 17 internal framebuffers to allow playback of high profile streams that require more than 14 reference frames. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media

Re: [PATCH v2 2/2] media: coda: Add i.MX51 (CodaHx4) support

2018-01-03 Thread Philipp Zabel
rong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Philipp-Zabel/media-dt-bindings-coda-Add-compatible-for-CodaHx4-on-i-MX51/20171221-050217 > base: git://linuxtv.org/media_tree.git master > config: x

Re: [PATCH v2 5/8] media: v4l2-mediabus: convert flags to enums and document them

2017-12-19 Thread Philipp Zabel
xed, but, as both drivers > are obsolete and in the process of cleanings, I opted to just > keep the behavior, using an unsigned int inside those two > drivers. > > Acked-by: Hans Verkuil > Signed-off-by: Mauro Carvalho Chehab For imx-media, Acked-by: Philipp Zabel thanks Philipp

Re: [PATCH] media: imx: allow to build with COMPILE_TEST

2017-12-19 Thread Philipp Zabel
On Tue, 2017-12-19 at 12:42 +0100, Philipp Zabel wrote: > Allow building this driver for other platforms under COMPILE_TEST. > > Suggested-by: Mauro Carvalho Chehab > Signed-off-by: Philipp Zabel > --- > drivers/staging/media/imx/Kconfig | 3 ++- > 1 file changed, 2 inse

[PATCH] media: imx: allow to build with COMPILE_TEST

2017-12-19 Thread Philipp Zabel
Allow building this driver for other platforms under COMPILE_TEST. Suggested-by: Mauro Carvalho Chehab Signed-off-by: Philipp Zabel --- drivers/staging/media/imx/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/imx/Kconfig b/drivers/staging

Re: iMX6q/coda encoder failures with ffmpeg/gstreamer m2m encoders

2017-12-19 Thread Philipp Zabel
Hi Neil, On Tue, 2017-11-21 at 10:50 +0100, Neil Armstrong wrote: > Hi, > > I'm trying to make the coda960 h.264 encoder work on an i.MX6q SoC with Linux > 4.14 and the 3.1.1 firmware. > > # dmesg | grep coda > [4.846574] coda 204.vpu: Direct firmware load for vpu_fw_imx6q.bin > failed

Re: [PATCH 5/8] media: v4l2-mediabus: convert flags to enums and document them

2017-12-19 Thread Philipp Zabel
Hi Mauro, On Mon, 2017-12-18 at 17:53 -0200, Mauro Carvalho Chehab wrote: > There is a mess with media bus flags: there are two sets of > flags, one used by parallel and ITU-R BT.656 outputs, > and another one for CSI2. > > Depending on the type, the same bit has different meanings. > > That's v

Re: [PATCH 3/8] media: v4l2-async: simplify v4l2_async_subdev structure

2017-12-19 Thread Philipp Zabel
Nawrocki > Signed-off-by: Mauro Carvalho Chehab Thanks, this does improve readability in the drivers. For imx-media, Acked-by: Philipp Zabel regards Philipp > --- > drivers/media/platform/am437x/am437x-vpfe.c| 6 +++--- > drivers/media/platform/atmel/atmel-isc.c |

Re: [PATCH] [media] coda/imx-vdoa: Remove irq member from vdoa_data struct

2017-12-19 Thread Philipp Zabel
On Mon, 2017-12-18 at 22:58 -0200, Fabio Estevam wrote: > From: Fabio Estevam > > The 'irq' member of the vdoa_data struct is only used inside probe, > so there is no need for it. Use a local variable 'ret' instead. > > Signed-off-by: Fabio Estevam Review

[PATCH] media: uvcvideo: support multiple frame descriptors with the same dimensions

2017-12-19 Thread Philipp Zabel
Windows Mixed Reality headset. Signed-off-by: Philipp Zabel --- drivers/media/usb/uvc/uvc_v4l2.c | 66 ++-- 1 file changed, 50 insertions(+), 16 deletions(-) diff --git a/drivers/media/usb/uvc/uvc_v4l2.c b/drivers/media/usb/uvc/uvc_v4l2.c index 3e7e283a44a8

[PATCH v2 2/2] media: coda: Add i.MX51 (CodaHx4) support

2017-12-18 Thread Philipp Zabel
Add support for the CodaHx4 VPU used on i.MX51. Decoding h.264, MPEG-4, and MPEG-2 video works, as well as encoding h.264. MPEG-4 encoding is not enabled, it currently produces visual artifacts. Signed-off-by: Philipp Zabel --- No changes since v1 [1]. [1] https://patchwork.linuxtv.org/patch

[PATCH v2 1/2] media: dt-bindings: coda: Add compatible for CodaHx4 on i.MX51

2017-12-18 Thread Philipp Zabel
Add a compatible for the CodaHx4 VPU used on i.MX51. Signed-off-by: Philipp Zabel Reviewed-by: Rob Herring --- Changes since v1 [1]: - Fix list enumerators, suggested by Baruch [1] https://patchwork.linuxtv.org/patch/45929/ --- Documentation/devicetree/bindings/media/coda.txt | 5 +++-- 1

Re: [PATCH 2/2] media: coda: Add i.MX51 (CodaHx4) support

2017-12-15 Thread Philipp Zabel
Hi Hans, On Fri, 2017-12-15 at 15:22 +0100, Hans Verkuil wrote: > Hi Philipp, > > On 13/12/17 15:09, Philipp Zabel wrote: > > Add support for the CodaHx4 VPU used on i.MX51. > > > > Decoding h.264, MPEG-4, and MPEG-2 video works, as well as encoding > > h.264. M

Re: [PATCH 1/2] media: dt-bindings: coda: Add compatible for CodaHx4 on i.MX51

2017-12-13 Thread Philipp Zabel
Hi Baruch, On Wed, 2017-12-13 at 16:21 +0200, Baruch Siach wrote: > Hi Philipp, > > On Wed, Dec 13, 2017 at 03:09:17PM +0100, Philipp Zabel wrote: > > Add a compatible for the CodaHx4 VPU used on i.MX51. > > > > Signed-off-by: Philipp Zabel > > --- > >

[PATCH 1/2] media: dt-bindings: coda: Add compatible for CodaHx4 on i.MX51

2017-12-13 Thread Philipp Zabel
Add a compatible for the CodaHx4 VPU used on i.MX51. Signed-off-by: Philipp Zabel --- Documentation/devicetree/bindings/media/coda.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/coda.txt b/Documentation/devicetree/bindings/media/coda.txt index

[PATCH 2/2] media: coda: Add i.MX51 (CodaHx4) support

2017-12-13 Thread Philipp Zabel
Add support for the CodaHx4 VPU used on i.MX51. Decoding h.264, MPEG-4, and MPEG-2 video works, as well as encoding h.264. MPEG-4 encoding is not enabled, it currently produces visual artifacts. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-bit.c| 45

[PATCH] [media] vb2: clear V4L2_BUF_FLAG_LAST when filling vb2_buffer

2017-12-08 Thread Philipp Zabel
signal EOS prematurely, as soon as the already flagged buffer is dequeued. Signed-off-by: Philipp Zabel --- drivers/media/v4l2-core/videobuf2-v4l2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/v4l2-core/videobuf2-v4l2.c b/drivers/media/v4l2-core/videobuf2-v4l2.c index

[PATCH 2/3] [media] coda: allocate space for mpeg4 decoder mvcol buffer

2017-12-07 Thread Philipp Zabel
The MPEG-4 decoder mvcol buffer was registered, but its size not added to a frame buffer allocation. This could cause the decoder to write past the end of the allocated buffer for large frame sizes. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-bit.c | 6 -- 1 file

[PATCH 3/3] [media] coda: use correct offset for mpeg4 decoder mvcol buffer

2017-12-07 Thread Philipp Zabel
The mvcol buffer needs to be placed behind the chroma plane(s) when decoding MPEG-4, same as for the h.264 decoder. Use the real offset with the required rounding. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-bit.c | 16 +++- 1 file changed, 7 insertions(+), 9

[PATCH 1/3] [media] coda: round up frame sizes to multiples of 16 for MPEG-4 decoder

2017-12-07 Thread Philipp Zabel
We need internal frames to be rounded up to full macroblocks for MPEG-4 decoding as well. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-bit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c

[PATCH] [media] coda: fix capture TRY_FMT for YUYV with non-MB-aligned widths

2017-12-07 Thread Philipp Zabel
the valid image rectange via G_SELECTION (V4L2_SEL_TGT_COMPOSE_DEFAULT), but that would require all applications to handle the compose default rectangle properly. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions

[PATCH] [media] coda: set min_buffers_needed

2017-12-07 Thread Philipp Zabel
From: Lucas Stach The current driver implementation expects at least one buffer on all queues to start streaming. Properly signal this to the vb2 core, to avoid confusion when streamon is racing with qbuf. Signed-off-by: Lucas Stach Signed-off-by: Philipp Zabel --- drivers/media/platform

Re: [PATCH] media: coda: fix comparision of decoded frames' indexes

2017-11-22 Thread Philipp Zabel
Hi Martin, On Fri, 2017-11-17 at 15:30 +0100, Martin Kepplinger wrote: > At this point the driver looks the currently decoded frame's index > and compares is to VPU-specific state values. Directly before this > if and else statements the indexes are read (index for decoded and > for displayed fram

Re: media: coda: sources of coda_regs.h?

2017-11-22 Thread Philipp Zabel
Hi Martin, On Thu, 2017-11-09 at 23:14 +0100, Martin Kepplinger wrote: > Hi Philipp, > > As I'm reading up on the coda driver a little, I can't seem to find the > vendor's sources for the coda_regs.h definitions. Could you point me to > them? I don't know for sure what information Javier based t

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