Re: [ANN v2] Media sessions in Lyon in October: libcamera

2019-10-20 Thread Ezequiel Garcia
Attendees for this session: > > Nicolas Dufresne > Tomasz Figa > Ezequiel Garcia > Dafna Hirschfeld I beliebe Dafna and I should not be on this list, and instead Helen Koike and Nicolas Dufresne would be attending. Thanks, Ezequiel > Eugen Hristev > Jacopo Mondi > Laurent Pi

Re: [PATCHv2 2/2] v4l2-ioctl.c: use new v4l2_fourcc_conv/args macros

2019-10-02 Thread Ezequiel Garcia
(char)((fmt->pixelformat >> 8) & 0x7f), > - (char)((fmt->pixelformat >> 16) & 0x7f), > - (char)((fmt->pixelformat >> 24) & 0x7f), > - (fmt->pixelformat & (1UL << 31)) ? > "-BE" : ""); > + snprintf(fmt->description, sz, v4l2_fourcc_conv, > + v4l2_fourcc_args(fmt->pixelformat)); > break; > } > } Nice cleanup! I think these are the only media drivers that would have to be converted, in case anyone wants to tackle this. drivers/media/common/saa7146/saa7146_video.c: vv->ov_fmt->pixelformat, v4l2_field_names[vv->ov.win.field]); drivers/media/platform/atmel/atmel-isc-base.c: (char *)&pixfmt->pixelformat, (char *)&sd_fmt->fourcc); drivers/media/platform/sti/delta/delta-debug.c: (char *)&f->pixelformat, f->width, f->height, drivers/media/platform/vsp1/vsp1_drm.c: cfg->pixelformat, cfg->pitch, &cfg->mem[0], &cfg->mem[1], Reviewed-by: Ezequiel Garcia Thanks, Ezequiel

Re: [PATCHv2 1/2] v4l: Add macros for printing V4L fourcc values

2019-10-02 Thread Ezequiel Garcia
side-effects. > + */ > +#define v4l2_fourcc_args(fourcc) \ > + (fourcc) & 0x7f, ((fourcc) >> 8) & 0x7f, ((fourcc) >> 16) & 0x7f, \ > + ((fourcc) >> 24) & 0x7f, ((fourcc) & (1 << 31) ? "-BE" : "") > + > /* > * E N U M S > */ Reviewed-by: Ezequiel Garcia Thanks, Ezequiel

Re: [PATCH 0/4] Enable Hantro G1 post-processor

2019-09-12 Thread Ezequiel Garcia
On Thu, 2019-09-12 at 14:52 +0900, Tomasz Figa wrote: > On Thu, Sep 12, 2019 at 4:49 AM Nicolas Dufresne wrote: > > Le mercredi 11 septembre 2019 à 09:27 +0100, Ezequiel Garcia a écrit : > > > On Mon, 2019-09-09 at 16:07 +0900, Tomasz Figa wrote: > > > > Hi Ezequiel

Re: [PATCH] rcar-vin: Use bytes per line instead of width for UV offset

2019-09-11 Thread Ezequiel Garcia
Hello Niklas, On Thu, 2019-09-05 at 23:25 +0200, Niklas Söderlund wrote: > The image size is doubled for NV16 and is calculated as bytesperline * > height * 2 to accommodate the split of UV data. When writing the offset > to hardware width is used instead of bytesperline, fix this. > > Signed-off

Re: [PATCH 4/4] media: hantro: Support color conversion via post-processing

2019-09-11 Thread Ezequiel Garcia
On Mon, 2019-09-09 at 13:03 +0200, Hans Verkuil wrote: > On 9/3/19 8:17 PM, Ezequiel Garcia wrote: > > The Hantro G1 decoder is able to enable a post-processor > > on the decoding pipeline, which can be used to perform > > scaling and color conversion. > > > > Th

Re: [PATCH 0/4] Enable Hantro G1 post-processor

2019-09-11 Thread Ezequiel Garcia
On Mon, 2019-09-09 at 16:07 +0900, Tomasz Figa wrote: > Hi Ezequiel, > > On Wed, Sep 4, 2019 at 3:17 AM Ezequiel Garcia wrote: > > Hi all, > > > > This series enables the post-processor support available > > on the Hantro G1 VPU. The post-processor block can

Re: [PATCH 3/4] media: hantro: Add helper for the H264 motion vectors allocation

2019-09-04 Thread Ezequiel Garcia
On Wed, 2019-09-04 at 12:17 +0200, Philipp Zabel wrote: > On Tue, 2019-09-03 at 15:17 -0300, Ezequiel Garcia wrote: > > Introduce a helper to allow easier enablement of the post-processing > > feature. No functional changes intended. > > > > Signed-off-by: Ezequiel G

[PATCH 4/4] media: hantro: Support color conversion via post-processing

2019-09-03 Thread Ezequiel Garcia
them. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/Makefile | 1 + drivers/staging/media/hantro/hantro.h | 23 +- drivers/staging/media/hantro/hantro_drv.c | 24 +- .../staging/media/hantro/hantro_g1_h264_dec.c | 2 +- .../media/hantro/hantro_g1_mpeg2_

