[PATCH v5 2/3] platform: add video-multiplexer subdevice driver

2017-05-17 Thread Philipp Zabel
: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam --- No changes since v4 [1]: This patch depends on the mux subsystem [2] and on the mmio-mux driver [3] to work on i.MX6. The follow-up patch will make this usable until the mux framework is merged. [1] https

[PATCH v5 1/3] dt-bindings: Add bindings for video-multiplexer device

2017-05-17 Thread Philipp Zabel
Add bindings documentation for the video multiplexer device. Signed-off-by: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam Acked-by: Sakari Ailus Reviewed-by: Sebastian Reichel Acked-by: Rob Herring --- No changes since v4 [1]. [1] https://patchwork.kernel.org

Re: [PATCH 40/40] media: imx: set and propagate empty field, colorimetry params

2017-05-08 Thread Philipp Zabel
if (tryfmt->quantization == V4L2_QUANTIZATION_DEFAULT) > + tryfmt->quantization = fmt->quantization; According to Hans' latest comments, this could be changed to: --8<------ >From cca3cda9effcaca0891eb8044a79137023fed1c2 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date:

Re: [PATCH] [media] imx: csi: retain current field order and colorimetry setting as default

2017-05-08 Thread Philipp Zabel
Hi Hans, On Mon, 2017-05-08 at 10:27 +0200, Hans Verkuil wrote: > Hi Philipp, > > Sorry for the very long delay, but I finally had some time to think about > this. Thank you for your thoughts. > On 04/06/2017 03:55 PM, Philipp Zabel wrote: > > If the the field order is

Re: [PATCH] [media] tc358743: fix register i2c_rd/wr function fix

