[PATCH v10 1/3] vivid: Add metadata capture support

2019-10-08 Thread Vandana BN
This patch adds meatadata capture support in vivid driver. Adds new files for metadata capture. Adds vivid controls to generate PTS and SCR for metadata stream. also fixes v4l2-compliance issues seen on metadata device. Signed-off-by: Vandana BN --- drivers/media/platform/vivid/Makefile

[PATCH v10 0/3] vivid: Metadata support

2019-10-08 Thread Vandana BN
This patch adds metadata support in vivid driver. Metadata capture supports UVCH format V4L2_META_FMT_UVC as it is widely used in webcams. https://hverkuil.home.xs4all.nl/spec/uapi/v4l/pixfmt-meta-uvc.html For Metadata output a new format V4L2_META_FMT_VIVID is added, which is used to set brightne

[PATCH v10 3/3] vivid: Add metadata output support

2019-10-08 Thread Vandana BN
Support metadata output in vivid driver. Metadata output is used to set brightness, contrast, saturation and hue. Adds new files for metadata output. Signed-off-by: Vandana BN --- drivers/media/platform/vivid/Makefile | 2 +- drivers/media/platform/vivid/vivid-core.c | 98

[PATCH v10 2/3] v4l2-core: Add new metadata format

2019-10-08 Thread Vandana BN
Add new metadata format to support metadata output in vivid. Signed-off-by: Vandana BN --- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + include/uapi/linux/videodev2.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-i

Re: [PATCH v4 01/11] dt-bindings: video-interfaces: Document 'location' property

2019-10-08 Thread Pavel Machek
On Mon 2019-10-07 18:29:03, Jacopo Mondi wrote: > Add the 'location' device property, used to specify a device mounting > position. The property is particularly meaningful for mobile devices > with a well defined usage orientation. > > Signed-off-by: Jacopo Mondi > --- > .../devicetree/bindings/

Re: [PATCH v4 01/11] dt-bindings: video-interfaces: Document 'location' property

2019-10-08 Thread Jacopo Mondi
Pavel, On Tue, Oct 08, 2019 at 09:40:52AM +0200, Pavel Machek wrote: > On Mon 2019-10-07 18:29:03, Jacopo Mondi wrote: > > Add the 'location' device property, used to specify a device mounting > > position. The property is particularly meaningful for mobile devices > > with a well defined usage or

Re: [PATCH v4 01/11] dt-bindings: video-interfaces: Document 'location' property

2019-10-08 Thread Pavel Machek
On Tue 2019-10-08 09:58:28, Jacopo Mondi wrote: > Pavel, > > On Tue, Oct 08, 2019 at 09:40:52AM +0200, Pavel Machek wrote: > > On Mon 2019-10-07 18:29:03, Jacopo Mondi wrote: > > > Add the 'location' device property, used to specify a device mounting > > > position. The property is particularly me

Re: [PATCH v4 01/11] dt-bindings: video-interfaces: Document 'location' property

2019-10-08 Thread Jacopo Mondi
On Tue, Oct 08, 2019 at 10:06:34AM +0200, Pavel Machek wrote: > On Tue 2019-10-08 09:58:28, Jacopo Mondi wrote: > > Pavel, > > > > On Tue, Oct 08, 2019 at 09:40:52AM +0200, Pavel Machek wrote: > > > On Mon 2019-10-07 18:29:03, Jacopo Mondi wrote: > > > > Add the 'location' device property, used to

[PATCH -next] media: vimc: Fix error return code in vimc_register_devices()

2019-10-08 Thread Wei Yongjun
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: f13d5f361959 ("media: vimc: Collapse component structure into a single monolithic driver") Signed-off-by: Wei Yongjun --- drivers/media/platform/vimc/vimc-core.c | 4 +++- 1

[RFC PATCH v3 2/6] media: v4l2: Add extended buffer operations

2019-10-08 Thread Boris Brezillon
From: Hans Verkuil Those extended buffer ops have several purpose: 1/ Fix y2038 issues by converting the timestamp into an u64 counting the number of ns elapsed since 1970 2/ Unify single/multiplanar handling 3/ Add a new start offset field to each v4l2 plane buffer info struct to support t

[RFC PATCH v3 6/6] media: vimc: Implement the ext_fmt and ext_buf hooks

2019-10-08 Thread Boris Brezillon
Convert the driver to the _ext_fmt and _ext_buf API. Signed-off-by: Boris Brezillon --- Changes in v3: - Rebased on top of media/master (post 5.4-rc1) Changes in v2: - New patch --- drivers/media/platform/vimc/vimc-capture.c | 65 +++--- drivers/media/platform/vimc/vimc-common.c