[PATCH 0/4] Enable Hantro G1 post-processor

2019-09-03 Thread Ezequiel Garcia
and YUV-packed surfaces. Thanks, Ezequiel Ezequiel Garcia (4): media: hantro: Simplify macroblock macros media: hantro: Simplify buffer helpers media: hantro: Add helper for the H264 motion vectors allocation media: hantro: Support color conversion via post-processing drivers/staging/media/

[PATCH 2/4] media: hantro: Simplify buffer helpers

2019-09-03 Thread Ezequiel Garcia
Modify hantro_get_ref() and hantro_h264_get_ref_buf() helpers to return the buffer DMA address, this makes the code simpler and at the same time will allow easier enablement of the post-processing feature. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro.h | 2

[PATCH 3/4] media: hantro: Add helper for the H264 motion vectors allocation

2019-09-03 Thread Ezequiel Garcia
Introduce a helper to allow easier enablement of the post-processing feature. No functional changes intended. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro.h | 6 ++ drivers/staging/media/hantro/hantro_v4l2.c | 4 ++-- 2 files changed, 8 insertions(+), 2

[PATCH 1/4] media: hantro: Simplify macroblock macros

2019-09-03 Thread Ezequiel Garcia
It seems all codecs are using a 16x16 size macroblock, and so it's possible to have just one set of macroblock macros. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro.h | 18 +++--- .../staging/media/hantro/hantro_g1_h264_dec.c | 2 +- .../st

Re: [ANN] Topics for a media summit in Lyon in October

2019-08-19 Thread Ezequiel Garcia
On Mon, 2019-08-19 at 09:44 +0200, Hans Verkuil wrote: > On 8/16/19 10:06 AM, Hans Verkuil wrote: > > Rather then discussing topics for a meeting under the subject 'Lisbon' > > let's start a new thread referring to the right place :-) > > > > I will try to organize a room, either during the ELCE o

[PATCH] media: rockchip/rga: Update maintainership

2019-08-15 Thread Ezequiel Garcia
Update Jacob's address and add myself as co-maintainer. Signed-off-by: Ezequiel Garcia --- Note that I have a few minor changes in mind for this driver, but frst, I'll need to fix whatever is wrong with gstreamer not probing it anymore. MAINTAINERS | 3 ++- 1 file changed, 2 insert

[PATCH v2 3/6] media: v4l2-core: move i2c helpers out of v4l2-common.c

2019-08-15 Thread Ezequiel Garcia
: Ezequiel Garcia --- Changes v2: * None. --- drivers/media/v4l2-core/Kconfig | 5 + drivers/media/v4l2-core/Makefile | 1 + drivers/media/v4l2-core/v4l2-common.c | 145 - drivers/media/v4l2-core/v4l2-i2c.c| 147 ++ include/media/v4l2

[PATCH v2 6/6] media: v4l2-core: Remove BUG() from i2c and spi helpers

2019-08-15 Thread Ezequiel Garcia
prepared for a NULL result. Signed-off-by: Ezequiel Garcia --- Changes v2: * New patch. --- drivers/media/v4l2-core/v4l2-i2c.c | 3 ++- drivers/media/v4l2-core/v4l2-spi.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-i2c.c b/drivers/media

[PATCH v2 0/6] V4L2 core I2C/SPI code cleanup

2019-08-15 Thread Ezequiel Garcia
#x27;m not addressing that in this series. The entire series should not affect any functionality, but just clean-up the code a bit. Thanks, Eze Ezequiel Garcia (6): media: v4l2-core: Module re-organization media: v4l2-core: move spi helpers out of v4l2-common.c media: v4l2-core: move i2c helpers o

[PATCH v2 4/6] media: v4l2-core: introduce a helper to unregister a spi subdev

2019-08-15 Thread Ezequiel Garcia
Introduce a new video4linux2 spi helper, to unregister a subdev. This allows to get rid of some more ifdefs. Signed-off-by: Ezequiel Garcia --- Changes v2: * None. --- drivers/media/v4l2-core/v4l2-device.c | 14 ++ drivers/media/v4l2-core/v4l2-spi.c| 8 include/media

[PATCH v2 5/6] media: v4l2-core: introduce a helper to unregister a i2c subdev

2019-08-15 Thread Ezequiel Garcia
Introduce a new video4linux2 i2c helper, to unregister a subdev. This allows to get rid of yet another ifdef. Signed-off-by: Ezequiel Garcia --- Changes v2: * None. --- drivers/media/v4l2-core/v4l2-device.c | 25 ++--- drivers/media/v4l2-core/v4l2-i2c.c| 20

[PATCH v2 2/6] media: v4l2-core: move spi helpers out of v4l2-common.c