2017-05-04 Thread Philipp Zabel
Hi Arnd, On Thu, 2017-05-04 at 17:24 +0200, Arnd Bergmann wrote: > On Thu, May 4, 2017 at 5:20 PM, Philipp Zabel wrote: > > The below mentioned fix contains a small but severe bug, > > fix it to make the driver work again. > > > > Fixes: 3538aa6ecfb2 ("[media]

[PATCH] [media] tc358743: fix register i2c_rd/wr function fix

2017-05-04 Thread Philipp Zabel
The below mentioned fix contains a small but severe bug, fix it to make the driver work again. Fixes: 3538aa6ecfb2 ("[media] tc358743: fix register i2c_rd/wr functions") Cc: Arnd Bergmann Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Signed-off-by: Philipp Zabel --- drivers/media/i2c/

[PATCH v4 2/2] [media] platform: add video-multiplexer subdevice driver

2017-05-04 Thread Philipp Zabel
: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam --- Changes since v3 [1]: - Dropped v4l2-fwnode dependency and endpoint parsing for now. - Use devm_kcalloc to allocate arrays. This was previously sent as part of Steve's i.MX media series [2]. Tested against

[PATCH v4 1/2] [media] dt-bindings: Add bindings for video-multiplexer device

2017-05-04 Thread Philipp Zabel
Add bindings documentation for the video multiplexer device. Signed-off-by: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam Acked-by: Sakari Ailus Reviewed-by: Sebastian Reichel --- No changes since v3 [1]. This was previously sent as part of Steve's i.MX

Re: [PATCH v3 2/2] [media] platform: add video-multiplexer subdevice driver

2017-05-04 Thread Philipp Zabel
Hi Sebastian, On Thu, 2017-05-04 at 16:21 +0200, Sebastian Reichel wrote: > Hi, > > On Thu, May 04, 2017 at 03:38:57PM +0200, Philipp Zabel wrote: > > This driver can handle SoC internal and external video bus multiplexers, > > controlled by mux controllers provided

Re: [PATCH v3 2/2] [media] platform: add video-multiplexer subdevice driver

2017-05-04 Thread Philipp Zabel
Hi Kieran, On Thu, 2017-05-04 at 15:59 +0100, Kieran Bingham wrote: > Hi Philipp, > > Thankyou for the patch, thank you for reviewing. > On 04/05/17 14:38, Philipp Zabel wrote: > > This driver can handle SoC internal and external video bus multiplexers, > > contr

Re: [PATCH v3.1 4/7] v4l: Switch from V4L2 OF not V4L2 fwnode API

2017-05-04 Thread Philipp Zabel
ot # i2c/ov2569.c, am437x/am437x-vpfe.c > and ti-vpe/cal.c > Tested-by: Hans Verkuil # Atmel sama5d3 board + > ov2640 sensor Tested and works on v4.11 with Steve's imx-media-staging-md branch on Nitrogen6X i.MX6Q + Toshiba TC358743 HDMI to MIPI CSI-2 bridge. Tested-by: Philipp Zabel regards Philipp

[PATCH v3 1/2] [media] dt-bindings: Add bindings for video-multiplexer device

2017-05-04 Thread Philipp Zabel
Add bindings documentation for the video multiplexer device. Signed-off-by: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam Acked-by: Peter Rosin Acked-by: Sakari Ailus --- No changes since v2 [1]. This was previously sent as part of Steve's i.MX media seri

[PATCH v3 2/2] [media] platform: add video-multiplexer subdevice driver

2017-05-04 Thread Philipp Zabel
: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam --- Changes since v2 [1]: - Extend vmux->lock to protect mbus format against simultaneous access from get/set_format calls. - Drop is_source_pad(), check pad->flags & MEDIA_PAD_FL_SOURCE directly.

[PATCH] [media] imx: switch from V4L2 OF to V4L2 fwnode API

2017-05-04 Thread Philipp Zabel
Switch from the v4l2_of_ APIs to the v4l2_fwnode_ APIs so this driver can work if the patch "v4l: Switch from V4L2 OF not V4L2 fwnode API" is applied before it. Tested against https://git.linuxtv.org/sailus/media_tree.git/log/?h=v4l2-acpi-merge Signed-off-by: Philipp Zabel --- drive

Re: [PATCH v2 2/2] [media] platform: add video-multiplexer subdevice driver

2017-05-04 Thread Philipp Zabel
On Thu, 2017-05-04 at 12:48 +0300, Sakari Ailus wrote: > Hi Philipp, > > On Thu, May 04, 2017 at 11:26:18AM +0200, Philipp Zabel wrote: > > Hi Sakari, > > > > On Thu, 2017-05-04 at 10:17 +0300, Sakari Ailus wrote: > > > Hi Philipp, > > > > >

Re: [PATCH v2 2/2] [media] platform: add video-multiplexer subdevice driver

2017-05-04 Thread Philipp Zabel
Hi Sakari, On Thu, 2017-05-04 at 10:17 +0300, Sakari Ailus wrote: > Hi Philipp, > > On Thu, May 04, 2017 at 09:07:32AM +0200, Philipp Zabel wrote: > > On Wed, 2017-05-03 at 22:28 +0300, Sakari Ailus wrote: > > > Hi Philipp, > > > > > > Thanks for conti

Re: [PATCH v2 2/2] [media] platform: add video-multiplexer subdevice driver

2017-05-04 Thread Philipp Zabel
On Wed, 2017-05-03 at 22:28 +0300, Sakari Ailus wrote: > Hi Philipp, > > Thanks for continuing working on this! > > I have some minor comments below... Thank you for the comments. [...] > Could you rebase this on the V4L2 fwnode patchset here, please? > > https://git.linuxtv.org/sailus/media_t

Re: [PATCH 2/2] [media] platform: add video-multiplexer subdevice driver

2017-05-03 Thread Philipp Zabel
On Tue, 2017-05-02 at 19:42 +0200, Peter Rosin wrote: > On 2017-05-02 17:21, Philipp Zabel wrote: > > On Sat, 2017-04-29 at 23:42 +0200, Peter Rosin wrote: > >> On 2017-04-29 23:29, Peter Rosin wrote: > >>> On 2017-04-28 16:13, Philipp Zabel wrote: > >>>

Re: [PATCH 2/2] [media] platform: add video-multiplexer subdevice driver

2017-05-02 Thread Philipp Zabel
On Sat, 2017-04-29 at 23:42 +0200, Peter Rosin wrote: > On 2017-04-29 23:29, Peter Rosin wrote: > > On 2017-04-28 16:13, Philipp Zabel wrote: > >> This driver can handle SoC internal and external video bus multiplexers, > >> controlled by mux controllers provided by t

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

2017-05-02 Thread Philipp Zabel
: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam --- Changes since v1 [1]: - Protect vmux->active with a mutex in link_setup and set_format. s_stream does not need to be locked; it is called when the pipeline is started and thus the link setup can not be chan

[PATCH v2 1/2] [media] dt-bindings: Add bindings for video-multiplexer device

2017-05-02 Thread Philipp Zabel
Add bindings documentation for the video multiplexer device. Signed-off-by: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam Acked-by: Peter Rosin --- No changes since v1 [1]. This was previously sent as part of Steve's i.MX media series [2]. [1]

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

2017-04-28 Thread Philipp Zabel
: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam --- This has been last sent as part of the i.MX media series. Changes since https://patchwork.kernel.org/patch/9647869/: - Split out the actual mux operation to be provided by the mux controller framework [1]. GPIO and

[PATCH 1/2] [media] dt-bindings: Add bindings for video-multiplexer device

2017-04-28 Thread Philipp Zabel
Add bindings documentation for the video multiplexer device. Signed-off-by: Sascha Hauer Signed-off-by: Philipp Zabel Signed-off-by: Steve Longerbeam --- This has been last sent as part of Steve's i.MX media series. Since the binding changed, I've dropped Rob's ack. Chan

Re: [PATCH] V4L2 SDR: Add Real U8 format (V4L2_SDR_FMT_RU8)

2017-04-24 Thread Philipp Zabel
Hi Bertold, On Mon, 2017-04-24 at 00:45 +0200, Bertold Van den Bergh wrote: > This patch adds support for the Real U8 format to the V4L2 SDR framework. > This will be used for a piece of hardware we are developing. > > Signed-off-by: Bertold Van den Bergh > --- > drivers/media/v4l2-core/v4l2-io

Re: [PATCH 40/40] media: imx: set and propagate empty field, colorimetry params

2017-04-18 Thread Philipp Zabel
On Thu, 2017-04-13 at 09:40 -0700, Steve Longerbeam wrote: [...] > >> @@ -804,12 +804,29 @@ static void prp_try_fmt(struct prp_priv *priv, > >> &sdformat->format.height, > >> infmt->height / 4, MAX_H_SRC, > >>

Re: [PATCH v6 17/39] platform: add video-multiplexer subdevice driver

2017-04-18 Thread Philipp Zabel
Hi Pavel, On Fri, 2017-04-14 at 22:32 +0200, Pavel Machek wrote: > Hi! > > > > The MUX framework is already in linux-next. Could you use that instead of > > > adding new driver + bindings that are not compliant with the MUX > > > framework? > > > I don't think it'd be much of a change in terms o

Re: [PATCH v6 17/39] platform: add video-multiplexer subdevice driver

2017-04-13 Thread Philipp Zabel
Hi Sakari, thank you for the review. On Tue, 2017-04-04 at 15:47 +0300, Sakari Ailus wrote: > Hi Steve, Philipp and Pavel, > > On Mon, Mar 27, 2017 at 05:40:34PM -0700, Steve Longerbeam wrote: > > From: Philipp Zabel > > > > This driver can handle SoC inte

Re: [PATCH 40/40] media: imx: set and propagate empty field, colorimetry params

2017-04-13 Thread Philipp Zabel
Hi Steve, thanks for cleaning this up. Apart from the comments below, this looks good to me. On Wed, 2017-04-12 at 17:45 -0700, Steve Longerbeam wrote: > This patch adds a call to imx_media_fill_empty_mbus_fields() in the > *_try_fmt() functions at the sink pads, to set empty field order and > co

Re: [PATCH] [media] imx: csi: retain current field order and colorimetry setting as default

2017-04-13 Thread Philipp Zabel
On Wed, 2017-04-12 at 09:03 +0200, Hans Verkuil wrote: [...] > >> Do you have a git tree with this patch? It is really hard to review without > >> having the full imx-media-csi.c source. > > > > The patch applies on top of > > > > https://github.com/slongerbeam/mediatree.git imx-media-staging-m

Re: [PATCH] [media] imx: csi: retain current field order and colorimetry setting as default

2017-04-06 Thread Philipp Zabel
On Thu, 2017-04-06 at 17:43 +0200, Hans Verkuil wrote: > On 04/06/2017 04:54 PM, Philipp Zabel wrote: > > On Thu, 2017-04-06 at 16:20 +0200, Hans Verkuil wrote: > >> On 04/06/2017 03:55 PM, Philipp Zabel wrote: > >>> If the the field order is set to ANY in set_fmt,

Re: [PATCH] [media] imx: csi: retain current field order and colorimetry setting as default

2017-04-06 Thread Philipp Zabel
On Thu, 2017-04-06 at 16:10 +0100, Russell King - ARM Linux wrote: > On Thu, Apr 06, 2017 at 05:01:52PM +0200, Philipp Zabel wrote: > > On Thu, 2017-04-06 at 15:05 +0100, Russell King - ARM Linux wrote: > > > On Thu, Apr 06, 2017 at 03:55:29PM +0200, P

Re: [PATCH] [media] imx: csi: retain current field order and colorimetry setting as default

2017-04-06 Thread Philipp Zabel
On Thu, 2017-04-06 at 16:20 +0200, Hans Verkuil wrote: > On 04/06/2017 03:55 PM, Philipp Zabel wrote: > > If the the field order is set to ANY in set_fmt, choose the currently > > set field order. If the colorspace is set to DEFAULT, choose the current > > colorspace.

Re: [PATCH] [media] imx: csi: retain current field order and colorimetry setting as default

2017-04-06 Thread Philipp Zabel
On Thu, 2017-04-06 at 15:05 +0100, Russell King - ARM Linux wrote: > On Thu, Apr 06, 2017 at 03:55:29PM +0200, Philipp Zabel wrote: > > + > > + /* Retain current field setting as default */ > > + if (sdformat->format.field == V4L2_FIELD_ANY) > > + sdfor

Re: [PATCH] [media] imx: csi: retain current field order and colorimetry setting as default

2017-04-06 Thread Philipp Zabel
On Thu, 2017-04-06 at 16:20 +0200, Hans Verkuil wrote: > On 04/06/2017 03:55 PM, Philipp Zabel wrote: > > If the the field order is set to ANY in set_fmt, choose the currently > > set field order. If the colorspace is set to DEFAULT, choose the current > > colorspace.

[PATCH] [media] coda: do not enumerate YUYV if VDOA is not available

2017-04-06 Thread Philipp Zabel
TRY_FMT already disables the YUYV format if the VDOA is not available. ENUM_FMT must do the same. Fixes: d40e98c13b3e ("[media] coda: support YUYV output if VDOA is used") Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 6 ++ 1 file changed, 6

[PATCH] [media] imx: csi: retain current field order and colorimetry setting as default

2017-04-06 Thread Philipp Zabel
field order and colorimetry information. Signed-off-by: Philipp Zabel --- This is based on imx-media-staging-md-v14, and it is supposed to allow configuring the pipeline with media-ctl like this: 1) media-ctl --set-v4l2 "'tc358743 1-000f':0[fmt:UYVY8_1X16/1920x1080]" 2)