[RFC PATCH v3 4/6] media: mediabus: Add an helper to convert a ext_pix format to an mbus_fmt

2019-10-08 Thread Boris Brezillon
Just a new version of v4l2_fill_mbus_format() to deal with the new v4l2_ext_pix_format struct. This is needed to convert the VIMC driver to the EXT_FMT/EXT_BUF iocts. Signed-off-by: Boris Brezillon --- Changes in v3: - Rebased on top of media/master (post 5.4-rc1) Changes in v2: - New patch ---

[RFC PATCH v3 3/6] media: videobuf2: Expose helpers to implement the _ext_fmt and _ext_buf hooks

2019-10-08 Thread Boris Brezillon
The VB2 layer is used by a lot of drivers. Patch it to support the _EXT_FMT and _EXT_BUF ioctls in order to ease conversion of existing drivers to these new APIs. Note that internally, the VB2 core is now only using ext structs and old APIs are supported through conversion wrappers. Signed-off-by

[RFC PATCH v2 0/7] media: v4l2: Add extended fmt and buffer ioctls

2019-10-08 Thread Boris Brezillon
Hello, This RFC follows the discussion started by Hans [1] a few months back. It does not try to address all the problem reported in this thread but instead focuses on the FMT and BUF(S) ioctls. Note that my primary goal is to unify handling for multiplanar and singleplanar formats and extend thi

[RFC PATCH v3 1/6] media: v4l2: Extend pixel formats to unify single/multi-planar handling (and more)

2019-10-08 Thread Boris Brezillon
This is part of the multiplanar and singleplanar unification process. v4l2_ext_pix_format is supposed to work for both cases. We also add the concept of modifiers already employed in DRM to expose HW-specific formats (like tiled or compressed formats) and allow exchanging this information with the

[RFC PATCH v3 5/6] media: vivid: Convert the capture and output drivers to EXT_FMT/EXT_BUF

2019-10-08 Thread Boris Brezillon
This should simplify things a bit as we now have a single implementation instead of the MPLANE and !MPLANE versions. Signed-off-by: Boris Brezillon --- Changes in v3: - Rebased on top of media/master (post 5.4-rc1) Changes in v2: - New patch --- drivers/media/platform/vivid/vivid-core.c| 3

Re: [RFC PATCH v2 0/7] media: v4l2: Add extended fmt and buffer ioctls

2019-10-08 Thread Boris Brezillon
On Tue, 8 Oct 2019 11:11:13 +0200 Boris Brezillon wrote: Oops, forgot to update the subject. Should be: "[RFC PATCH v3 0/6] media: v4l2: Add extended fmt and buffer ioctls" > Hello, > > This RFC follows the discussion started by Hans [1] a few months back. > It does not try to address all the

[PATCH v2] media: venus: fix build on 32bit environments

2019-10-08 Thread Mauro Carvalho Chehab
As reported by jenk...@linuxtv.org, the build with i386 fails with: ld: drivers/media/platform/qcom/venus/helpers.o: in function `venus_helper_load_scale_clocks': (.text+0x1d77): undefined reference to `__udivdi3' ld: (.text+0x1dce): undefined reference to `__udivdi3'

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Fabio Estevam
On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: > So now I need to see if I can get Gstreamer to accept a pipeline like: > > gst-lauch-1.0 v4l2src ! kmssink Ok, so now I decided use the hardware video deinterlacer: media-ctl -l "'adv7180 1-0021':0 -> 'ipu1_csi0':0[1]" media-ctl -l "'ipu1_c

[PATCH] media: hantro: relax s_fmt(out) busy error

2019-10-08 Thread Philipp Zabel
Setting the output format resets the capture queue, so we return -EBUSY while the capture queue has buffers allocated. If capture dimensions and pixel format don't change though, we can allow setting the output format without reallocating the capture queue. Signed-off-by: Philipp Zabel --- This a

Re: [PATCH] staging: media: sunxi: make use of devm_platform_ioremap_resource

2019-10-08 Thread Greg Kroah-Hartman
On Tue, Oct 08, 2019 at 12:29:34PM +0530, haripra...@osuosl.org wrote: > From: Hariprasad Kelam > > fix below issue reported by coccicheck > drivers/staging//media/sunxi/cedrus/cedrus_hw.c:229:1-10: WARNING: Use > devm_platform_ioremap_resource for dev -> base > > Signed-off-by: Hariprasad Kelam