2019-08-15 Thread Ezequiel Garcia
Separate the spi helpers to v4l2-spi.c, in order to get rid of the ifdefery. No functional changes intended, this is just a cosmetic change to organize the code better. Signed-off-by: Ezequiel Garcia --- Changes v2: * None. --- drivers/media/v4l2-core/Makefile | 1 + drivers/media/v4l2

[PATCH v2 1/6] media: v4l2-core: Module re-organization

2019-08-15 Thread Ezequiel Garcia
s y/m/n. This commit makes v4l2-common part of our V4L2 core driver (videodev.ko). Signed-off-by: Ezequiel Garcia --- Changes v2: * Fix MODULE_xxx macros, combining all the authors and amending the description. --- drivers/media/v4l2-core/Makefile | 3 +-- drivers/media/v4l2-core/v4l2-com

[PATCH v3] media: i2c: ov5645: Fix power sequence

2019-08-08 Thread Ezequiel Garcia
th this commit the sensor is able to enter LP-11 mode during power up, as expected by some CSI-2 controllers. Many thanks to Fabio Estevam for his help debugging this issue. Tested-by: Fabio Estevam Signed-off-by: Ezequiel Garcia Reviewed-by: Philipp Zabel Reviewed-by: Jacopo Mondi ---

Re: [PATCH v3] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-08-07 Thread Ezequiel Garcia
Hi Sakari, Thanks for reviewing the patch. On Wed, 2019-08-07 at 15:06 +0300, Sakari Ailus wrote: > On Tue, Jul 30, 2019 at 05:14:24AM -0300, Ezequiel Garcia wrote: > > Hey Hans, > > > > On Mon, 2019-07-01 at 08:48 +0200, Philipp Zabel wrote: > > > On Thu, 20

Re: [PATCH v2] media: i2c: ov5645: Fix power sequence

2019-07-30 Thread Ezequiel Garcia
Hi Hans, Sakari, On Wed, 2019-07-10 at 15:40 -0300, Ezequiel Garcia wrote: > This is mostly a port of Jacopo's fix: > > commit aa4bb8b8838ffcc776a79f49a4d7476b82405349 > Author: Jacopo Mondi > Date: Fri Jul 6 05:51:52 2018 -0400 > > media: ov5640: Re-

Re: [PATCH v3] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-07-30 Thread Ezequiel Garcia
Hey Hans, On Mon, 2019-07-01 at 08:48 +0200, Philipp Zabel wrote: > On Thu, 2019-06-27 at 19:29 -0300, Fabio Estevam wrote: > > From: Ezequiel Garcia > > > > Not all sensors will be able to guarantee a proper initial state. > > This may be either because the dri

Re: [PATCH] media input infrastructure:tw686x: Added custom function for video device release functionality in tw686x driver

2019-07-27 Thread Ezequiel Garcia
Hi Mark, On Fri, 26 Jul 2019 at 17:41, Mark Balantzyan wrote: > > Signed-off-by: Mark Balantzyan > Reported-by: kbuild test robot > --- > This patch adds a custom function for releasing the video device for the > tw686x video device driver. > > drivers/media/pci/tw686x/tw686x-video.c | 23 +++

Re: tw686x driver (continued)

