Re: Proposed updates and guidelines for MPEG-2, H.264 and H.265 stateless support

2019-06-06 Thread Hans Verkuil
On 6/7/19 8:11 AM, Tomasz Figa wrote: > On Wed, May 22, 2019 at 7:56 PM Hans Verkuil wrote: >>> I share the same experience. Bitstream buffers are usually so small that >>> you can always find a physically contiguous memory region for them and a >>> memcpy() will be faster than the overhead of get

Re: [PATCH] media: vb2-dc: skip CPU sync in map/unmap dma_buf

2019-06-06 Thread Hans Verkuil
On 6/7/19 6:32 AM, Tomasz Figa wrote: > Hi Hans, Lucas, > > On Fri, May 3, 2019 at 9:38 PM Hans Verkuil wrote: >> >> Hi Lucas, >> >> As you mentioned there hasn't been any further review comments, so >> it is fair not to postpone this. >> > > Sorry for being late to the party. I didn't notice th

Re: Proposed updates and guidelines for MPEG-2, H.264 and H.265 stateless support

2019-06-06 Thread Tomasz Figa
On Wed, May 22, 2019 at 7:56 PM Hans Verkuil wrote: > > On 5/22/19 12:42 PM, Thierry Reding wrote: > > On Wed, May 22, 2019 at 10:26:28AM +0200, Paul Kocialkowski wrote: > >> Hi, > >> > >> Le mercredi 22 mai 2019 à 15:48 +0900, Tomasz Figa a écrit : > >>> On Sat, May 18, 2019 at 11:09 PM Nicolas D

Re: [PATCH] media: vb2-dc: skip CPU sync in map/unmap dma_buf