Re: [PATCH -next] media: vimc: Fix error return code in vimc_register_devices()

2019-10-08 Thread Helen Koike
Hi, On 10/8/19 6:01 AM, Wei Yongjun wrote: > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: f13d5f361959 ("media: vimc: Collapse component structure into a single > monolithic driver") > Signed-off-by: Wei Yongjun

Re: [PATCH 1/5] media: vimc: upon streaming, check that the pipeline starts with a source entity

2019-10-08 Thread Dafna Hirschfeld
Hi, Thanks for the review, On Thu, 2019-09-26 at 08:32 -0600, Shuah Khan wrote: > On 9/19/19 2:32 PM, Dafna Hirschfeld wrote: > > Userspace can disable links and create pipelines that > > do not start with a source entity. Trying to stream > > from such a pipeline should fail with -EPIPE > > curre

Re: [PATCH] media: hantro: relax s_fmt(out) busy error

2019-10-08 Thread Tomasz Figa
Hi Philipp, On Tue, Oct 8, 2019 at 9:38 PM Philipp Zabel wrote: > > Setting the output format resets the capture queue, so we return -EBUSY > while the capture queue has buffers allocated. If capture dimensions > and pixel format don't change though, we can allow setting the output > format witho

Re: hi

2019-10-08 Thread Nicole Malachowski
I am COLONEL NICOLE MALACHOWSKI from United State of America. I have a confidential geniue lucrative business of $23.500.000.00 million U.S dollars with mutaul interest.

Re: [PATCH] media: hantro: relax s_fmt(out) busy error

2019-10-08 Thread Philipp Zabel
Hi Tomasz, On Tue, 2019-10-08 at 23:05 +0900, Tomasz Figa wrote: > Hi Philipp, > > On Tue, Oct 8, 2019 at 9:38 PM Philipp Zabel wrote: > > > > Setting the output format resets the capture queue, so we return -EBUSY > > while the capture queue has buffers allocated. If capture dimensions > > and

Re: [PATCH v2] media: venus: fix build on 32bit environments