2019-07-27 Thread Ezequiel Garcia
Hi Mark, On Wed, 24 Jul 2019 at 09:25, Mark Balançian wrote: > > Hi Ezequiel, > > (sorry didn't include linux-media in first email) > I'm not sure yet if I have my supervisor's permission to declare our > tool as open source, but I'll tell you the possible code paths that I > think may be leading

Re: tw686x driver (continued)

2019-07-27 Thread Ezequiel Garcia
Hi Hans, On Wed, 24 Jul 2019 at 10:08, Hans Verkuil wrote: > > On 7/24/19 2:25 PM, Mark Balançian wrote: > > Hi Ezequiel, > > > > (sorry didn't include linux-media in first email) > > I'm not sure yet if I have my supervisor's permission to declare our > > tool as open source, but I'll tell you t

[PATCH] media: Clarify how menus are hidden by SUBDRV_AUTOSELECT

2019-07-27 Thread Ezequiel Garcia
at it uses the "visible" syntax to hide the menus. This is not obvious and it normally takes some time to figure out. To fix the problem, add a comment on each of hidden menus, which should clarify what option is causing menus to be hidden. Signed-off-by: Ezequiel Garcia --- d

Re: [PATCH v3 1/3] media: uapi: h264: Clarify our expectations regarding NAL header format

2019-07-27 Thread Ezequiel Garcia
On Fri, 2019-07-26 at 09:30 +0200, Boris Brezillon wrote: > On Fri, 26 Jul 2019 08:28:28 +0200 > Boris Brezillon wrote: > > > On Thu, 25 Jul 2019 23:39:11 -0300 > > Ezequiel Garcia wrote: > > > > > On Thu, 2019-07-25 at 21:36 +0200, Paul Kocialkowski wrot

Re: [PATCH 2/2] media: Don't hide any menu if "ancillary drivers autoselect" is enabled

2019-07-26 Thread Ezequiel Garcia
On Thu, 2019-07-25 at 23:09 -0300, Mauro Carvalho Chehab wrote: > Em Thu, 25 Jul 2019 20:55:13 -0300 > Ezequiel Garcia escreveu: > > > On Thu, 2019-07-25 at 15:41 -0300, Mauro Carvalho Chehab wrote: > > > Em Fri, 26 Jul 2019 01:29:58 +0800 > > > Chen-Yu Tsai

Re: [PATCH 2/2] media: Don't hide any menu if "ancillary drivers autoselect" is enabled

2019-07-25 Thread Ezequiel Garcia
On Thu, 2019-07-25 at 23:09 -0300, Mauro Carvalho Chehab wrote: > Em Thu, 25 Jul 2019 20:55:13 -0300 > Ezequiel Garcia escreveu: > > > On Thu, 2019-07-25 at 15:41 -0300, Mauro Carvalho Chehab wrote: > > > Em Fri, 26 Jul 2019 01:29:58 +0800 > > > Chen-Yu Tsai

Re: [PATCH v3 1/3] media: uapi: h264: Clarify our expectations regarding NAL header format

2019-07-25 Thread Ezequiel Garcia
On Thu, 2019-07-25 at 21:36 +0200, Paul Kocialkowski wrote: > Hi, > > On Thu 25 Jul 19, 08:42, Boris Brezillon wrote: > > On Fri, 5 Jul 2019 19:16:18 +0200 > > Boris Brezillon wrote: > > > > > On Fri, 05 Jul 2019 13:40:03 -0300 > > > Ezequiel

Re: [PATCH 2/2] media: Don't hide any menu if "ancillary drivers autoselect" is enabled

2019-07-25 Thread Ezequiel Garcia
On Thu, 2019-07-25 at 15:41 -0300, Mauro Carvalho Chehab wrote: > Em Fri, 26 Jul 2019 01:29:58 +0800 > Chen-Yu Tsai escreveu: > > > On Fri, Jul 26, 2019 at 1:06 AM Ezequiel Garcia > > wrote: > > > On Thu, 2019-07-25 at 12:57 -0300, Mauro Carvalho Chehab wrote:

Re: [PATCH 2/6] media: v4l2-core: Module re-organization

2019-07-25 Thread Ezequiel Garcia
On Thu, 2019-07-25 at 14:03 -0300, Mauro Carvalho Chehab wrote: > Em Thu, 25 Jul 2019 13:41:34 -0300 > Ezequiel Garcia escreveu: > > > On Thu, 2019-07-25 at 13:31 -0300, Mauro Carvalho Chehab wrote: > > > Em Mon, 15 Jul 2019 18:06:43 -0300 > &g

Re: [PATCH 2/2] media: Don't hide any menu if "ancillary drivers autoselect" is enabled

2019-07-25 Thread Ezequiel Garcia
On Thu, 2019-07-25 at 12:57 -0300, Mauro Carvalho Chehab wrote: > Em Mon, 15 Jul 2019 18:23:16 -0300 > Ezequiel Garcia escreveu: > > > Many users have been complaining about not being able to find > > certain menu options. One such example are camera sensor drivers > &g

Re: [PATCH 2/6] media: v4l2-core: Module re-organization

2019-07-25 Thread Ezequiel Garcia
On Thu, 2019-07-25 at 13:31 -0300, Mauro Carvalho Chehab wrote: > Em Mon, 15 Jul 2019 18:06:43 -0300 > Ezequiel Garcia escreveu: > > > videodev.ko and v4l2-common.ko driver are built under > > the same conditions. Therefore, it doesn't make much sense > > to spl

Re: [PATCH] media input infrastructure:tw686x: Added Added custom function to set vdev->release in tw686x driver

2019-07-24 Thread Ezequiel Garcia
Hi Mark, On Wed, 24 Jul 2019 at 12:10, Mark Balantzyan wrote: > This commit needs to be thoroughly explained in order to make sense. > Signed-off-by: Mark Balantzyan > --- > This patch adds a custom function to release video device in assignment to > vdev->release member in tw686x driver. > >

Re: tw686x driver (continued)

2019-07-23 Thread Ezequiel Garcia
On Tue, 23 Jul 2019 at 12:55, Mark Balançian wrote: > > On Jul 23, 2019, at 8:17 AM, Ezequiel Garcia > wrote: > > > On Tue, 23 Jul 2019 at 12:02, Mark Balançian wrote: > > > I see. I guess then my issue would be help in seeing how > tw686x_memcpy_dma_free alo

Re: Question about TW686X driver

2019-07-23 Thread Ezequiel Garcia
On Tue, 23 Jul 2019 at 12:02, Mark Balançian wrote: > > I see. I guess then my issue would be help in seeing how > tw686x_memcpy_dma_free alone does any required interrupt handling, since > there are also functions tw686x_irq and tw686x_audio_irq for interrupt > handling as well? However, in my

Re: Question about TW686X driver

2019-07-23 Thread Ezequiel Garcia
Hey Mark, I'm glad you are having fun with the driver. On Tue, 23 Jul 2019 at 11:45, Mark Balançian wrote: > > Hello all, > > My name is Mark and I am working on contributing to the open-source Linux > project. > > I would please like to know more about the TW686X driver. In particular, when >

Re: [PATCH] mx2_emmaprp: use struct v4l2_fh

2019-07-21 Thread Ezequiel Garcia
rlace driver in this respect, and that > v4l2_fh conversion has been properly tested. > > Signed-off-by: Hans Verkuil Reviewed-by: Ezequiel Garcia

Re: [PATCH 5/6] omap_vout: use struct v4l2_fh

2019-07-21 Thread Ezequiel Garcia
On Wed, 2019-07-17 at 15:29 +0200, Hans Verkuil wrote: > This driver is one of the few that is still not using struct > v4l2_fh. Convert it. > > Tested on a Pandaboard. > > Signed-off-by: Hans Verkuil Reviewed-by: Ezequiel Garcia

Re: [PATCH] m2m-deinterlace: use struct v4l2_fh

2019-07-21 Thread Ezequiel Garcia
> > .vidioc_streamon= vidioc_streamon, > - .vidioc_streamoff = vidioc_streamoff, > + .vidioc_streamoff = v4l2_m2m_ioctl_streamoff, > }; > > > @@ -831,7 +794,7 @@ static void deinterlace_buf_queue(struct vb2_buffer *vb) > struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); > struct deinterlace_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); > > - v4l2_m2m_buf_queue(ctx->m2m_ctx, vbuf); > + v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); > } > > static const struct vb2_ops deinterlace_qops = { > @@ -849,7 +812,7 @@ static int queue_init(void *priv, struct vb2_queue > *src_vq, > int ret; > > src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT; > - src_vq->io_modes = VB2_MMAP | VB2_USERPTR; > + src_vq->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; For this and the other patches: is this change related to v4l2_fh usage? In any case, Reviewed-by: Ezequiel Garcia

Re: [PATCH 2/4] via-camera: use struct v4l2_fh

2019-07-21 Thread Ezequiel Garcia
On Wed, 2019-07-17 at 11:03 +0200, Hans Verkuil wrote: > Modern V4L2 drivers should use struct v4l2_fh to represent a filehandle. > This driver was one of the few that didn't use it. > > Signed-off-by: Hans Verkuil Reviewed-by: Ezequiel Garcia > --- > drivers/media/pla

[PATCH v5] media: v4l: ctrls: Add debug messages

2019-07-20 Thread Ezequiel Garcia
Currently, the v4l2 control code is a bit silent on errors. Add debug messages on (hopefully) most of the error paths. Signed-off-by: Ezequiel Garcia --- Changes from v3: * Add missing parenthesis around macro argument. Changes from v3: * Fix checkpatch.pl warnings about long lines. Changes

Re: [PATCH v3] media: v4l: ctrls: Add debug messages

2019-07-20 Thread Ezequiel Garcia
On Sat, 2019-07-20 at 11:36 +0200, Hans Verkuil wrote: > On 7/19/19 11:53 PM, Ezequiel Garcia wrote: > > On Thu, 2019-06-27 at 09:38 +0200, Hans Verkuil wrote: > > > Hi Ezequiel, > > > > > > 'checkpatch.pl --strict' finds way too many issues. >

[PATCH v4] media: v4l: ctrls: Add debug messages

2019-07-19 Thread Ezequiel Garcia
Currently, the v4l2 control code is a bit silent on errors. Add debug messages on (hopefully) most of the error paths. Signed-off-by: Ezequiel Garcia --- Changes from v3: * Fix checkpatch.pl warnings about long lines. Changes from v2: * Check and noisy-warn if vdev is NULL. Changes from v1

Re: [PATCH v3] media: v4l: ctrls: Add debug messages

2019-07-19 Thread Ezequiel Garcia
NULL) { I believe the dprintk macro is OK as-is. We use printk KERN_DEBUG because we already have a parameter guarding it. This is consistent with the v4l2 way. The NULL comparison warning is valid, but it was already like this before. I'd rather not change existing code. I'll post a v4.

[PATCH 2/2] media: Don't hide any menu if "ancillary drivers autoselect" is enabled

2019-07-15 Thread Ezequiel Garcia
be skilled enough to know what (not) to configure anyway. Signed-off-by: Ezequiel Garcia --- drivers/media/dvb-frontends/Kconfig | 1 - drivers/media/i2c/Kconfig | 1 - drivers/media/spi/Kconfig | 1 - drivers/media/tuners/Kconfig| 1 - 4 files changed, 4 deletions(-)

[PATCH 1/2] media: Don't default-enable "ancillary driver autoselect" if EMBEDDED

2019-07-15 Thread Ezequiel Garcia
ion. Therefore, drop the default-yes, when the CONFIG_EMBEDDED is chosen. Signed-off-by: Ezequiel Garcia --- drivers/media/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index 21cd9c02960b..8404e80aa38e 100644 --- a/dr

[PATCH 0/2] Some cleanups for ancillary drivers autoselect

2019-07-15 Thread Ezequiel Garcia
same trap, and so decided the problem was common enough it was worth a try. Thanks! Eze Ezequiel Garcia (2): media: Don't default-enable "ancillary driver autoselect" if EMBEDDED media: Don't hide any menu if "ancillary drivers autoselect" is enabled drivers/m

[PATCH 6/6] media: v4l2-core: introduce unregister subdev i2c helper

2019-07-15 Thread Ezequiel Garcia
Introduce a new video4linux2 I2C helper, to unregister a subdev. This allows to get rid of yet another ifdefs. Signed-off-by: Ezequiel Garcia --- drivers/media/v4l2-core/v4l2-device.c | 25 ++--- drivers/media/v4l2-core/v4l2-i2c.c| 20 include/media

[PATCH 6/6] media: v4l2-core: introduce a helper to unregister a I2C subdev

2019-07-15 Thread Ezequiel Garcia
Introduce a new video4linux2 I2C helper, to unregister a subdev. This allows to get rid of yet another ifdefs. Signed-off-by: Ezequiel Garcia --- drivers/media/v4l2-core/v4l2-device.c | 25 ++--- drivers/media/v4l2-core/v4l2-i2c.c| 20 include/media

[PATCH 4/6] media: v4l2-core: move i2c helpers out of v4l2-common.c

2019-07-15 Thread Ezequiel Garcia
: Ezequiel Garcia --- drivers/media/v4l2-core/Kconfig | 5 + drivers/media/v4l2-core/Makefile | 1 + drivers/media/v4l2-core/v4l2-common.c | 145 - drivers/media/v4l2-core/v4l2-i2c.c| 147 ++ include/media/v4l2-common.h | 113

[PATCH 1/6] media: v4l2-core: Cleanup Makefile

2019-07-15 Thread Ezequiel Garcia
Use the videodev-$(CONFIG_FOO) syntax to simplify the Makefile. Signed-off-by: Ezequiel Garcia --- drivers/media/v4l2-core/Makefile | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/media/v4l2-core/Makefile b/drivers/media/v4l2-core/Makefile index

[PATCH 2/6] media: v4l2-core: Module re-organization

2019-07-15 Thread Ezequiel Garcia
valho Chehab Date: Tue Jan 29 18:32:35 2008 -0300 V4L/DVB (7115): Fix bug #9833: regression when compiling V4L without I2C Back then, the subsystem organization was different. However, With the current organization, there is no issue compiling V4L2 with I2C as y/m/n. Signed-off-by: Eze

[PATCH 0/6] V4L2 core I2C/SPI code cleanup

2019-07-15 Thread Ezequiel Garcia
now if you want me to clean that as well. The entire series should not affect any functionality, but just clean-up the code a bit. Thanks, Eze Ezequiel Garcia (6): media: v4l2-core: Cleanup Makefile media: v4l2-core: Module re-organization media: v4l2-core: move spi helpers out of v4l2-common

[PATCH 3/6] media: v4l2-core: move spi helpers out of v4l2-common.c

2019-07-15 Thread Ezequiel Garcia
Separate the spi helpers to v4l2-spi.c, in order to get rid of the ifdefery. No functional changes intended, this is just a cosmetic change to organize the code better. Signed-off-by: Ezequiel Garcia --- drivers/media/v4l2-core/Makefile | 1 + drivers/media/v4l2-core/v4l2-common.c | 65

[PATCH 5/6] media: v4l2-core: introduce a helper to unregister a SPI subdev

2019-07-15 Thread Ezequiel Garcia
Introduce a new video4linux2 SPI helper, to unregister a subdev. This allows to get rid of some more ifdefs. Signed-off-by: Ezequiel Garcia --- drivers/media/v4l2-core/v4l2-device.c | 14 ++ drivers/media/v4l2-core/v4l2-spi.c| 8 include/media/v4l2-common.h

[PATCH 5/6] media: v4l2-core: introduce an unregister spi subdev helper

2019-07-15 Thread Ezequiel Garcia
Introduce a new video4linux2 SPI helper, to unregister a subdev. This allows to get rid of some more ifdefs. Signed-off-by: Ezequiel Garcia --- drivers/media/v4l2-core/v4l2-device.c | 14 ++ drivers/media/v4l2-core/v4l2-spi.c| 8 include/media/v4l2-common.h

[PATCH v2] media: i2c: ov5645: Fix power sequence

2019-07-10 Thread Ezequiel Garcia
ting). - At s_stream time enable/disable the MIPI interface output. With this commit the sensor is able to enter LP-11 mode during power up, as expected by some CSI-2 controllers. Many thanks to Fabio Estevam for his help debugging this issue. Tested-by: Fabio Estevam Signed-off-by: Ezequiel

Re: [PATCH v3 1/3] media: uapi: h264: Clarify our expectations regarding NAL header format

2019-07-05 Thread Ezequiel Garcia
Hi Boris, Paul, On Wed, 2019-07-03 at 14:28 +0200, Boris Brezillon wrote: > Looks like some stateless decoders expect slices to be prefixed with > ANNEX B start codes (they most likely do some kind of bitstream parsing > and/or need that to delimit slices when doing per frame decoding). > Since sk

Re: [PATCH v3 3/3] media: uapi: h264: Get rid of the p0/b0/b1 ref-lists

2019-07-05 Thread Ezequiel Garcia
> > for drivers that need this list). > > > > Signed-off-by: Boris Brezillon > > Those only existed for Rockchip/Hantro anyway. > > Reviewed-by: Nicolas Dufresne > Reviewed-by: Ezequiel Garcia Thanks, Eze

