Re: [PATCH v5 3/5] v4l: Add HDR10 static metadata controls

2021-03-16 Thread Hans Verkuil
On 09/02/2021 17:24, Stanimir Varbanov wrote: > Introduce Content light level and Mastering display colour > volume Colorimetry compound controls with relevant payload > structures and validation. > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/v4l2-core/v4l2-ctrls.c | 67

Re: [PATCH v5 2/5] docs: Document colorimetry class

2021-03-16 Thread Hans Verkuil
`. > +* - ``V4L2_CTRL_CLASS_COLORIMETRY`` > + - 0xa50000 > + - The class containing colorimetry controls. These controls are > + described in :ref:`colorimetry-controls`. > > Return Value > > Reviewed-by: Hans Verkuil Regards, Hans

Re: [PATCH v5 1/5] v4l: Add new Colorimetry Class

2021-03-16 Thread Hans Verkuil
D_COLORIMETRY_CLASS_BASE (V4L2_CTRL_CLASS_COLORIMETRY | > 0x900) > +#define V4L2_CID_COLORIMETRY_CLASS (V4L2_CTRL_CLASS_COLORIMETRY | 1) > + > /* MPEG-compression definitions kept for backwards compatibility */ > #ifndef __KERNEL__ > #define V4L2_CTRL_CLASS_MPEGV4L2_CTRL_CLASS_CODEC > Reviewed-by: Hans Verkuil Regards, Hans

Re: [PATCH v2 1/2] v4l2-ctrl: Add decoder conceal color control

2021-03-16 Thread Hans Verkuil
> (V4L2_CID_CODEC_BASE+228) > #define V4L2_CID_MPEG_VIDEO_FORCE_KEY_FRAME > (V4L2_CID_CODEC_BASE+229) > #define V4L2_CID_MPEG_VIDEO_BASELAYER_PRIORITY_ID > (V4L2_CID_CODEC_BASE+230) > +#define V4L2_CID_MPEG_VIDEO_DEC_CONCEAL_COLOR > (V4L2_CID_CODEC_BASE+231) > > /* CIDs for the MPEG-2 Part 2 (H.262) codec */ > #define V4L2_CID_MPEG_VIDEO_MPEG2_LEVEL > (V4L2_CID_CODEC_BASE+270) > After fixing the typos: Reviewed-by: Hans Verkuil Regards, Hans

Re: [PATCH v4 11/11] uvc: use vb2 ioctl and fop helpers

2021-03-16 Thread Hans Verkuil
Hi Ricardo, On 15/03/2021 18:36, Ricardo Ribalda wrote: > From: Hans Verkuil > > When uvc was written the vb2 ioctl and file operation helpers didn't exist. > > This patch switches uvc over to those helpers, which removes a lot of > boilerplate > code and simp

Re: [PATCH v4 04/11] media: uvcvideo: set error_idx to count on EACCESS

2021-03-16 Thread Hans Verkuil
> only control > test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL > > Signed-off-by: Ricardo Ribalda > Reviewed-by: Hans Verkuil > --- > drivers/media/usb/uvc/uvc_v4l2.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/media/usb/uv

Re: [PATCH v4 08/11] media: uvcvideo: Set unique vdev name based in type

2021-03-16 Thread Hans Verkuil
break; > } > > - strscpy(vdev->name, dev->name, sizeof(vdev->name)); > + snprintf(vdev->name, sizeof(vdev->name), "%s %u", name, > + stream->header.bTerminalLink); > > /* >* Set the driver data before calling video_register_device, otherwise > With those changes: Reviewed-by: Hans Verkuil Regards, Hans

Re: [PATCH v4 09/11] media: uvcvideo: Increase the size of UVC_METADATA_BUF_SIZE

2021-03-16 Thread Hans Verkuil
Hi Ricardo, Laurent, On 15/03/2021 18:36, Ricardo Ribalda wrote: > Hans has discovered that in his test device, for the H264 format > bytesused goes up to about 570, for YUYV it will actually go up > to a bit over 5000 bytes, and for MJPG up to about 2706 bytes. > > Credit-t

Re: [PATCH v8 06/22] media: camss: Refactor VFE HW version support

2021-03-16 Thread Hans Verkuil
On 15/03/2021 16:59, Robert Foss wrote: > In order to support Qualcomm ISP hardware architectures that diverge > from older architectures, the VFE subdevice driver needs to be refactored > to better abstract the different ISP architectures. > > Gen1 represents the CAMSS ISP architecture. The ISP a

Re: [PATCH v8 09/22] media: camss: Refactor CSID HW version support

2021-03-16 Thread Hans Verkuil
nst-variable=] This array needs to be moved to camss-csid.c and declared as an extern here. Also, this menu array needs to be terminated with a NULL, and the right capitalization needs to be used (first character of each word must be a capital). This is a suggested patch I made to verify that this solv

Re: [PATCH v4 06/11] media: uvcvideo: Add support for V4L2_CTRL_TYPE_CTRL_CLASS

2021-03-16 Thread Hans Verkuil
On 15/03/2021 18:36, Ricardo Ribalda wrote: > Create all the class controls for the device defined controls. > > Fixes v4l2-compliance: > Control ioctls (Input 0): > fail: v4l2-test-controls.cpp(216): missing control class for > class 0098 > fail: v4l2-test-control

Re: [PATCH] Rectify spelling and grammar

2021-03-16 Thread Hans Verkuil
On 16/03/2021 09:16, Xiaofeng Cao wrote: > Hi Hans Verkuil, > > I'm sorry to make you confused. Please use Xiaofeng Cao > mailto:caoxiaof...@yulong.com>> Thanks, I've updated this to keep checkpatch happy. BTW, for your next patch: it is good practice to add a

Re: [PATCH] media: em28xx: Fix missing check in em28xx_capture_start

2021-03-16 Thread Hans Verkuil
Hi Dinghao Liu, Thank you for the patch, but I've decided not to take it. While the patch looks fine, it is not very useful since the return code of the em28xx_capture_start() function is never checked. And I am hesitant to change the behavior here in case it might break something subtle. Ideally

Re: [PATCH] Rectify spelling and grammar

2021-03-16 Thread Hans Verkuil
Hi Xiaofeng Cao, The patch is good, but scripts/checkpatch.pl complains about a mismatch: WARNING: From:/Signed-off-by: email address mismatch: 'From: Xiaofeng Cao ' != 'Signed-off-by: Xiaofeng Cao ' Which is the one I should use? Regards, Hans On 11/03/2021 08:20, Xiaofeng Cao wrote

Re: [PATCH v3 8/8] uvc: use vb2 ioctl and fop helpers

2021-03-12 Thread Hans Verkuil
On 12/03/2021 13:48, Ricardo Ribalda wrote: > From: Hans Verkuil > > When uvc was written the vb2 ioctl and file operation helpers didn't exist. > > This patch switches uvc over to those helpers, which removes a lot of > boilerplate > code and simplifies VIDIOC_G/S_PR

Re: [PATCH v2 5/6] media: uvcvideo: Add support for V4L2_CTRL_TYPE_CTRL_CLASS

2021-03-12 Thread Hans Verkuil
On 12/03/2021 11:13, Laurent Pinchart wrote: > Hi Ricardo, > > On Fri, Mar 12, 2021 at 10:57:33AM +0100, Ricardo Ribalda Delgado wrote: >> On Fri, Mar 12, 2021 at 2:25 AM Laurent Pinchart wrote: >>> On Thu, Mar 11, 2021 at 11:19:45PM +0100, Ricardo Ribalda wrote: Create all the class controls

Re: [PATCH v2 6/6] media: uvcvideo: Set a different name for the metadata entity

2021-03-11 Thread Hans Verkuil
On 12/03/2021 00:38, Laurent Pinchart wrote: > Hi Ricardo, > > Thank you for the patch. > > On Thu, Mar 11, 2021 at 11:19:46PM +0100, Ricardo Ribalda wrote: >> All the entities must have a unique name. >> >> Fixes v4l2-compliance: >> Media Controller ioctls: >> fail: v4l2-test-med

Re: [PATCH v2 4/6] media: uvcvideo: set error_idx to count on EACCESS

2021-03-11 Thread Hans Verkuil
w the API was designed." > > Fixes v4l2-compliance: > Control ioctls (Input 0): > fail: v4l2-test-controls.cpp(645): invalid error index write > only control > test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL > > Signed-off-by: Ricardo Ribalda After improvin

Re: [PATCH v2 3/6] media: uvcvideo: Return -EIO for control errors

2021-03-11 Thread Hans Verkuil
4l2-test-controls.cpp(448): s_ctrl returned an error > (22) > test VIDIOC_G/S_CTRL: FAIL > fail: v4l2-test-controls.cpp(698): s_ext_ctrls returned an > error (22) > test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL > > Signed-off-by: Ricardo Ribalda Reviewe

Re: [PATCH v2 2/6] media: uvcvideo: Set capability in s_param

2021-03-11 Thread Hans Verkuil
node->has_frmintervals && > !cap->capability > > Reviewed-by: Laurent Pinchart Reviewed-by: Hans Verkuil Thanks! Hans > Signed-off-by: Ricardo Ribalda > --- > drivers/media/usb/uvc/uvc_v4l2.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(

Re: [PATCH v7 00/22] Add support for the SDM845 Camera Subsystem

2021-03-11 Thread Hans Verkuil
On 11/03/2021 19:09, Robert Foss wrote: > This series implements support for the camera subsystem found in > the SDM845 SOCs and the Titan 170 ISP. The support is partial > in that it implements CSIPHY, CSID, and partial VFE support. > > The Titan generation of the ISP diverges a fair amount from

Re: linux-next: Tree for Mar 11 (media/cec/core/cec-notifier.o)

2021-03-11 Thread Hans Verkuil
On 11/03/2021 18:37, Randy Dunlap wrote: > On 3/10/21 9:14 PM, Stephen Rothwell wrote: >> Hi all, >> >> Warning: Some of the branches in linux-next are still based on v5.12-rc1, >> so please be careful if you are trying to bisect a bug. >> >> News: if your -next included tree is based on Linus' tre

Re: [PATCH 10/10] media: uvcvideo: Populate only active control classes

2021-03-11 Thread Hans Verkuil
On 11/03/2021 13:20, Ricardo Ribalda wrote: > Do not create Control Classes for empty classes. Shouldn't this be squashed with patch 06/10? Regards, Hans > > Fixes v4l2-compliance: > > Control ioctls (Input 0): > fail: v4l2-test-controls.cpp(255): no controls in

Re: [PATCH 03/10] media: uvcvideo: Return -EIO for control errors

2021-03-11 Thread Hans Verkuil
On 11/03/2021 13:20, Ricardo Ribalda wrote: > Fixes v4l2-compliance: > > Control ioctls (Input 0): > fail: v4l2-test-controls.cpp(448): s_ctrl returned an error > (22) > test VIDIOC_G/S_CTRL: FAIL > fail: v4l2-test-controls.cpp(698): s_ext_ctrls returned an

Re: [PATCH v9 7/8] arm64: dts: imx8qxp: Add jpeg encoder/decoder nodes

2021-03-11 Thread Hans Verkuil
Hi Mirela, On 11/03/2021 01:28, Mirela Rabulea (OSS) wrote: > From: Mirela Rabulea > > Add jpeg decoder/encoder nodes, for now on imx8qxp only. > The same should work on imx8qm, but it was not tested. FYI: I've posted a pull request for this driver, and once it is merged in our media tree this

Re: [PATCH v9 6/8] media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder

2021-03-10 Thread Hans Verkuil
Hi Mirela, On 11/03/2021 01:28, Mirela Rabulea (OSS) wrote: > +static const struct of_device_id mxc_jpeg_match[] = { > + { > + .compatible = "nxp,imx8qxp-jpgdec", > + .data = (void *)MXC_JPEG_DECODE, Don't do this, just say: static const int mxc_decode_mode =

Re: [EXT] Re: [PATCH v7 3/9] media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder

2021-03-10 Thread Hans Verkuil
On 10/03/2021 13:33, Mirela Rabulea wrote: > Hi Hans, > > On Thu, 2021-03-04 at 14:03 +0100, Hans Verkuil wrote: >> Caution: EXT Email >> >> On 22/02/2021 20:09, Mirela Rabulea wrote: >>> Hi Hans, >>> appologies for my late response, please see below 2

Re: [PATCH v7 1/2] media: v4l2-ctrl: add controls for long term reference.

2021-03-05 Thread Hans Verkuil
Hi Dikshita, On 03/03/2021 12:09, Dikshita Agarwal wrote: > Long Term Reference (LTR) frames are the frames that are encoded > sometime in the past and stored in the DPB buffer list to be used > as reference to encode future frames. > This change adds controls to enable this feature. > > Signed-o

Re: [PATCH v4 3/3] media: i2c: Introduce a driver for the Techwell TW9900 decoder

2021-03-04 Thread Hans Verkuil
Hi Maxime, Some more code review comments: On 19/02/2021 09:15, Maxime Chevallier wrote: > The Techwell video decoder supports PAL, NTSC and SECAM input formats, > and outputs a BT.656 signal. > > This commit adds support for this device, with basic support for NTSC > and PAL, along with brightn

Re: [EXT] Re: [PATCH v7 3/9] media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder

2021-03-04 Thread Hans Verkuil
On 22/02/2021 20:09, Mirela Rabulea wrote: > Hi Hans, > appologies for my late response, please see below 2 comments. Replies below: > > On Tue, 2021-01-19 at 11:31 +0100, Hans Verkuil wrote: >> Caution: EXT Email >> >> On 11/01/2021 20:28, Mirela Rabulea w

Re: [PATCH] media: qcom: camss: Fix overflows in clock rate calculations

2021-03-04 Thread Hans Verkuil
On 10/02/2021 13:29, Vladimir Lypak wrote: > Because of u32 type being used to store pixel clock rate, expression used > to calculate pipeline clocks (pixel_clock * bpp) produces wrong value due > to integer overflow. This patch changes data type used to store, pass and > retrieve pixel_clock from

Re: [PATCH 7/7] media: uapi: move VP8 stateless controls out of staging

2021-03-03 Thread Hans Verkuil
Hi Ezequiel, This series looks very good. There is just one define that needs a V4L2_ prefix: On 02/03/2021 21:54, Ezequiel Garcia wrote: > Until now, the VP8 V4L2 API was not exported as a public API, > and only defined in a private media header (media/vp8-ctrls.h). > > The reason for this was

Re: [PATCH v4] media: add a subsystem profile documentation

2021-03-01 Thread Hans Verkuil
On 01/03/2021 14:47, Mauro Carvalho Chehab wrote: > Em Mon, 1 Mar 2021 13:27:39 +0100 > Hans Verkuil escreveu: > >> Hi Mauro, >> > > Thanks for your review. I'm addressing the points on a v5. > > Yet, there's one that, IMHO, we should elaborate more,

Re: [PATCH v3] media: add a subsystem profile documentation

2021-03-01 Thread Hans Verkuil
On 01/03/2021 13:42, Mauro Carvalho Chehab wrote: > Em Mon, 1 Mar 2021 12:31:34 +0200 > Sakari Ailus escreveu: > >>> +Sensor drivers: >>> + Sakari Ailus >> >> Could you add me: >> >> v4l2-async, v4l2-fwnode, v4l2-flash-led-class. > > Adding in v5: > > v4l2-async, v4l2-fwnode, v4l2-fla

Re: [PATCH v4] media: add a subsystem profile documentation

2021-03-01 Thread Hans Verkuil
edia subsystem, we have a group of experienced developers that > +are responsible for doing the code reviews at the drivers (called > +sub-maintainers), and another senior developer responsible for the > +subsystem as a hole. For core changes, whenever possible, multiple hole -> whole

Re: [RFC PATCH v6 03/11] media: v4l2: Add extended buffer (de)queue operations for video types

2021-02-23 Thread Hans Verkuil
timecode field is gone, since there doesn't seem to be > in-kernel users. We can be added back in the reserved area if needed or > use the Request API to collect more metadata information from the > frame. > > Signed-off-by: Hans Verkuil > Signed-off-by: Boris Brezillon >

Re: [RFC PATCH v6 02/11] media: v4l2: Extend pixel formats to unify single/multi-planar handling (and more)

2021-02-23 Thread Hans Verkuil
Hi Helen, On 14/01/2021 19:07, Helen Koike wrote: > 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 compr

Re: [PATCH v6 1/2] media: v4l2-ctrl: add controls for long term reference.

2021-02-18 Thread Hans Verkuil
On 10/02/2021 17:03, Nicolas Dufresne wrote: > Le jeudi 04 février 2021 à 11:05 +0100, Hans Verkuil a écrit : >> On 04/02/2021 06:01, diksh...@codeaurora.org wrote: >>> On 2021-02-01 16:50, Hans Verkuil wrote: >>>> On 25/01/2021 06:51, Dikshita Agarwal wrote: >>

Re: [PATCH] test-media: wrap vivid code around $vivid variable

2021-02-17 Thread Hans Verkuil
On 17/02/2021 19:11, Helen Koike wrote: > The script was trying to load vivid and run some commands on top of it > even when $vivid = 0. > Wrap all vivid code under $vivid variable. > > Signed-off-by: Helen Koike > --- > contrib/test/test-media | 66 - > 1

Re: [PATCH v1 00/18] Add HANTRO G2/HEVC decoder support for IMX8MQ

2021-02-17 Thread Hans Verkuil
On 17/02/2021 09:36, Greg KH wrote: > On Wed, Feb 17, 2021 at 09:28:09AM +0100, Benjamin Gaignard wrote: >> >> Le 17/02/2021 à 09:08, Greg KH a écrit : >>> On Wed, Feb 17, 2021 at 09:02:48AM +0100, Benjamin Gaignard wrote: The IMX8MQ got two VPUs but until now only G1 has been enabled. Th

Re: [PATCH 1/2] v4l2-ctrl: Add decoder conceal color control

2021-02-16 Thread Hans Verkuil
On 16/02/2021 09:56, Stanimir Varbanov wrote: > > > On 2/15/21 1:57 PM, Hans Verkuil wrote: >> On 15/02/2021 12:32, Stanimir Varbanov wrote: >>> >>> >>> On 2/9/21 1:05 PM, Hans Verkuil wrote: >>>> On 09/02/2021 10:45, Stanimir Varbanov wrot

Re: [PATCH 1/2] v4l2-ctrl: Add decoder conceal color control

2021-02-15 Thread Hans Verkuil
On 15/02/2021 12:32, Stanimir Varbanov wrote: > > > On 2/9/21 1:05 PM, Hans Verkuil wrote: >> On 09/02/2021 10:45, Stanimir Varbanov wrote: >>> Add decoder v4l2 control to set conceal color. >>> >>> Signed-off-by: Stanimir Varbanov >>> --- >

Re: [PATCH AUTOSEL 5.10 14/36] media: rkisp1: uapi: change hist_bins array type from __u16 to __u32

2021-02-09 Thread Hans Verkuil
On 09/02/2021 14:02, Greg Kroah-Hartman wrote: > On Tue, Feb 09, 2021 at 01:45:35PM +0100, Dafna Hirschfeld wrote: >> >> >> Am 08.02.21 um 21:46 schrieb Hans Verkuil: >>> On 08/02/2021 18:57, Sasha Levin wrote: >>>> From: Daf

Re: [PATCH 1/2] v4l2-ctrl: Add decoder conceal color control

2021-02-09 Thread Hans Verkuil
On 09/02/2021 10:45, Stanimir Varbanov wrote: > Add decoder v4l2 control to set conceal color. > > Signed-off-by: Stanimir Varbanov > --- > .../media/v4l/ext-ctrls-codec.rst | 20 +++ > drivers/media/v4l2-core/v4l2-ctrls.c | 9 + > include/uapi/linux

Re: [PATCH AUTOSEL 5.10 14/36] media: rkisp1: uapi: change hist_bins array type from __u16 to __u32

2021-02-08 Thread Hans Verkuil
ld > Acked-by: Helen Koike > Signed-off-by: Hans Verkuil > Signed-off-by: Mauro Carvalho Chehab > Signed-off-by: Sasha Levin > --- > drivers/staging/media/rkisp1/uapi/rkisp1-config.h | 13 + > 1 file changed, 9 insertions(+), 4 deletions(-) > > diff --git a/

Re: [PATCH v8 1/5] media: i2c: Add driver for RDACM21 camera module

2021-02-08 Thread Hans Verkuil
On 08/02/2021 12:28, Laurent Pinchart wrote: > Hi Hans, > > On Mon, Feb 08, 2021 at 12:21:01PM +0100, Hans Verkuil wrote: >> On 14/01/2021 18:04, Jacopo Mondi wrote: >>> The RDACM21 is a GMSL camera supporting 1280x1080 resolution images >>> developed by IMI base

Re: [PATCH v8 1/5] media: i2c: Add driver for RDACM21 camera module

2021-02-08 Thread Hans Verkuil
Hi Jacopo, On 14/01/2021 18:04, Jacopo Mondi wrote: > The RDACM21 is a GMSL camera supporting 1280x1080 resolution images > developed by IMI based on an Omnivision OV10640 sensor, an Omnivision > OV490 ISP and a Maxim MAX9271 GMSL serializer. > > The driver uses the max9271 library module, to max

Re: [PATCH v8 1/5] media: i2c: Add driver for RDACM21 camera module

2021-02-08 Thread Hans Verkuil
Hi Jacopo, On 14/01/2021 18:04, Jacopo Mondi wrote: > The RDACM21 is a GMSL camera supporting 1280x1080 resolution images > developed by IMI based on an Omnivision OV10640 sensor, an Omnivision > OV490 ISP and a Maxim MAX9271 GMSL serializer. > > The driver uses the max9271 library module, to max

Re: Kernel version numbers after 4.9.255 and 4.4.255

2021-02-06 Thread Hans Verkuil
On 06/02/2021 10:48, Mauro Carvalho Chehab wrote: > Em Sat, 6 Feb 2021 10:29:10 +0100 > Greg Kroah-Hartman escreveu: > >> On Sat, Feb 06, 2021 at 10:24:02AM +0100, Mauro Carvalho Chehab wrote: >>> Em Sat, 6 Feb 2021 08:20:45 +0100 >>> Greg Kroah-Hartman escreveu: >>> On Fri, Feb 05, 2021

Re: [PATCH v3 2/4] drm_dp_mst_topology: use correct AUX channel

2021-02-05 Thread Hans Verkuil
On 05/02/2021 14:24, Ville Syrjälä wrote: > On Fri, Feb 05, 2021 at 04:17:51PM +1100, Sam McNally wrote: >> On Thu, 4 Feb 2021 at 21:19, Hans Verkuil wrote: >>> >>> On 01/02/2021 23:13, Ville Syrjälä wrote: >>>> On Wed, Sep 23, 2020 at 12:13:53PM +1000, Sam

Re: [PATCH] media: pwc: Fix the URB buffer allocation

2021-02-05 Thread Hans Verkuil
On 05/02/2021 14:53, Andrew Lunn wrote: > On Fri, Feb 05, 2021 at 02:42:23PM +0100, Takashi Iwai wrote: >> On Fri, 05 Feb 2021 14:13:02 +0100, >> Andrew Lunn wrote: >>> >>> Hi Takashi >>> Indeed, looks so. In most cases, this doesn't matter since both point to the same device object. In

Re: [PATCH] media: pwc: Fix the URB buffer allocation

2021-02-05 Thread Hans Verkuil
Hi Takashi, Thank you for this patch, but it clashes with another patch trying to do the same thing that has already been merged in our tree: https://patchwork.linuxtv.org/project/linux-media/patch/20210104170007.20625-1-mat...@sai.msu.ru/ I do prefer your patch over the one already merged sinc

Re: [PATCH v3 1/4] dp/dp_mst: Add support for sink event notify messages

2021-02-04 Thread Hans Verkuil
he right approach for the other > two though. > > On Wed, 3 Feb 2021 at 20:57, Hans Verkuil <mailto:hverk...@xs4all.nl>> wrote: > > Hi Sam, > > Are you able to work on a v4? > > I haven't heard from you for some time now. I would be willing t

Re: [PATCH v3 4/4] drm_dp_cec: add MST support

2021-02-04 Thread Hans Verkuil
ll MST connectors, ensuring their > drm_dp_aux_cec struct won't be accessed uninitialized. > > Reviewed-by: Hans Verkuil > Signed-off-by: Sam McNally > --- > > Changes in v3: > - Fixed whitespace in drm_dp_cec_mst_irq_work() > - Moved drm_dp_cec_mst_set_edid_work()

Re: [PATCH v3 2/4] drm_dp_mst_topology: use correct AUX channel

2021-02-04 Thread Hans Verkuil
On 01/02/2021 23:13, Ville Syrjälä wrote: > On Wed, Sep 23, 2020 at 12:13:53PM +1000, Sam McNally wrote: >> From: Hans Verkuil >> >> For adapters behind an MST hub use the correct AUX channel. >> >> Signed-off-by: Hans Verkuil >> [sa...@chromium.o

Re: [PATCH v6 1/2] media: v4l2-ctrl: add controls for long term reference.

2021-02-04 Thread Hans Verkuil
On 04/02/2021 06:01, diksh...@codeaurora.org wrote: > On 2021-02-01 16:50, Hans Verkuil wrote: >> On 25/01/2021 06:51, Dikshita Agarwal wrote: >>> Long Term Reference (LTR) frames are the frames that are encoded >>> sometime in the past and stored in the DPB buffer list

Re: [PATCH v3 1/4] dp/dp_mst: Add support for sink event notify messages

2021-02-03 Thread Hans Verkuil
Hi Sam, Are you able to work on a v4? I haven't heard from you for some time now. I would be willing to take over this series if it wasn't for the fact that I do not have any hardware to test this with. Regards, Hans On 01/02/2021 22:56, Lyude Paul wrote: > On Wed, 2020-09-23 at 12:13

Re: [PATCH v6 1/2] media: v4l2-ctrl: add controls for long term reference.

2021-02-01 Thread Hans Verkuil
On 25/01/2021 06:51, Dikshita Agarwal wrote: > Long Term Reference (LTR) frames are the frames that are encoded > sometime in the past and stored in the DPB buffer list to be used > as reference to encode future frames. > This change adds controls to enable this feature. > > Signed-off-by: Dikshit

Re: [PATCH v6 1/2] media: v4l2-ctrl: add controls for long term reference.

2021-02-01 Thread Hans Verkuil
On 25/01/2021 06:51, Dikshita Agarwal wrote: > Long Term Reference (LTR) frames are the frames that are encoded > sometime in the past and stored in the DPB buffer list to be used > as reference to encode future frames. > This change adds controls to enable this feature. > > Signed-off-by: Dikshit

Re: [PATCH v3 1/4] dp/dp_mst: Add support for sink event notify messages

2021-02-01 Thread Hans Verkuil
patch). Regards, Hans On 12/01/2021 10:24, Hans Verkuil wrote: > Hi Sam, > > This series still hasn't been merged. It still applies cleanly to v5.11-rc1. > > Daniel, can you merge this series for 5.12? Or Ack this series so I can merge > it? > > The first thre

Re: [PATCH v4l-utils] test-media: add support for vidtv

2021-01-28 Thread Hans Verkuil
Hi Daniel, On 05/01/2021 14:17, Daniel W. S. Almeida wrote: > From: "Daniel W. S. Almeida" > > Add support for vidtv at the test-media script so that automated testing > is possible. Proper compliance tests are still pending. I've tried this, but something is wrong: 'media-ctl -p' shows an empt

Re: [PATCH v2 00/15] drm/vc4: hdmi: Add CEC support for the BCM2711

2021-01-27 Thread Hans Verkuil
On 18/01/2021 14:55, Hans Verkuil wrote: > On 12/01/2021 16:24, Hans Verkuil wrote: >> Hi Maxime, >> >> On 11/01/2021 15:22, Maxime Ripard wrote: >>> Hi, >>> >>> Here's a series introducing the CEC support for the BCM2711 found on the >>

Re: [PATCH v2 1/4] v4l2-ctrl: Make display delay and display enable std controls

2021-01-27 Thread Hans Verkuil
or any codec. > > Signed-off-by: Stanimir Varbanov Acked-by: Hans Verkuil Thanks! Hans > --- > .../userspace-api/media/v4l/ext-ctrls-codec.rst | 15 +++ > drivers/media/v4l2-core/v4l2-ctrls.c | 4 > include/uapi/linux/v4l2-controls.h

Re: [PATCH v2 4/4] docs: Deprecate mfc display delay controls

2021-01-27 Thread Hans Verkuil
On 15/01/2021 10:26, Stanimir Varbanov wrote: > Deprecate mfc private display delay and display enable controls for > new clients and use the standard controls instead. > > Signed-off-by: Stanimir Varbanov Acked-by: Hans Verkuil Thanks! Hans > --- > .../userspace

Re: [PATCH v5 2/3] media: rockchip: Introduce driver for Rockhip's camera interface

2021-01-26 Thread Hans Verkuil
Hi Maxime, Note: typo in subject: Rockhip -> Rockchip Review comments below: On 29/12/2020 17:17, Maxime Chevallier wrote: > Introduce a driver for the camera interface on some Rockchip platforms. > > This controller supports CSI2 and BT656 interfaces, but for > now only the BT656 interface cou

Re: [PATCH 0/4] media: vidtv: add media controller support

2021-01-26 Thread Hans Verkuil
dtv_bridge.c | 32 +-- > .../media/test-drivers/vidtv/vidtv_bridge.h | 7 > 2 files changed, 36 insertions(+), 3 deletions(-) > For this series: Acked-by: Hans Verkuil Mauro, it would be very nice to merge this. It will make it possible to add vidtv to the test-media script for regression testing. Regards, Hans

Re: [PATCH 1/3] media: i2c: adv7842: remove open coded version of SMBus block write

2021-01-26 Thread Hans Verkuil
On 19/01/2021 10:39, Wolfram Sang wrote: > The version here is identical to the one in the I2C core, so use the > latter version directly. > > Signed-off-by: Wolfram Sang Reviewed-by: Hans Verkuil Looks good to me! Hans > --- > > Changes since RFC:

Re: [PATCH v2 2/3] media/radio: Make radio_isa_common_remove() return void

2021-01-26 Thread Hans Verkuil
On 22/01/2021 10:24, Uwe Kleine-König wrote: > Instead of an unconditional return 0, return no value. One of the two > callers ignored the return value already before. > > This simplifies the next patch. > > Signed-off-by: Uwe Kleine-König Reviewed-by: Hans Verkuil Tha

Re: [PATCH 2/3] media: i2c: adv7511: remove open coded version of SMBus block read

2021-01-26 Thread Hans Verkuil
On 19/01/2021 10:39, Wolfram Sang wrote: > The open coded version differs from the one in the core in one way: the > buffer will be always copied back, even when the transfer failed. Be > more robust: use the block read from the I2C core and propagate a > potential errno further to the sanity check

Re: [PATCH v4 4/5] docs: Document CLL and Mastering display colorimetry controls

2021-01-26 Thread Hans Verkuil
On 20/01/2021 10:26, Stanimir Varbanov wrote: > Document Content Light Level and Mastering Display v4l2 colorimetry > controls. > > Signed-off-by: Stanimir Varbanov > --- > .../media/v4l/ext-ctrls-colorimetry.rst | 71 +++ > .../media/videodev2.h.rst.exceptions |

Re: [PATCH 1/2] media: venus: core: Add sdm660 DT compatible and resource struct

2021-01-25 Thread Hans Verkuil
On 25/01/2021 15:51, AngeloGioacchino Del Regno wrote: > Il 25/01/21 11:40, Hans Verkuil ha scritto: >> On 18/01/2021 18:45, AngeloGioacchino Del Regno wrote: >>> Il 18/01/21 18:21, Stanimir Varbanov ha scritto: >>>> Hi Angelo, >>>> >>>&

Re: [PATCH v4 2/5] docs: Document colorimetry class

2021-01-25 Thread Hans Verkuil
On 20/01/2021 10:26, Stanimir Varbanov wrote: > Add a document for ext control colorimetry class. > > Signed-off-by: Stanimir Varbanov > --- > .../userspace-api/media/v4l/common.rst| 1 + > .../media/v4l/ext-ctrls-colorimetry.rst | 19 +++ > .../media/v4l/vidioc-g-

Re: [PATCH v2 3/3] isa: Make the remove callback for isa drivers return void

2021-01-25 Thread Hans Verkuil
> > Acked-by: Marc Kleine-Budde # for > drivers/net/can/sja1000/tscan1.c > Acked-by: William Breathitt Gray > Acked-by: Wolfram Sang # for drivers/i2c/ > Reviewed-by: Takashi Iway # for sound/ > Signed-off-by: Uwe Kleine-König For the media/radio drivers: Reviewed

Re: [PATCH 2/3] media: videodev2.h: clarify v4l2_pix_format_mplane.sizeimage docs when to set to zero

2021-01-25 Thread Hans Verkuil
On 14/01/2021 19:01, Helen Koike wrote: > sizeimage field should be set to zero for unused planes, even when > v4l2_pix_format_mplane.num_planes is smaller then the index of planes. then -> than > > Signed-off-by: Helen Koike > > --- > > I caught this with v4l2-compliance, which throws an err

Re: [PATCH] media: vidtv: remove redundant quote

2021-01-25 Thread Hans Verkuil
On 19/01/2021 02:09, chiguoqing wrote: > Repeated references string.h > > Signed-off-by: Wen Zhang checkpatch gives me: ERROR: Missing Signed-off-by: line by nominal patch author 'chiguoqing ' Can you fix this? Regards, Hans > --- > drivers/media/test-drivers/vidtv/vidtv_psi.c | 1

Re: [PATCH 1/2] media: venus: core: Add sdm660 DT compatible and resource struct

2021-01-25 Thread Hans Verkuil
On 18/01/2021 18:45, AngeloGioacchino Del Regno wrote: > Il 18/01/21 18:21, Stanimir Varbanov ha scritto: >> Hi Angelo, >> >> Thanks for the patch! >> >> On 1/15/21 8:52 PM, AngeloGioacchino Del Regno wrote: >>> Add the SDM660 DT compatible and its resource structure, also >>> including support for

Re: [PATCH v4 1/5] v4l: Add new Colorimetry Class

2021-01-25 Thread Hans Verkuil
On 20/01/2021 10:26, Stanimir Varbanov wrote: > Add Colorimetry control class for colorimetry controls > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/v4l2-core/v4l2-ctrls.c | 5 + > include/uapi/linux/v4l2-controls.h | 4 > 2 files changed, 9 insertions(+) > > diff --git

Re: [PATCH 5/9] media: jpu: Do not zero reserved fields

2021-01-21 Thread Hans Verkuil
On 12/01/2021 12:07, Kieran Bingham wrote: > Hi Ricardo, > > On 11/01/2021 14:54, Ricardo Ribalda wrote: >> Core code already clears reserved fields of struct >> v4l2_pix_format_mplane, check: 4e1e0eb0e074 ("media: v4l2-ioctl: Zero >> v4l2_plane_pix_format reserved fields"). >> >> Cc: Mikhail Ulya

Re: [PATCH v7 14/17] media/videobuf1|2: Mark follow_pfn usage as unsafe

2021-01-19 Thread Hans Verkuil
ffects > the zerocopy userptr usage enabled in 50ac952d2263 ("[media] > videobuf2-dma-sg: Support io userptr operations on io memory"). > > Acked-by: Tomasz Figa Acked-by: Hans Verkuil Regards, Hans > Signed-off-by: Daniel Vetter > Cc: Jason Gunthorpe

Re: [PATCH v7 3/9] media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder

2021-01-19 Thread Hans Verkuil
On 11/01/2021 20:28, Mirela Rabulea wrote: > From: Mirela Rabulea > > V4L2 driver for the JPEG encoder/decoder from i.MX8QXP/i.MX8QM application > processors. > The multi-planar buffers API is used. > > Baseline and extended sequential jpeg decoding is supported. > Progressive jpeg decoding is n

Re: [PATCH v2 00/15] drm/vc4: hdmi: Add CEC support for the BCM2711

2021-01-18 Thread Hans Verkuil
On 12/01/2021 16:24, Hans Verkuil wrote: > Hi Maxime, > > On 11/01/2021 15:22, Maxime Ripard wrote: >> Hi, >> >> Here's a series introducing the CEC support for the BCM2711 found on the >> RaspberryPi4. >> >> The BCM2711 HDMI controller uses a

Re: [PATCH RFC 1/3] media: i2c: adv7842: remove open coded version of SMBus block write

2021-01-18 Thread Hans Verkuil
On 12/01/2021 17:41, Wolfram Sang wrote: > The version here is identical to the one in the I2C core, so use a > define to keep the original name within the driver but call the I2C core > function instead. > > Signed-off-by: Wolfram Sang > --- > drivers/media/i2c/adv7842.c | 14 +- >

Re: [PATCH RFC 2/3] media: i2c: adv7842: remove open coded version of SMBus block read

2021-01-18 Thread Hans Verkuil
Hi Wolfram, On 12/01/2021 17:41, Wolfram Sang wrote: > The open coded version differs from the one in the core in one way: the > buffer will be always copied back, even when the transfer failed. It > looks like it is expected that the sanity check for a correct CRC and > header will bail out later

Re: [PATCH v4 0/2] Add base layer priority id control

2021-01-13 Thread Hans Verkuil
Hi Dikshita, On 04/01/2021 06:41, Dikshita Agarwal wrote: > This series adds base layer priority id control for encoder > and support for the same in venus driver. Posted a pull request for this series and the "Add new controls for QP and layer bitrate" series. Note that because the "Add encoder

Re: [PATCH] media: zr364xx: fix memory leaks in probe()

2021-01-13 Thread Hans Verkuil
_device *v4l2_dev) > +{ > + struct zr364xx_camera *cam = > + container_of(v4l2_dev, struct zr364xx_camera, v4l2_dev); > + > + videobuf_mmap_free(&cam->vb_vidq); > + video_unregister_device(&cam->vdev); video_unregister_device() is calle

Re: [PATCH v2 00/15] drm/vc4: hdmi: Add CEC support for the BCM2711

2021-01-12 Thread Hans Verkuil
Hi Maxime, On 11/01/2021 15:22, Maxime Ripard wrote: > Hi, > > Here's a series introducing the CEC support for the BCM2711 found on the > RaspberryPi4. > > The BCM2711 HDMI controller uses a similar layout for the CEC registers, the > main difference being that the interrupt handling part is now

Re: [PATCH v3 2/3] docs: media: Document CLL and Mastering display

2021-01-12 Thread Hans Verkuil
On 08/12/2020 15:59, Stanimir Varbanov wrote: > Document Content light level and Mastering display colour volume. > > Signed-off-by: Stanimir Varbanov > --- > .../userspace-api/media/v4l/common.rst| 1 + > .../media/v4l/ext-ctrls-colorimetry.rst | 88 +++ > 2 files

Re: [PATCH v3 1/3] v4l: Add HDR10 static metadata controls

2021-01-12 Thread Hans Verkuil
On 08/12/2020 15:59, Stanimir Varbanov wrote: > Here we introduce a new Colorimetry control class and add > Content light level and Mastering display colour volume v4l2 > compound controls, relevant payload structures and validation. > > Signed-off-by: Stanimir Varbanov > --- > .../media/videode

Re: [PATCH v2 3/4] media: v4l2-ctrls: Add control for AUD generation

2021-01-12 Thread Hans Verkuil
On 06/12/2020 11:27, Stanimir Varbanov wrote: > Add a control to enable inserting of AUD NALU into encoded > bitstream. > > Signed-off-by: Stanimir Varbanov Reviewed-by: Hans Verkuil Looks good! Hans > --- > Documentation/userspace-api/media/v4l/ext-c

Re: [PATCH v2 1/4] media: v4l2-ctrls: Add intra-refresh period control

2021-01-12 Thread Hans Verkuil
On 06/12/2020 11:27, Stanimir Varbanov wrote: > Add a control to set intra-refresh period. > > Signed-off-by: Stanimir Varbanov > --- > .../userspace-api/media/v4l/ext-ctrls-codec.rst | 11 +++ > drivers/media/v4l2-core/v4l2-ctrls.c | 2 ++ > include/uapi/linux/v4

Re: [PATCH v3 1/4] dp/dp_mst: Add support for sink event notify messages

2021-01-12 Thread Hans Verkuil
Hi Sam, This series still hasn't been merged. It still applies cleanly to v5.11-rc1. Daniel, can you merge this series for 5.12? Or Ack this series so I can merge it? The first three patches deal with DP MST support, and this needs review from you or David. Regards, Hans On 23/09/202

Re: [PATCH v5 2/2] venus: venc: Add support for Long Term Reference (LTR) controls

2021-01-12 Thread Hans Verkuil
On 04/01/2021 06:09, Dikshita Agarwal wrote: > Add support for below LTR controls in encoder: > - V4L2_CID_MPEG_VIDEO_LTR_COUNT > - V4L2_CID_MPEG_VIDEO_FRAME_LTR_INDEX > - V4L2_CID_MPEG_VIDEO_USE_LTR_FRAMES This patch does not add any Request API support to the venus driver, so it makes no sense t

Re: [PATCH v5 1/2] media: v4l2-ctrl: add control for long term reference.

2021-01-12 Thread Hans Verkuil
On 04/01/2021 06:09, Dikshita Agarwal wrote: > Long Term Reference (LTR) frames are the frames that are encoded > sometime in the past and stored in the DPB buffer list to be used > as reference to encode future frames. > This change adds controls to enable this feature. > > Signed-off-by: Dikshit

Re: [PATCH] media: v4l2: Fix memleak in videobuf_read_one

2021-01-07 Thread Hans Verkuil
On 05/01/2021 08:59, Dinghao Liu wrote: > When videobuf_waiton() fails, we should execute clean > functions to prevent memleak. It's the same when > __videobuf_copy_to_user() fails. > > Fixes: 7a7d9a89d0307 ("V4L/DVB (6251): Replace video-buf to a more generic > approach") > Signed-off-by: Dingha

Re: [PATCH] media: rkvdec: silence ktest bot build warning

2021-01-07 Thread Hans Verkuil
On 08/12/2020 16:55, Adrian Ratiu wrote: > Some configurations built by the ktest bot produce the following > warn, so mark the struct as __maybe_unused to avoid unnecessary > ML spam. > >>> drivers/staging/media/rkvdec/rkvdec.c:967:34: warning: unused variable >>> 'of_rkvdec_match' [-Wunused-con

Re: [PATCH 1/1] v4l: ioctl: Fix memory leak in video_usercopy

2020-12-20 Thread Hans Verkuil
: Add multi-planar ioctl handling code") > Cc: sta...@vger.kernel.org > Signed-off-by: Sakari Ailus Acked-by: Hans Verkuil Regards, Hans > --- > drivers/media/v4l2-core/v4l2-ioctl.c | 31 +--- > 1 file changed, 14 insertions(+), 17 deletions

Re: [PATCH 00/15] drm/vc4: hdmi: Add CEC support for the BCM2711

2020-12-17 Thread Hans Verkuil
On 17/12/2020 11:49, Maxime Ripard wrote: > Hi Hans, > > On Wed, Dec 16, 2020 at 01:35:43PM +0100, Hans Verkuil wrote: >> Hi Maxime, >> >> On 10/12/2020 14:46, Maxime Ripard wrote: >>> Hi, >>> >>> Here's a series introducing th

Re: [PATCH v3 0/2] dt-bindings: media: Convert video-interfaces.txt to schemas

2020-12-16 Thread Hans Verkuil
Hi Rob, You can add my Acked-by: Hans Verkuil to these two patches. Regards, Hans On 10/12/2020 22:16, Rob Herring wrote: > This series converts video-interfaces.txt to DT schema which in turn is > based on converting the graph binding to a schema. All the media users

Re: [PATCH 00/15] drm/vc4: hdmi: Add CEC support for the BCM2711

2020-12-16 Thread Hans Verkuil
Hi Maxime, On 10/12/2020 14:46, Maxime Ripard wrote: > Hi, > > Here's a series introducing the CEC support for the BCM2711 found on the > RaspberryPi4. > > The BCM2711 HDMI controller uses a similar layout for the CEC registers, the > main difference being that the interrupt handling part is now

Re: [PATCH v4] media: v4l2-ctrl: add control for long term reference.

2020-12-08 Thread Hans Verkuil
On 08/12/2020 17:44, diksh...@codeaurora.org wrote: > Hi Hans, > > On 2020-12-02 19:18, Hans Verkuil wrote: >> On 01/12/2020 09:13, Dikshita Agarwal wrote: >>> Long Term Reference (LTR) frames are the frames that are encoded >>> sometime in the past and stored

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