Re: [RFC] [media] imx: assume MEDIA_ENT_F_ATV_DECODER entities output video on pad 1

2017-04-06 Thread Philipp Zabel
On Wed, 2017-04-05 at 11:53 -0300, Mauro Carvalho Chehab wrote: [...] > There are a number of drivers that can work with different > types of TV demodulators. Typical examples of such hardware can be > found at em28xx, saa7134, cx88 drivers (among lots of other drivers). > Those drivers don't use t

Re: [PATCH v6 19/39] media: Add i.MX media core driver

2017-04-06 Thread Philipp Zabel
On Mon, 2017-03-27 at 17:40 -0700, Steve Longerbeam wrote: > Add the core media driver for i.MX SOC. > > Signed-off-by: Steve Longerbeam [...] > diff --git a/drivers/staging/media/imx/imx-media-of.c > b/drivers/staging/media/imx/imx-media-of.c > new file mode 100644 > index 000..b383be4 > --

Re: [PATCH 3/3] [media] coda/imx-vdoa: always wait for job completion

2017-04-05 Thread Philipp Zabel
> > Make sure to wait on job completion before running a different context and > before destroying the currently active context. > > Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel > --- > drivers/media/platform/coda/imx-vdoa.c | 49 > +++

Re: [PATCH 2/3] [media] coda: first step at error recovery