Re: [ANN] Media summit in Lisbon at September

2019-07-04 Thread Ezequiel Garcia
On Sun, 2019-06-30 at 13:44 -0300, Mauro Carvalho Chehab wrote: > Hi all, > > We are organizing a media mini-summit in Lisbon to happen in September, > at the same week as the Linux Plumber Conference and the Kernel Summit. > > We're still discussing the details about that. > > In principle, it

[PATCH] media: i2c: ov5645: Fix power up sequence

2019-07-03 Thread Ezequiel Garcia
ting). - At s_stream time enable/disable the MIPI interface output. With this commit the sensor is able to enter LP-11 mode during power up, as expected by some CSI-2 controllers. Many thanks to Fabio Estevam for his help debugging this issue. Signed-off-by: Ezequiel Garcia --- driver

Re: [RFC] media: uapi: Add VP8 low-level decoder API compound controls.

2019-06-27 Thread Ezequiel Garcia
On Thu, 2019-06-27 at 11:33 +0200, Paul Kocialkowski wrote: > Hi, > > On Wed 13 Feb 19, 18:15, Ezequiel Garcia wrote: > > From: Pawel Osciak > > > > These controls are to be used with the new low-level decoder API for VP8 > > to provide additional parameters f

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Ezequiel Garcia
On Thu, 2019-06-27 at 14:56 +0200, Philipp Zabel wrote: > Hi Fabio, > > On Thu, 2019-06-27 at 09:38 -0300, Fabio Estevam wrote: > > Hi Philipp, > > > > On Thu, Jun 27, 2019 at 5:43 AM Philipp Zabel > > wrote: > > > > > Are there any visual artifacts in the first frame(s) in this case? > > > >

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-27 Thread Ezequiel Garcia
On Thu, 2019-06-27 at 10:43 +0200, Philipp Zabel wrote: > On Wed, 2019-06-26 at 16:29 -0700, Steve Longerbeam wrote: > > Hi Fabio, > > > > On 6/26/19 4:22 PM, Fabio Estevam wrote: > > > Hi Steve, > > > > > > On Wed, Jun 26, 2019 at 6:19 PM Steve Longerbeam > > > wrote: > > > > > > > Did you on