2019-06-06 Thread Tomasz Figa
Hi Hans, Lucas, On Fri, May 3, 2019 at 9:38 PM Hans Verkuil wrote: > > Hi Lucas, > > As you mentioned there hasn't been any further review comments, so > it is fair not to postpone this. > Sorry for being late to the party. I didn't notice this patch before. (Perhaps it could be worth adding me

cron job: media_tree daily build: WARNINGS

2019-06-06 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Fri Jun 7 05:00:11 CEST 2019 media-tree git hash:edadd68031e5b7c1ba0c413a9549dce62a02844c media_build gi

Re: [PATCH v1 3/3] [media] mceusb: Show USB halt/stall error recovery

2019-06-06 Thread A Sun
Hi Sean, Thanks again for reviewing my patch submission. This patch updates mceusb RX and TX HALT error handling and recovery reporting, and provides placeholder for a later patch. The possible later patch would have mceusb call usb_reset_device() in place of the new "... requires USB Reset ...

Re: [PATCH 0/5] media: Access videobuf2 buffers via an accessor

2019-06-06 Thread Boris Brezillon
On Thu, 06 Jun 2019 15:13:00 -0300 Ezequiel Garcia wrote: > On Thu, 2019-06-06 at 19:43 +0200, Boris Brezillon wrote: > > On Thu, 6 Jun 2019 12:44:21 -0300 > > Ezequiel Garcia wrote: > > > > > Hi, > > > > > > This patchset introduces a new vb2_get_buffer accessor and then > > > uses it on a

Re: [RFC 1/1] v4l2-subdev: Rework subdev format and selection macros to work without MC

2019-06-06 Thread Janusz Krzysztofik
Hi Sakari, On Thursday, June 6, 2019 3:56:42 PM CEST Sakari Ailus wrote: > Hi Janusz, > > On Wed, Jun 05, 2019 at 09:33:41PM +0200, Janusz Krzysztofik wrote: > > Hi Sakari, > > > > On Tuesday, June 4, 2019 7:57:31 PM CEST Sakari Ailus wrote: > > > Rework the macros for accessing subdev try forma

Re: [PATCH 0/5] media: Access videobuf2 buffers via an accessor

2019-06-06 Thread Ezequiel Garcia
On Thu, 2019-06-06 at 19:43 +0200, Boris Brezillon wrote: > On Thu, 6 Jun 2019 12:44:21 -0300 > Ezequiel Garcia wrote: > > > Hi, > > > > This patchset introduces a new vb2_get_buffer accessor and then > > uses it on all the drivers that are accessing videobuf2 > > private buffer array directly.

Re: [PATCH 0/5] media: Access videobuf2 buffers via an accessor

2019-06-06 Thread Boris Brezillon
On Thu, 6 Jun 2019 12:44:21 -0300 Ezequiel Garcia wrote: > Hi, > > This patchset introduces a new vb2_get_buffer accessor and then > uses it on all the drivers that are accessing videobuf2 > private buffer array directly. Just curious, how did you find all occurrences of direct q->bufs[] acces

Re: [PATCH 1/5] media: vb2: Introduce a vb2_get_buffer accessor

2019-06-06 Thread Boris Brezillon
On Thu, 6 Jun 2019 12:44:22 -0300 Ezequiel Garcia wrote: > Some drivers need to access a vb2 buffer from its > queue index. Introduce an accessor to abstract this, > and avoid drivers from accessing private members. > > Signed-off-by: Ezequiel Garcia > --- > include/media/videobuf2-core.h | 1

Re: [PATCH v3 2/2] media: v4l2-ctrl: Move compound control initialization

2019-06-06 Thread Boris Brezillon
On Thu, 6 Jun 2019 13:12:54 -0300 Ezequiel Garcia wrote: > Rework std_init adding an explicit initialization for > compound controls. > > While here, make sure the control is initialized to zero, > before providing default values for all its fields. > > Signed-off-by: Ezequiel Garcia Reviewe

Re: [PATCH v3 1/2] media: v4l2-ctrl: Initialize _BUTTON and _CTRL_CLASS

2019-06-06 Thread Boris Brezillon
On Thu, 6 Jun 2019 13:12:53 -0300 Ezequiel Garcia wrote: > These two control types don't really need a default value, > as they are not expected to carry any value. > > However, it's slightly clearer to initialize them explicitly > instead of falling back to the switch default. > > Signed-off-

[GIT PULL FOR v5.3] add meson decoder driver

2019-06-06 Thread Hans Verkuil
The following changes since commit edadd68031e5b7c1ba0c413a9549dce62a02844c: media: MAINTAINERS: update email address (2019-06-05 15:58:40 -0400) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-v5.3o for you to fetch changes up to ddfad6971e54f423ea

[PATCH v3 1/2] media: v4l2-ctrl: Initialize _BUTTON and _CTRL_CLASS

2019-06-06 Thread Ezequiel Garcia
These two control types don't really need a default value, as they are not expected to carry any value. However, it's slightly clearer to initialize them explicitly instead of falling back to the switch default. Signed-off-by: Ezequiel Garcia --- Changes from v2: * Initialize the controls to zer

[PATCH v3 2/2] media: v4l2-ctrl: Move compound control initialization

2019-06-06 Thread Ezequiel Garcia
Rework std_init adding an explicit initialization for compound controls. While here, make sure the control is initialized to zero, before providing default values for all its fields. Signed-off-by: Ezequiel Garcia --- Changes from v2: * Align parameters to parenthesis * Drop unneeded zero initia

[PATCH 5/5] media: rockchip: Use vb2_get_buffer

2019-06-06 Thread Ezequiel Garcia
Use the newly introduced vb2_get_buffer API and avoid accessing buffers in the queue directly. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/rockchip/vpu/

[PATCH 4/5] media: sti: Use vb2_get_buffer

2019-06-06 Thread Ezequiel Garcia
Use the newly introduced vb2_get_buffer API and avoid accessing buffers in the queue directly. Cc: Jean-Christophe Trotin Signed-off-by: Ezequiel Garcia --- drivers/media/platform/sti/hva/hva-v4l2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/st

[PATCH 1/5] media: vb2: Introduce a vb2_get_buffer accessor

2019-06-06 Thread Ezequiel Garcia
Some drivers need to access a vb2 buffer from its queue index. Introduce an accessor to abstract this, and avoid drivers from accessing private members. Signed-off-by: Ezequiel Garcia --- include/media/videobuf2-core.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/inclu

[PATCH 3/5] media: mtk-vcodec: Use vb2_get_buffer

2019-06-06 Thread Ezequiel Garcia
Use the newly introduced vb2_get_buffer API and avoid accessing buffers in the queue directly. Cc: Tiffany Lin Cc: Andrew-CT Chen Signed-off-by: Ezequiel Garcia --- drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git

[PATCH 2/5] media: mtk-jpeg: Use vb2_get_buffer

2019-06-06 Thread Ezequiel Garcia
Use the newly introduced vb2_get_buffer API and avoid accessing buffers in the queue directly. Cc: Rick Chang Cc: Bin Liu Signed-off-by: Ezequiel Garcia --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platfor

[PATCH 0/5] media: Access videobuf2 buffers via an accessor

2019-06-06 Thread Ezequiel Garcia
Hi, This patchset introduces a new vb2_get_buffer accessor and then uses it on all the drivers that are accessing videobuf2 private buffer array directly. I'm skipping Intel IPU3 driver here, since the code goes beyond just accessing the buffer. It also modifies the buffer queue directly. I belie

Re: [PATCH v3 01/10] rockchip/vpu: rename from rockchip to hantro

2019-06-06 Thread Boris Brezillon
On Wed, 5 Jun 2019 13:22:42 +0200 Boris Brezillon wrote: > On Fri, 31 May 2019 10:55:14 +0200 > Philipp Zabel wrote: > > > Rename the driver and all relevant identifiers from Rockchip to Hantro, > > as other Hantro IP based VPU implementations can be supported by the > > same driver. > > The RK

[GIT PULL FOR v5.3] rc/dvb fixes

2019-06-06 Thread Sean Young
Hi Mauro, A change to use rc-core for the av7110 IR receiver, which removes a procfs file. Also some tiny steps changes towards moving away from dvb_attach. Thanks, Sean The following changes since commit edadd68031e5b7c1ba0c413a9549dce62a02844c: media: MAINTAINERS: update email address (2019

Re: [PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-06 Thread Nicolas Dufresne
Le jeudi 06 juin 2019 à 08:51 +0200, Boris Brezillon a écrit : > On Thu, 6 Jun 2019 12:53:57 +0900 > Tomasz Figa wrote: > > > On Thu, Jun 6, 2019 at 1:46 AM Boris Brezillon > > wrote: > > > CAP_M2M_MPLANE means the device supports _MPLANE formats for both > > > capture and output. Adjust the che

Re: [RFC 1/1] v4l2-subdev: Rework subdev format and selection macros to work without MC

2019-06-06 Thread Sakari Ailus
Hi Janusz, On Wed, Jun 05, 2019 at 09:33:41PM +0200, Janusz Krzysztofik wrote: > Hi Sakari, > > On Tuesday, June 4, 2019 7:57:31 PM CEST Sakari Ailus wrote: > > Rework the macros for accessing subdev try formats to work meaningfully > > and relatively safely without V4L2 sub-device uAPI (and with

Re: [v8] media: imx: add mem2mem device

2019-06-06 Thread Sven Van Asbroeck
On Wed, Jun 5, 2019 at 10:32 PM Robin Gong wrote: > > So that's another issue that I can't reproduce. How do you switch between > sdma ROM/RAM firmware load? Just keep or remove > sdma-imx6q.bin in your ramfs(seems you used)? I add the sdma firmware to the kernel image, by adding the following t

[PATCH v2 9/9] ipu3-cio2: Parse information from firmware without using callbacks

2019-06-06 Thread Sakari Ailus
Instead of using the convenience function v4l2_async_notifier_parse_fwnode_endpoints(), parse the endpoints and set up the async sub-devices without using callbacks. While this adds a little bit of code, it makes parsing the endpoints quite a bit more simple and gives more control to the driver ove

[PATCH v2 7/9] ipu3-cio2: Clean up notifier's subdev list if parsing endpoints fails

2019-06-06 Thread Sakari Ailus
The notifier must be cleaned up whenever parsing endpoints fails. Do that to avoid a memory leak in that case. Signed-off-by: Sakari Ailus --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/media/pci/intel/ipu3/ipu3-ci

[PATCH v2 0/9] Rework V4L2 fwnode parsing; add defaults and avoid iteration

2019-06-06 Thread Sakari Ailus
Hi folks, This patchset reworks V4L2 fwnode endpoint parsing. It enables the use of endpoint configuration defaults that is available sensors and other drivers that only use a single endpoint. Well, the functionality was available already but no driver used it likely because of two reasons: lack o

[PATCH v2 5/9] omap3isp: Rework OF endpoint parsing

2019-06-06 Thread Sakari Ailus
Rework OF endpoint parsing for the omap3isp driver. This does add some lines of code. The benefits are still clear: - the great complication related to callbacks in endpoint parsing is gone; instead endpoints are obtained port by port and - endpoints may now have a default bus configuration whi

[PATCH v2 4/9] v4l2-async: Add v4l2_async_notifier_add_fwnode_remote_subdev

2019-06-06 Thread Sakari Ailus
v4l2_async_notifier_add_fwnode_remote_subdev is a convenience function for parsing information on V4L2 fwnode subdevs. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-async.c | 23 +++ include/media/v4l2-async.h | 25 + 2 files c

[PATCH v2 1/9] davinci-vpif: Don't dereference endpoint after putting it, fix refcounting

2019-06-06 Thread Sakari Ailus
The davinci-vpif driver dereferences its local endpoints after releasing the reference to them. The driver also puts its endpoints explicitly while the of_graph_get_next_endpoint() does that, too, leading to obtaining a reference once and releasing it twice. Both are fixed by this patch. Signed-

[PATCH v2 6/9] v4l2-async: Safely clean up an uninitialised notifier

2019-06-06 Thread Sakari Ailus
Make the V4L2 async framework a bit more robust by allowing to clean up an uninitialised notifier. Otherwise the result would be a (close to) NULL pointer dereference. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 3/9] v4l2-async: Get fwnode reference when putting it to the notifier's list

2019-06-06 Thread Sakari Ailus
The v4l2_async_notifier_add_fwnode_subdev() did not take a reference of the added fwnode, relying on the caller to handle that instead, in essence putting the fwnode to be added if there was an error. As the reference is eventually released during the notifier cleanup, this is not intuitive nor lo

[PATCH v2 2/9] v4l2-async: Use endpoint node, not device node, for fwnode match

2019-06-06 Thread Sakari Ailus
V4L2 async framework can use both device's fwnode and endpoints's fwnode for matching the async sub-device with the sub-device. In order to proceed moving towards endpoint matching assign the endpoint to the async sub-device. As most async sub-device drivers (and the related hardware) only support

[PATCH v2 8/9] ipu3-cio2: Proceed with notifier init even if there are no subdevs

2019-06-06 Thread Sakari Ailus
The notifier may be registered even if there are no subdevs. Do that to simplify the code. Signed-off-by: Sakari Ailus --- drivers/media/pci/intel/ipu3/ipu3-cio2.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/media/pci/intel/ipu3/ipu3-cio2.c b/drivers/m

[PATCH 9/9] vicodec: improve handling of ENC_CMD_STOP/START

2019-06-06 Thread Hans Verkuil
Correctly handle stopping and restarting the encoder, keeping track of the stop and drain states. In addition it adds correct handling of corner cases, allowing v4l2-compliance to pass. Unfortunately, the code is getting to be quite complicated, so we need to work on better codec support in v4l2-

[PATCH 5/9] vicodec: add V4L2_CID_MIN_BUFFERS_FOR_OUTPUT

2019-06-06 Thread Hans Verkuil
The stateful encoder requires the presence of this control. Since a single buffer is sufficient for vicodec, we just set this control to 1. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/driver

[PATCH 8/9] vicodec: stateless codecs do not have EOS and SOURCE_CHANGE events

2019-06-06 Thread Hans Verkuil
Return an error when attempting to subscribe to those events for a stateless codec. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/

[PATCH 4/9] vicodec: pass on enc output format to capture side

2019-06-06 Thread Hans Verkuil
Setting the encoder output format to e.g. 1920x1080 will set the crop rectangle to 1920x1088, the coded resolution to 1920x1088 and the capture coded resolution and sizeimage to 1920x1088 as well. Note that this might change, since the encoder spec is still in flux with respect to how this should

[PATCH 6/9] vicodec: set KEY/PFRAME flag when decoding

2019-06-06 Thread Hans Verkuil
Set V4L2_BUF_FLAG_P/KEYFRAME after decoding a frame. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-co

[PATCH 7/9] vicodec: use correct sizeimage value when draining

2019-06-06 Thread Hans Verkuil
After a resolution change is detected, q_data->sizeimage is updated to the new format, but buf_prepare is still draining buffers that need to use the old pre-resolution-change value. So store the sizeimage value in q_data->vb2_sizeimage in queue_setup and use that in buf_prepare. Signed-off-by: Ha

[PATCH 1/9] vicodec: move v4l2_ctrl_request_complete after spin_unlock

2019-06-06 Thread Hans Verkuil
v4l2_ctrl_request_complete can sleep, so can't be called while a spinlock is held. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/

[PATCH 0/9] vicodec: fixes and sync with v4 of codec spec

2019-06-06 Thread Hans Verkuil
This series fixes a number of bugs and compliance failures in the vicodec driver. Combined with new/fixed tests in v4l2-compliance (see https://git.linuxtv.org/hverkuil/v4l-utils.git/log/?h=vicodec) vicodec can now be used in regression testing. There will probably be a few more changes once the c

[PATCH 3/9] vicodec: fix initial stateless sizeimage value

2019-06-06 Thread Hans Verkuil
The initial sizeimage value was wrong for the stateless decoder. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vi

[PATCH 2/9] vicodec: always return a valid format.

2019-06-06 Thread Hans Verkuil
Rather than returning width/height values of 0, just default to a format. Formats in V4L2 are always supposed to be valid, there is no concept of an invalid format. Signed-off-by: Hans Verkuil --- drivers/media/platform/vicodec/vicodec-core.c | 26 ++- 1 file changed, 14 insertio

Re: [PATCH] Revert "media: staging/imx: Allow driver to build if COMPILE_TEST is enabled"

2019-06-06 Thread Hans Verkuil
On 6/5/19 10:53 PM, Fabio Estevam wrote: > Commit 020bc7354a6e ("media: staging/imx: Allow driver to build > if COMPILE_TEST is enabled") incorrectly assumed that the imx media > driver had no build time dependency with IMX_IPUV3_CORE. > > Building on x86_64 without IMX_IPUV3_CORE causes lots of b

Re: [RFC PATCH V1 6/6] platform: mtk-isp: Add Mediatek FD driver

2019-06-06 Thread Tomasz Figa
Hi Jerry, On Tue, Apr 23, 2019 at 06:45:05PM +0800, Jerry-ch Chen wrote: > From: Jerry-ch Chen > > This patch adds the driver of Face Detection (FD) unit in > Mediatek camera system, providing face detection function. > > The mtk-isp directory will contain drivers for multiple IP > blocks found

Re: [PATCH 5/8] drivers: media: coda: fix warning same module names

2019-06-06 Thread Marc Gonzalez
On 06/06/2019 11:47, Anders Roxell wrote: > When building with CONFIG_VIDEO_CODA and CONFIG_CODA_FS enabled as > loadable modules, we see the following warning: > > warning: same module names found: > fs/coda/coda.ko > drivers/media/platform/coda/coda.ko > > Rework so media coda matches the

[RFC PATCH V3 1/4] media: platform: mtk-isp: Add Mediatek sensor interface driver

2019-06-06 Thread Louis Kuo
This patch adds Mediat:ek's sensor interface driver. Sensor interface driver is a MIPI-CSI2 host driver, namely, a HW camera interface controller. It support a widely adopted, simple, high-speed protocol primarily intended for point-to-point image and video transmission between cameras and host dev

[RFC PATCH V3 0/4] media: support Mediatek sensor interface driver

2019-06-06 Thread Louis Kuo
Hello, This is the RFC patch adding Sensor Inferface(seninf) driver on Mediatek mt8183 SoC, which will be used in camera features on CrOS application. It belongs to the first Mediatek's camera driver series based on V4L2 and media controller framework. I posted the main part of the seninf driver

[RFC PATCH V3 4/4] dts: arm64: mt8183: Add sensor interface nodes

2019-06-06 Thread Louis Kuo
Add nodes for Mediatek's sensor interface device. Sensor interface module embedded in Mediatek SOCs, works as a HW camera interface controller intended for image and data transmission between cameras and host devices. Signed-off-by: Louis Kuo --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 15 +++

[RFC PATCH V3 3/4] dt-bindings: mt8183: Add sensor interface dt-bindings

2019-06-06 Thread Louis Kuo
This patch adds the DT binding documentation for the sensor interface module in Mediatek SoCs. Signed-off-by: Louis Kuo --- .../devicetree/bindings/media/mediatek-seninf.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/media

[RFC PATCH V3 2/4] media: platform: Add Mediatek sensor interface driver KConfig

2019-06-06 Thread Louis Kuo
This patch adds KConfig for sensor interface driver. Sensor interface driver is a MIPI-CSI2 host driver, namely, a HW camera interface controller. It support a widely adopted, simple, high-speed protocol primarily intended for point-to-point image and video transmission between cameras and host dev

Re: [PATCH v1 3/3] [media] mceusb: Show USB halt/stall error recovery

2019-06-06 Thread Sean Young
On Sat, Jun 01, 2019 at 07:35:09PM -0400, A Sun wrote: > Update dev_err() messages to report status (including success) for each > step of USB RX HALT and TX HALT error recovery. If error recovery fails, > show the message: > stuck RX HALT state requires USB Reset Device to clear > or >

[GIT PULL FOR v5.3] Fix two regressions

2019-06-06 Thread Hans Verkuil
This PR fixes two regressions. The _MPLANE fix wasn't found by the test-media script since it vim2m doesn't support multiplanar formats, so it didn't hit this bug. In addition, the vicodec driver that DOES have multiplanar support isn't tested yet by the test-media script. I'm working on a patch

Re: [PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-06 Thread Tomasz Figa
On Thu, Jun 6, 2019 at 4:09 PM Hans Verkuil wrote: > > On 6/6/19 8:51 AM, Boris Brezillon wrote: > > On Thu, 6 Jun 2019 12:53:57 +0900 > > Tomasz Figa wrote: > > > >> On Thu, Jun 6, 2019 at 1:46 AM Boris Brezillon > >> wrote: > >>> > >>> CAP_M2M_MPLANE means the device supports _MPLANE formats f

Re: [PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-06 Thread Hans Verkuil
On 6/6/19 9:09 AM, Boris Brezillon wrote: > On Thu, 6 Jun 2019 08:51:59 +0200 > Boris Brezillon wrote: > >> On Thu, 6 Jun 2019 12:53:57 +0900 >> Tomasz Figa wrote: >> >>> On Thu, Jun 6, 2019 at 1:46 AM Boris Brezillon >>> wrote: CAP_M2M_MPLANE means the device supports _MPLANE forma

Re: [PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-06 Thread Hans Verkuil
On 6/6/19 8:51 AM, Boris Brezillon wrote: > On Thu, 6 Jun 2019 12:53:57 +0900 > Tomasz Figa wrote: > >> On Thu, Jun 6, 2019 at 1:46 AM Boris Brezillon >> wrote: >>> >>> CAP_M2M_MPLANE means the device supports _MPLANE formats for both >>> capture and output. Adjust the check to avoid EINVAL erro

Re: [PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-06 Thread Boris Brezillon
On Thu, 6 Jun 2019 08:51:59 +0200 Boris Brezillon wrote: > On Thu, 6 Jun 2019 12:53:57 +0900 > Tomasz Figa wrote: > > > On Thu, Jun 6, 2019 at 1:46 AM Boris Brezillon > > wrote: > > > > > > CAP_M2M_MPLANE means the device supports _MPLANE formats for both > > > capture and output. Adjust the