2017-04-05 Thread Philipp Zabel
ce, > i.e. userspace issued DEC_CMD_STOP and waits for EOS, but after the failed > decode run we would hold the context and wait for userspace to queue more > buffers. > > Signed-off-by: Lucas Stach Just a naming nitpick below. Reviewed-by: Philipp Zabel > --- > drivers/

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

2017-04-05 Thread Philipp Zabel
of those video streams. > > Signed-off-by: Lucas Stach Acked-by: Philipp Zabel regards Philipp > --- > drivers/media/platform/coda/coda.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/coda/coda.h > b/drivers/media/pl

Re: [PATCH 1/3] [media] coda: use correct offset for mvcol buffer

2017-04-05 Thread Philipp Zabel
On Wed, 2017-04-05 at 15:09 +0200, Lucas Stach wrote: > The mvcol buffer needs to be placed behind the chroma plane(s), so > use the real offset including any required rounding. > > Signed-off-by: Lucas Stach Reviewed-by: Philipp Zabel regards Philipp > --- > drivers/m

Re: [RFC] [media] imx: assume MEDIA_ENT_F_ATV_DECODER entities output video on pad 1

2017-04-05 Thread Philipp Zabel
On Tue, 2017-04-04 at 15:11 -0700, Steve Longerbeam wrote: > > On 03/30/2017 10:25 AM, Philipp Zabel wrote: > > The TVP5150 DT bindings specify a single output port (port 0) that > > corresponds to the video output pad (pad 1, DEMOD_PAD_VID_OUT). > > > >

Re: [RFC] [media] imx: assume MEDIA_ENT_F_ATV_DECODER entities output video on pad 1

2017-04-05 Thread Philipp Zabel
On Wed, 2017-04-05 at 09:21 +0100, Russell King - ARM Linux wrote: [...] > > Actually what was I thinking, the TVP5150 is already an example of > > such a device. > > > > All of this could be solved if there was some direction information > > in port nodes. > > I disagree. > > Philipp identified

Re: [RFC 01/10] [media] vb2: add explicit fence user API

2017-04-03 Thread Philipp Zabel
Hi Gustavo, On Mon, 2017-03-13 at 16:20 -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > Turn the reserved2 field into fence_fd that we will use to send > an in-fence to the kernel return an out-fence from the kernel to > userspace. > > Two new flags were added, V4L2_BUF_FLAG_IN_FENCE

[PATCH 2/2] [media] tvp5150: fix pad format frame height

2017-03-31 Thread Philipp Zabel
Even if field order is set to V4L2_FIELD_ALTERNATE, the width and height values in struct v4l2_mbus_framefmt still refer to frame size, not field size. Fixes: 4f57d27be2a5 ("[media] tvp5150: fix tvp5150_fill_fmt()") Signed-off-by: Philipp Zabel --- drivers/media/i2c/tvp5150.c | 2

[PATCH 1/2] [media] tvp5150: allow get/set_fmt on the video source pad

2017-03-31 Thread Philipp Zabel
). Fixes: 55606310e77f ("[media] tvp5150: create the expected number of pads") Signed-off-by: Philipp Zabel --- drivers/media/i2c/tvp5150.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c index d84

Re: [PATCH] [media] docs-rst: clarify field vs frame height in the subdev API

2017-03-31 Thread Philipp Zabel
On Fri, 2017-03-31 at 13:08 +0200, Hans Verkuil wrote: [...] > >>> Applications are responsible for configuring coherent parameters on the > >>> whole pipeline and making sure that connected pads have compatible > >>> @@ -379,7 +382,10 @@ is supported by the hardware. > >>> pad for further pr

Re: [PATCH] [media] docs-rst: clarify field vs frame height in the subdev API

2017-03-31 Thread Philipp Zabel
Hi Laurent, On Fri, 2017-03-31 at 11:09 +0300, Laurent Pinchart wrote: > Hi Philipp, > > Thank you for the patch. > > On Thursday 30 Mar 2017 17:38:20 Philipp Zabel wrote: > > VIDIOC_SUBDEV_G/S_FMT take the field size if V4L2_FIELD_ALTERNATE field > > order is s

[RFC] [media] imx: assume MEDIA_ENT_F_ATV_DECODER entities output video on pad 1

2017-03-30 Thread Philipp Zabel
The TVP5150 DT bindings specify a single output port (port 0) that corresponds to the video output pad (pad 1, DEMOD_PAD_VID_OUT). Signed-off-by: Philipp Zabel --- I'm trying to get this to work with a TVP5150 analog TV decoder, and the first problem is that this device doesn't have pa