Re: [PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-26 Thread Ezequiel Garcia
Hi Laurent, Philipp, Thank you for the prompt review! I was pretty sure this would raise your wise eyebrows :-) On Wed, 2019-06-26 at 11:00 +0300, Laurent Pinchart wrote: > Hi Ezequiel, > > Thank you for the patch. > > On Tue, Jun 25, 2019 at 05:39:45PM -0300, Ezequiel Garcia

[PATCH] media: imx: mipi csi-2: Don't fail if initial state times-out

2019-06-25 Thread Ezequiel Garcia
omething is off. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/imx/imx6-mipi-csi2.c | 33 ++ 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/drivers/staging/media/imx/imx6-mipi-csi2.c b/drivers/staging/media/imx/imx6-mipi-csi2.c index f29e28df36ed..1034

[PATCH v3] media: v4l: ctrls: Add debug messages

2019-06-22 Thread Ezequiel Garcia
Currently, the v4l2 control code is a bit silent on errors. Add debug messages on (hopefully) most of the error paths. Signed-off-by: Ezequiel Garcia --- Changes from v2: * Check and noisy-warn if vdev is NULL. Changes from v1: * Drop changes in the debug parameter semantics. * Drop new module

Re: [PATCH v2] media: v4l: ctrls: Add debug messages