2019-10-08 Thread Stanimir Varbanov
Mauro, thanks for the fix! On 10/8/19 1:47 PM, Mauro Carvalho Chehab wrote: > As reported by jenk...@linuxtv.org, the build with i386 fails > with: > > ld: drivers/media/platform/qcom/venus/helpers.o: in function > `venus_helper_load_scale_clocks': > (.text+0x1d77): undefined referen

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Tim Harvey
On Tue, Oct 8, 2019 at 4:21 AM Fabio Estevam wrote: > > On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: > > > So now I need to see if I can get Gstreamer to accept a pipeline like: > > > > gst-lauch-1.0 v4l2src ! kmssink > > Ok, so now I decided use the hardware video deinterlacer: > > media

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Steve Longerbeam
On 10/8/19 9:55 AM, Tim Harvey wrote: On Tue, Oct 8, 2019 at 4:21 AM Fabio Estevam wrote: On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: So now I need to see if I can get Gstreamer to accept a pipeline like: gst-lauch-1.0 v4l2src ! kmssink Ok, so now I decided use the hardware vid

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Ian Arkver
On 08/10/2019 18:14, Steve Longerbeam wrote: On 10/8/19 9:55 AM, Tim Harvey wrote: On Tue, Oct 8, 2019 at 4:21 AM Fabio Estevam wrote: On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: So now I need to see if I can get Gstreamer to accept a pipeline like: gst-lauch-1.0 v4l2src ! kmss

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Steve Longerbeam
On 10/8/19 10:20 AM, Ian Arkver wrote: On 08/10/2019 18:14, Steve Longerbeam wrote: On 10/8/19 9:55 AM, Tim Harvey wrote: On Tue, Oct 8, 2019 at 4:21 AM Fabio Estevam wrote: On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: So now I need to see if I can get Gstreamer to accept a pi

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Ian Arkver
On 08/10/2019 18:30, Steve Longerbeam wrote: On 10/8/19 10:20 AM, Ian Arkver wrote: On 08/10/2019 18:14, Steve Longerbeam wrote: On 10/8/19 9:55 AM, Tim Harvey wrote: On Tue, Oct 8, 2019 at 4:21 AM Fabio Estevam wrote: On Mon, Oct 7, 2019 at 10:07 PM Fabio Estevam wrote: So now I need

HERE IS YOUR MONEY GRAM PAYMENT HAS BEEN SENT TO YOU HERE IS THE M.T.C.N:78393135

2019-10-08 Thread MONEY GRAM
HERE IS YOUR MONEY GRAM PAYMENT HAS BEEN SENT TO YOU HERE IS THE M.T.C.N:78393135 Attn: Beneficiary, This is to inform you that the America Embassy office was instructed to transfer your fund $980,000.00 U.S Dollars compensating all the SCAM VICTIMS and your email was found as one of the VICTIMS.

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Fabio Estevam
Hi Tim, On Tue, Oct 8, 2019 at 1:55 PM Tim Harvey wrote: > I still carry around a patch from Steve for imx-csi that drops first > few frames from BT656 sources: > https://github.com/Gateworks/linux-imx6/commit/959fbd42ee6433f49ef4a04fb1abe8f8c78db5ad > to deal with this. Tried this patch and no

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Tim Harvey
On Tue, Oct 8, 2019 at 1:34 PM Fabio Estevam wrote: > > Hi Tim, > > On Tue, Oct 8, 2019 at 1:55 PM Tim Harvey wrote: > > > I still carry around a patch from Steve for imx-csi that drops first > > few frames from BT656 sources: > > https://github.com/Gateworks/linux-imx6/commit/959fbd42ee6433f49ef

[PATCH 1/2] rcar-vin: Rename wrongly named rectangle

2019-10-08 Thread Niklas Söderlund
After recent refactoring the rectangle named crop no longer reflects it usage, to contain the source rectangle. Fix this by renaming it. There is no functional change. Signed-off-by: Niklas Söderlund --- drivers/media/platform/rcar-vin/rcar-v4l2.c | 21 +++-- 1 file changed, 11 i

[PATCH 2/2] rcar-vin: Create compose rectangle where it is used

2019-10-08 Thread Niklas Söderlund
The rectangle used to correct the compose settings when changing the format was created inside a helper function and not where it was used. This is confusing and makes the code harder to read, fix this. This cleanup is made possible due to refactoring elsewhere and there is no functional change.

[PATCH 0/2] rcar-vin: Cleanup how subdevice format is handled

2019-10-08 Thread Niklas Söderlund
Hi, This small series clean up how formats coming from the subdevice is handled inside the driver. The changes are made possible after recent VIN patches paved the way. There should not be any functional changes in this series. Niklas Söderlund (2): rcar-vin: Rename wrongly named rectangle

Re: [PATCH 1/2] rcar-vin: Define which hardware supports NV12

2019-10-08 Thread Niklas Söderlund
Hi Simon, Sorry for missing this mail. On 2019-09-08 13:20:59 +0100, Simon Horman wrote: > On Fri, Sep 06, 2019 at 04:40:28PM +0200, Niklas Söderlund wrote: > > Most but not all Gen3 boards support outputting NV12, add a flag to > > indicate which boards. > > > > Signed-off-by: Niklas Söderlund

Re: ADV7180 Capture with i.MX53

2019-10-08 Thread Fabio Estevam
Hi Tim, On Tue, Oct 8, 2019 at 6:01 PM Tim Harvey wrote: > Ok that's strange indeed. I did recently test 5.3 on a Gateworks IMX6 > board with ADV7180 and the one patch to drop the first few frames and > its stable. What does your testing show on an IMX6 and do you know I will give it a try on a

cron job: media_tree daily build: OK

2019-10-08 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: Wed Oct 9 05:00:11 CEST 2019 media-tree git hash:219031a6e7dff52a066e8b074adc0697f501e3d3 media_build gi

Re: [virtio-dev] [PATCH] [RFC RESEND] vdec: Add virtio video decode device specification

2019-10-08 Thread Tomasz Figa
On Tue, Oct 8, 2019 at 12:09 AM Dmitry Morozov wrote: > > Hi Tomasz, > > On Montag, 7. Oktober 2019 16:14:13 CEST Tomasz Figa wrote: > > Hi Dmitry, > > > > On Mon, Oct 7, 2019 at 11:01 PM Dmitry Morozov > > > > wrote: > > > Hello, > > > > > > We at OpenSynergy are also working on an abstract para

Re: [PATCH] media: hantro: relax s_fmt(out) busy error

2019-10-08 Thread Tomasz Figa
On Tue, Oct 8, 2019 at 11:44 PM Philipp Zabel wrote: > > Hi Tomasz, > > On Tue, 2019-10-08 at 23:05 +0900, Tomasz Figa wrote: > > Hi Philipp, > > > > On Tue, Oct 8, 2019 at 9:38 PM Philipp Zabel wrote: > > > > > > Setting the output format resets the capture queue, so we return -EBUSY > > > while