[PATCH v4 4/4] media-ctl: add colorimetry support

2017-03-30 Thread Philipp Zabel
media-ctl can be used to propagate v4l2 subdevice pad formats from source pads of one subdevice to another one's sink pads. These formats include colorimetry information, so media-ctl should be able to print or change it using the --set/get-v4l2 option. Signed-off-by: Philipp Zabel Ack

[PATCH v4 2/4] media-ctl: print the configured frame interval

2017-03-30 Thread Philipp Zabel
After the pad format, also print the frame interval, if already configured. Signed-off-by: Philipp Zabel Acked-by: Sakari Ailus --- Changes since v3: - Ignore EINVAL error of VIDIOC_SUBDEV_G_FRAME_INTERVAL as that is a valid return value if the pad doesn't support frame inte

[PATCH v4 3/4] media-ctl: propagate frame interval

2017-03-30 Thread Philipp Zabel
Same as the media bus format, the frame interval should be propagated from output pads to connected entities' input pads. Signed-off-by: Philipp Zabel Acked-by: Sakari Ailus --- Changes since v3: - Ignore frame interval propagation errors if the sink pad doesn't

[PATCH v4 1/4] media-ctl: add pad support to set/get_frame_interval

2017-03-30 Thread Philipp Zabel
This allows to set and get the frame interval on pads other than pad 0. Signed-off-by: Philipp Zabel Acked-by: Sakari Ailus --- utils/media-ctl/libv4l2subdev.c | 24 ++-- utils/media-ctl/v4l2subdev.h| 4 ++-- 2 files changed, 16 insertions(+), 12 deletions(-) diff

[PATCH] [media] docs-rst: clarify field vs frame height in the subdev API

2017-03-30 Thread Philipp Zabel
immediately clear to me when reading the documentation, so this patch adds some clarifications in the relevant places. Suggested-by: Laurent Pinchart Signed-off-by: Philipp Zabel --- Documentation/media/uapi/v4l/dev-subdev.rst | 16 Documentation/media/uapi/v4l

Re: [PATCH] [media] coda: remove redundant call to v4l2_m2m_get_vq

2017-03-27 Thread Philipp Zabel
s, this was previously assigned to an unused local variable src_vq, since initial commit 918c66fd4126 ("[media] coda: add CODA7541 decoding support"). coda_buf_is_end_of_stream is called from coda_m2m_buf_done, which is exclusively used on destination buffers on the capture queue. Acked-by: Philipp Zabel regards Philipp

Re: [PATCH v4 4/6] drm: bridge: dw-hdmi: Switch to V4L bus format and encodings

2017-03-22 Thread Philipp Zabel
On Tue, 2017-03-21 at 16:12 +0100, Neil Armstrong wrote: > Some display pipelines can only provide non-RBG input pixels to the HDMI TX > Controller, this patch takes the pixel format from the plat_data if provided. > > Signed-off-by: Neil Armstrong On i.MX6 we could provide RGB/YUV bus formats d

Re: [PATCH v3 2/4] media-ctl: print the configured frame interval

2017-03-21 Thread Philipp Zabel
On Mon, 2017-02-13 at 12:40 +0100, Philipp Zabel wrote: > After the pad format, also print the frame interval, if already configured. > > Signed-off-by: Philipp Zabel > Acked-by: Sakari Ailus > --- > utils/media-ctl/media-ctl.c | 8 > 1 file changed, 8 insertions

Re: [PATCH v5 38/39] media: imx: csi: fix crop rectangle reset in sink set_fmt

2017-03-20 Thread Philipp Zabel
On Mon, 2017-03-20 at 14:17 +, Russell King - ARM Linux wrote: > On Mon, Mar 20, 2017 at 03:00:51PM +0100, Philipp Zabel wrote: > > On Mon, 2017-03-20 at 12:08 +, Russell King - ARM Linux wrote: > > > The same document says: > > > > > > Scaling supp

Re: [PATCH v5 38/39] media: imx: csi: fix crop rectangle reset in sink set_fmt

2017-03-20 Thread Philipp Zabel
Hi Steve, Russell, On Mon, 2017-03-20 at 14:17 +, Russell King - ARM Linux wrote: > On Mon, Mar 20, 2017 at 03:00:51PM +0100, Philipp Zabel wrote: > > On Mon, 2017-03-20 at 12:08 +, Russell King - ARM Linux wrote: > > > The same document says: > > > > >

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-20 Thread Philipp Zabel
On Mon, 2017-03-20 at 15:43 +, Russell King - ARM Linux wrote: > On Mon, Mar 20, 2017 at 02:20:16PM +0100, Philipp Zabel wrote: > > To set and read colorimetry information: > > https://patchwork.linuxtv.org/patch/39350/ > > Thanks, I've applied all four of your p

Re: [PATCH v5 38/39] media: imx: csi: fix crop rectangle reset in sink set_fmt