2019-06-22 Thread Ezequiel Garcia
On Sat, 2019-06-22 at 08:53 +0200, Hans Verkuil wrote: > On 6/22/19 12:50 AM, Ezequiel Garcia wrote: > > Currently, the v4l2 control code is a bit silent on errors. > > Add debug messages on (hopefully) most of the error paths. > > > > Signed-off-by: Ezequiel Garcia

[PATCH v2] media: v4l: ctrls: Add debug messages

2019-06-21 Thread Ezequiel Garcia
Currently, the v4l2 control code is a bit silent on errors. Add debug messages on (hopefully) most of the error paths. Signed-off-by: Ezequiel Garcia --- Changes from v1: * Drop changes in the debug parameter semantics. * Drop new module debug parameter. * Add documentation. * Add a debug error

Re: [PATCH 2/2] media: hantro: Add support for VP8 decoding on rk3288

2019-06-19 Thread Ezequiel Garcia
On Mon, 2019-06-17 at 15:40 +0200, Boris Brezillon wrote: > On Thu, 13 Jun 2019 12:10:40 -0300 > Ezequiel Garcia wrote: > > > > +static void cfg_parts(struct hantro_ctx *ctx, > > + const struct v4l2_ctrl_vp8_frame_header *hdr) > > +{ > > +

Re: [PATCH 1/2] media: uapi: Add VP8 stateless decoder API

2019-06-19 Thread Ezequiel Garcia
Hi Boris, Thanks for the review. On Mon, 2019-06-17 at 15:23 +0200, Boris Brezillon wrote: > On Thu, 13 Jun 2019 12:10:39 -0300 > Ezequiel Garcia wrote: > > > From: Pawel Osciak > > > > Add the parsed VP8 frame pixel format and controls, to be used > > with

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

2019-06-19 Thread Ezequiel Garcia
On Tue, 2019-06-18 at 20:17 -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. > > Reviewed-by: Bori

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

2019-06-18 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. Reviewed-by: Boris Brezillon Signed-off-by: Ezequiel Garcia --- Changes from v2: * Fix missing index usage

[PATCH] media: hantro: Use vb2_get_buffer

2019-06-18 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/hantro/hantro_drv.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_drv.c b

Re: [PATCH v2 0/4] vicodec: a couple fixes towards spec compliancy

2019-06-17 Thread Ezequiel Garcia
On Mon, 2019-06-17 at 14:43 +0200, Hans Verkuil wrote: > Hi Ezequiel, > > On 11/2/18 4:52 PM, Ezequiel Garcia wrote: > > Given the stateful codec specification is still a moving target, > > it doesn't make any sense to try to comply fully with it. > > > >

[PATCH 2/2] media: hantro: Add support for VP8 decoding on rk3288

2019-06-13 Thread Ezequiel Garcia
From: ZhiChao Yu Introduce VP8 decoding support in RK3288. Signed-off-by: ZhiChao Yu Signed-off-by: Tomasz Figa Signed-off-by: Boris Brezillon Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/Makefile | 4 +- drivers/staging/media/hantro/hantro.h | 5

[PATCH 1/2] media: uapi: Add VP8 stateless decoder API

2019-06-13 Thread Ezequiel Garcia
From: Pawel Osciak Add the parsed VP8 frame pixel format and controls, to be used with the new stateless decoder API for VP8 to provide parameters for accelerator (aka stateless) codecs. Signed-off-by: Pawel Osciak Signed-off-by: Ezequiel Garcia -- Changes from RFC: * Make sure the uAPI has

[PATCH 0/2] RK3288 VP8 decoding support

2019-06-13 Thread Ezequiel Garcia
This patchset adds support for Hantro G1 VP8 stateless decoding, as available on RK3288 SoC. In order to support VP8 stateless decoding, a new pixel format is introduced V4L2_PIX_FMT_VP8_FRAME, to be used with a new control V4L2_CID_MPEG_VIDEO_VP8_FRAME_HDR. The VP8 stateless uAPI was submitted a

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

2019-06-10 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 v2 2/5] media: mtk-jpeg: Use vb2_get_buffer

2019-06-10 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

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

2019-06-10 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

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

2019-06-10 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

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

2019-06-10 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. Reviewed-by: Boris Brezillon Signed-off-by: Ezequiel Garcia --- Changes from v1: * Drop redundant num_buffers > 0 check. --- include/me

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

2019-06-10 Thread Ezequiel Garcia
further changes. Changes from v1: * Address feedback from Boris, and drop redundant check. Thanks, Ezequiel Ezequiel Garcia (5): media: vb2: Introduce a vb2_get_buffer accessor media: mtk-jpeg: Use vb2_get_buffer media: mtk-vcodec: Use vb2_get_buffer media: sti: Use vb2_get_buffer media

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

[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 c

[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

[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

[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

[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

[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

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

2019-06-06 Thread Ezequiel Garcia
further changes. ` Thanks, Ezequiel Ezequiel Garcia (5): media: vb2: Introduce a vb2_get_buffer accessor media: mtk-jpeg: Use vb2_get_buffer media: mtk-vcodec: Use vb2_get_buffer media: sti: Use vb2_get_buffer media: rockchip: Use vb2_get_buffer .../media/platform/mtk-jpeg/mtk_jpeg

Re: [PATCH v2 4/4] media: v4l: ctrls: Add debug messages

2019-06-03 Thread Ezequiel Garcia
On Mon, 2019-06-03 at 09:16 +0200, Hans Verkuil wrote: > On 6/1/19 7:57 PM, Ezequiel Garcia wrote: > > On Mon, 2019-03-11 at 12:36 +0100, Hans Verkuil wrote: > > > On 2/27/19 6:07 PM, Ezequiel Garcia wrote: > > > > Currently, the v4l2 control code is a bit silent

  1   2   3   4   5   6   7   8   9   10   >