2017-03-20 Thread Philipp Zabel
On Mon, 2017-03-20 at 12:08 +, Russell King - ARM Linux wrote: > On Mon, Mar 20, 2017 at 12:55:26PM +0100, Philipp Zabel wrote: > > The above paragraph suggests we skip any rectangles that are not > > supported. In our case that would be 3. and 4., since the CSI can't >

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-20 Thread Philipp Zabel
On Sun, 2017-03-19 at 12:14 +, Russell King - ARM Linux wrote: > On Sat, Mar 18, 2017 at 12:58:27PM -0700, Steve Longerbeam wrote: > > On 03/18/2017 12:22 PM, Russell King - ARM Linux wrote: > > >0:00:01.955927879 20954 0x15ffe90 INFOv4l2 > > >gstv4l2object.c:3811:gst_v4l2

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-20 Thread Philipp Zabel
the frame interval information, so there's > > no way to read it back with standard tools, and no indication that > > this is going on... > > I think Philipp Zabel submitted a patch which addresses these > in media-ctl. Check with him. To read back and propagate

Re: [PATCH v5 38/39] media: imx: csi: fix crop rectangle reset in sink set_fmt

2017-03-20 Thread Philipp Zabel
On Sun, 2017-03-19 at 12:08 -0700, Steve Longerbeam wrote: > > On 03/19/2017 08:22 AM, Russell King - ARM Linux wrote: > > On Thu, Mar 09, 2017 at 08:53:18PM -0800, Steve Longerbeam wrote: > >> From: Philipp Zabel > >> > >> The csi_try_crop call in set_fm

Re: [PATCH v2 03/14] [media] coda: simplify optional reset handling

2017-03-20 Thread Philipp Zabel
es are all completely independent from each other, and unchanged from v1. I've resent the series (possibly adding a few mailing lists where I previously forgot) now that commit bb475230b8e5 is in mainline. regards Philipp > Regards, > > Hans > > On 03/15/2017 12:31 PM,

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-17 Thread Philipp Zabel
On Fri, 2017-03-17 at 10:24 -0300, Mauro Carvalho Chehab wrote: [...] > The big question, waiting for an answer on the last 8 years is > who would do that? Such person would need to have several different > hardware from different vendors, in order to ensure that it has > a generic solution. > > I

Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline

2017-03-17 Thread Philipp Zabel
On Fri, 2017-03-17 at 11:42 +, Russell King - ARM Linux wrote: > On Tue, Mar 14, 2017 at 08:55:36AM +0100, Hans Verkuil wrote: > > We're all very driver-development-driven, and userspace gets very little > > attention in general. So before just throwing in the towel we should take > > a good lo

Re: media / v4l2-mc: wishlist for complex cameras (was Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline)

2017-03-16 Thread Philipp Zabel
On Thu, 2017-03-16 at 10:47 +0100, Philippe De Muyter wrote: > On Thu, Mar 16, 2017 at 10:26:00AM +0100, Philipp Zabel wrote: > > On Wed, 2017-03-15 at 14:55 -0400, Nicolas Dufresne wrote: > > > Le mercredi 15 mars 2017 à 11:50 +0100, Philippe De Muyter a écrit : > > >

Re: media / v4l2-mc: wishlist for complex cameras (was Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline)

2017-03-16 Thread Philipp Zabel
On Wed, 2017-03-15 at 14:55 -0400, Nicolas Dufresne wrote: > Le mercredi 15 mars 2017 à 11:50 +0100, Philippe De Muyter a écrit : > > > I would say: camorama, xawtv3, zbar, google talk, skype. If it runs > > > with those, it will likely run with any other application. > > > > > > > I would like t

[PATCH v2 03/14] [media] coda: simplify optional reset handling

2017-03-15 Thread Philipp Zabel
trol_reset unconditionally. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index eb6548f46cbac..0cf

[PATCH v2 04/14] [media] st_rc: simplify optional reset handling

2017-03-15 Thread Philipp Zabel
ditionally. Signed-off-by: Philipp Zabel Acked-by: Patrice Chotard --- drivers/media/rc/st_rc.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/media/rc/st_rc.c b/drivers/media/rc/st_rc.c index f0d7190e39195..0ac1879f75069 100644 --- a/drivers/media/rc/st_

[PATCH v2 05/14] [media] rc: sunxi-cir: simplify optional reset handling

2017-03-15 Thread Philipp Zabel
ditionally. Signed-off-by: Philipp Zabel --- drivers/media/rc/sunxi-cir.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index 25b0061678102..4b785dd775c11 100644 --- a/drivers/media/rc/sunxi-c

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-03-14 Thread Philipp Zabel
On Tue, 2017-03-14 at 08:34 +0100, Hans Verkuil wrote: > On 03/13/2017 10:03 PM, Sakari Ailus wrote: > > Hi Steve, > > > > On Mon, Mar 13, 2017 at 11:06:22AM -0700, Steve Longerbeam wrote: > >> > >> > >> On 03/13/2017 06:55 AM, Philipp Zabel wrote:

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-03-13 Thread Philipp Zabel
On Mon, 2017-03-13 at 13:27 +, Russell King - ARM Linux wrote: > On Mon, Mar 13, 2017 at 03:16:48PM +0200, Sakari Ailus wrote: > > The vast majority of existing drivers do not implement them nor the user > > space expects having to set them. Making that mandatory would break existing > > user s

Re: [PATCH] coda: enable with COMPILE_TEST

2017-03-08 Thread Philipp Zabel
mp;Media Coda multi-standard codec IP" > - depends on VIDEO_DEV && VIDEO_V4L2 && ARCH_MXC > + depends on VIDEO_DEV && VIDEO_V4L2 > + depends on ARCH_MXC || COMPILE_TEST Yes, that could be helpful. Acked-by: Philipp Zabel > depends on HAS

[PATCH v2] [media] coda: restore original firmware locations

2017-03-08 Thread Philipp Zabel
mware compatibility location") Cc: Baruch Siach Signed-off-by: Philipp Zabel Acked-by: Baruch Siach Reviewed-by: Fabio Estevam --- Changes since v1: - moved fw assignment after ARRAY_SIZE check, to avoid reading into fw from undefined memory --- drivers/media/platform/coda/coda-com

Re: [PATCH] [media] coda: restore original firmware locations

2017-03-08 Thread Philipp Zabel
On Wed, 2017-03-08 at 11:38 +0100, Hans Verkuil wrote: > On 01/03/17 16:36, Philipp Zabel wrote: > > Recently, an unfinished patch was merged that added a third entry to the > > beginning of the array of firmware locations without changing the code > > to also look at th

Re: [PATCH] [media] coda: implement encoder stop command

2017-03-03 Thread Philipp Zabel
On Thu, 2017-03-02 at 17:30 +0100, Jean-Michel Hautbois wrote: > > > > + /* If there is no buffer in flight, wake up */ > > + if (ctx->qsequence == ctx->osequence) { > > Not sure about this one, I would have done something like : > if (!(ctx->fh.m2m_ctx->job_flags)) { This field is

[PATCH 2/4] [media] coda: keep queued buffers on a temporary list during start_streaming

2017-03-03 Thread Philipp Zabel
-by: Philipp Zabel --- drivers/media/platform/coda/coda-bit.c| 28 ++-- drivers/media/platform/coda/coda-common.c | 29 ++--- drivers/media/platform/coda/coda.h| 2 +- 3 files changed, 45 insertions(+), 14 deletions(-) diff --git a

[PATCH 4/4] [media] coda: disable reordering for baseline profile h.264 streams

2017-03-03 Thread Philipp Zabel
With reordering enabled, the sequence init in CODA960 firmware requests an unreasonable number of internal frames for some baseline profile streams. Disabling the reordering feature manually if baseline streams are detected fixes this problem. Signed-off-by: Lucas Stach Signed-off-by: Philipp

[PATCH 1/4] [media] coda: Use && instead of & for non-bitfield conditions

2017-03-03 Thread Philipp Zabel
From: Michael Tretter streamon and streamoff are used as boolean values, not as bitfields. Therefore, the logical && should be used to combine them. Signed-off-by: Michael Tretter Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 2 +- 1 file changed, 1 i

[PATCH 3/4] [media] coda: pad first h.264 buffer to 512 bytes

2017-03-03 Thread Philipp Zabel
The bitstream reader needs 512 bytes ready to read to examine the headers in the first frame. If that frame is too small, prepend it with a filler NAL. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-bit.c | 28 ++-- drivers/media/platform/coda/coda

[PATCH] [media] coda: disable BWB for all codecs on CODA 960

2017-03-02 Thread Philipp Zabel
ut decoded frames to memory, so there is an "enable_bwb" module parameter to turn it back on. Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 7 ++- drivers/media/platform/coda/coda_regs.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff -

Re: [PATCH] [media] coda: implement encoder stop command

2017-03-02 Thread Philipp Zabel
Hi Jean-Michel, On Thu, 2017-03-02 at 11:02 +0100, Jean-Michel Hautbois wrote: > Hi Philipp, > > 2017-03-02 10:51 GMT+01:00 Philipp Zabel : > > There is no need to call v4l2_m2m_try_schedule to kick off draining the > > bitstream buffer for the encoder, but we have to wa

[PATCH] [media] coda: implement encoder stop command

2017-03-02 Thread Philipp Zabel
There is no need to call v4l2_m2m_try_schedule to kick off draining the bitstream buffer for the encoder, but we have to wake up the destination queue in case there are no new OUTPUT buffers to be encoded and userspace is already polling for new CAPTURE buffers. Signed-off-by: Philipp Zabel

[PATCH] [media] coda: restore original firmware locations

2017-03-01 Thread Philipp Zabel
mware compatibility location") Cc: Baruch Siach Signed-off-by: Philipp Zabel --- drivers/media/platform/coda/coda-common.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-comm

Re: [PATCH v4 33/36] media: imx: redo pixel format enumeration and negotiation

2017-02-23 Thread Philipp Zabel
Hi Steve, On Wed, 2017-02-22 at 15:52 -0800, Steve Longerbeam wrote: > Hi Philipp, > > > On 02/16/2017 03:32 AM, Philipp Zabel wrote: > > On Wed, 2017-02-15 at 18:19 -0800, Steve Longerbeam wrote: > >> The previous API and negotiation of mbus codes and pixel forma

Re: [PATCH v4 15/36] platform: add video-multiplexer subdevice driver

2017-02-21 Thread Philipp Zabel
On Sun, 2017-02-19 at 23:02 +0100, Pavel Machek wrote: > Hi! > > > From: Philipp Zabel > > > > This driver can handle SoC internal and external video bus multiplexers, > > controlled either by register bit fields or by a GPIO. The subdevice > > pa

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-02-21 Thread Philipp Zabel
On Mon, 2017-02-20 at 16:18 -0800, Steve Longerbeam wrote: > > On 02/20/2017 04:13 PM, Russell King - ARM Linux wrote: > > On Tue, Feb 21, 2017 at 12:04:10AM +0200, Sakari Ailus wrote: > >> On Wed, Feb 15, 2017 at 06:19:31PM -0800, Steve Longerbeam wrote: > >>> From: Russell King > >>> > >>> Sett

Re: [PATCH v4 00/36] i.MX Media Driver

2017-02-17 Thread Philipp Zabel
On Fri, 2017-02-17 at 14:22 +0200, Sakari Ailus wrote: > Hi Philipp, Steve and Russell, > > On Fri, Feb 17, 2017 at 12:43:38PM +0100, Philipp Zabel wrote: > > On Thu, 2017-02-16 at 14:27 -0800, Steve Longerbeam wrote: > > > > > > On 02/16/2017 02:20 PM, Russell K

Re: [PATCH v4 23/36] media: imx: Add MIPI CSI-2 Receiver subdev driver

2017-02-17 Thread Philipp Zabel
On Fri, 2017-02-17 at 11:47 +0100, Philipp Zabel wrote: > On Wed, 2017-02-15 at 18:19 -0800, Steve Longerbeam wrote: > > Adds MIPI CSI-2 Receiver subdev driver. This subdev is required > > for sensors with a MIPI CSI2 interface. > > > > Signed-off-by: Steve Longe

Re: [PATCH v4 00/36] i.MX Media Driver

2017-02-17 Thread Philipp Zabel
On Thu, 2017-02-16 at 14:27 -0800, Steve Longerbeam wrote: > > On 02/16/2017 02:20 PM, Russell King - ARM Linux wrote: > > On Wed, Feb 15, 2017 at 06:19:02PM -0800, Steve Longerbeam wrote: > >> In version 4: > > > > With this version, I get: > > > > [28762.892053] imx6-mipi-csi2: LP-11 timeout, ph

Re: [PATCH v4 23/36] media: imx: Add MIPI CSI-2 Receiver subdev driver

2017-02-17 Thread Philipp Zabel
On Fri, 2017-02-17 at 11:06 +, Russell King - ARM Linux wrote: > On Fri, Feb 17, 2017 at 11:47:59AM +0100, Philipp Zabel wrote: > > On Wed, 2017-02-15 at 18:19 -0800, Steve Longerbeam wrote: > > > +static void csi2_dphy_init(struct csi2_dev *csi2) > > > +{ > >

Re: [PATCH v4 00/36] i.MX Media Driver

2017-02-17 Thread Philipp Zabel
On Fri, 2017-02-17 at 10:56 +, Russell King - ARM Linux wrote: > On Fri, Feb 17, 2017 at 11:39:11AM +0100, Philipp Zabel wrote: > > On Thu, 2017-02-16 at 22:57 +, Russell King - ARM Linux wrote: > > > On Thu, Feb 16, 2017 at 02:27:41PM -0800, Stev

Re: [PATCH v4 23/36] media: imx: Add MIPI CSI-2 Receiver subdev driver

2017-02-17 Thread Philipp Zabel
On Wed, 2017-02-15 at 18:19 -0800, Steve Longerbeam wrote: > Adds MIPI CSI-2 Receiver subdev driver. This subdev is required > for sensors with a MIPI CSI2 interface. > > Signed-off-by: Steve Longerbeam > --- > drivers/staging/media/imx/Makefile | 1 + > drivers/staging/media/imx/imx6-

Re: [PATCH v4 00/36] i.MX Media Driver

2017-02-17 Thread Philipp Zabel
On Thu, 2017-02-16 at 22:57 +, Russell King - ARM Linux wrote: > On Thu, Feb 16, 2017 at 02:27:41PM -0800, Steve Longerbeam wrote: > > > > > > On 02/16/2017 02:20 PM, Russell King - ARM Linux wrote: > > >On Wed, Feb 15, 2017 at 06:19:02PM -0800, Steve Longerbeam wrote: > > >>In version 4: > >

Re: [PATCH v4 18/36] media: Add i.MX media core driver

2017-02-17 Thread Philipp Zabel
On Thu, 2017-02-16 at 17:33 -0800, Steve Longerbeam wrote: > > On 02/16/2017 05:02 AM, Philipp Zabel wrote: > > On Wed, 2017-02-15 at 18:19 -0800, Steve Longerbeam wrote: > > >> + > >> +- Clean up and move the ov5642 subdev driver to drivers/media/i2c, and >

Re: [PATCH v4 18/36] media: Add i.MX media core driver

2017-02-16 Thread Philipp Zabel
640 > +-- > + > +Similarly to SabreLite, the SabreSD supports a parallel interface > +OV5642 module on IPU1 CSI0, and a MIPI CSI-2 OV5640 module. The OV5642 > +connects to i2c bus 1 and the OV5640 to i2c bus 2. > + > +The device tree for SabreSD includes

Re: [PATCH v4 01/36] [media] dt-bindings: Add bindings for i.MX media driver

2017-02-16 Thread Philipp Zabel
On Wed, 2017-02-15 at 18:19 -0800, Steve Longerbeam wrote: > Add bindings documentation for the i.MX media driver. > > Signed-off-by: Steve Longerbeam > --- > Documentation/devicetree/bindings/media/imx.txt | 66 > + > 1 file changed, 66 insertions(+) > create mode 1006

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