Re: [RFC] Request API and V4L2 capabilities

2018-08-30 Thread Hans Verkuil
On 08/29/2018 06:30 AM, Tomasz Figa wrote: > On Fri, Aug 24, 2018 at 2:33 AM Nicolas Dufresne wrote: >> >> Le jeudi 23 août 2018 à 10:05 +0200, Paul Kocialkowski a écrit : >>> Hi, >>> >>> On Wed, 2018-08-22 at 14:33 -0300, Ezequiel Garcia wrote: On Wed, 2018-08-22 at 16:10 +0200, Paul Kocialk

Re: [RFC] Request API and V4L2 capabilities

2018-08-28 Thread Tomasz Figa
On Fri, Aug 24, 2018 at 4:30 PM Hans Verkuil wrote: > > On 08/23/2018 07:37 PM, Nicolas Dufresne wrote: > > Le jeudi 23 août 2018 à 16:31 +0200, Hans Verkuil a écrit : > >>> I propose adding these capabilities: > >>> > >>> #define V4L2_BUF_CAP_HAS_REQUESTS 0x0001 > >>> #define V4L2_BUF_CAP

Re: [RFC] Request API and V4L2 capabilities

2018-08-28 Thread Tomasz Figa
On Fri, Aug 24, 2018 at 2:33 AM Nicolas Dufresne wrote: > > Le jeudi 23 août 2018 à 10:05 +0200, Paul Kocialkowski a écrit : > > Hi, > > > > On Wed, 2018-08-22 at 14:33 -0300, Ezequiel Garcia wrote: > > > On Wed, 2018-08-22 at 16:10 +0200, Paul Kocialkowski wrote: > > > > Hi, > > > > > > > > On Tu

Re: [RFC] Request API and V4L2 capabilities

2018-08-28 Thread Tomasz Figa
On Thu, Aug 23, 2018 at 5:05 PM Paul Kocialkowski wrote: > > Hi, > > On Wed, 2018-08-22 at 14:33 -0300, Ezequiel Garcia wrote: > > On Wed, 2018-08-22 at 16:10 +0200, Paul Kocialkowski wrote: > > > Hi, > > > > > > On Tue, 2018-08-21 at 17:52 +0900, Tomasz Figa wrote: > > > > Hi Hans, Paul, > > > >

Re: [RFC] Request API and V4L2 capabilities

2018-08-28 Thread Tomasz Figa
On Wed, Aug 22, 2018 at 11:10 PM Paul Kocialkowski wrote: > > Hi, > > On Tue, 2018-08-21 at 17:52 +0900, Tomasz Figa wrote: > > Hi Hans, Paul, > > > > On Mon, Aug 6, 2018 at 6:29 PM Paul Kocialkowski > > wrote: > > > > > > On Mon, 2018-08-06 at 11:23 +0200, Hans Verkuil wrote: > > > > On 08/06/20

Re: [RFC] Request API and V4L2 capabilities

2018-08-24 Thread Paul Kocialkowski
Hi, On Fri, 2018-08-24 at 09:29 +0200, Hans Verkuil wrote: > On 08/23/2018 07:37 PM, Nicolas Dufresne wrote: > > Le jeudi 23 août 2018 à 16:31 +0200, Hans Verkuil a écrit : > > > > I propose adding these capabilities: > > > > > > > > #define V4L2_BUF_CAP_HAS_REQUESTS 0x0001 > > > > #defin

Re: [RFC] Request API and V4L2 capabilities

2018-08-24 Thread Hans Verkuil
On 08/23/2018 07:37 PM, Nicolas Dufresne wrote: > Le jeudi 23 août 2018 à 16:31 +0200, Hans Verkuil a écrit : >>> I propose adding these capabilities: >>> >>> #define V4L2_BUF_CAP_HAS_REQUESTS 0x0001 >>> #define V4L2_BUF_CAP_REQUIRES_REQUESTS0x0002 >>> #define V4L2_BUF_CAP_HAS_M

Re: [RFC] Request API and V4L2 capabilities

2018-08-23 Thread Nicolas Dufresne
Le jeudi 23 août 2018 à 16:31 +0200, Hans Verkuil a écrit : > > I propose adding these capabilities: > > > > #define V4L2_BUF_CAP_HAS_REQUESTS 0x0001 > > #define V4L2_BUF_CAP_REQUIRES_REQUESTS0x0002 > > #define V4L2_BUF_CAP_HAS_MMAP 0x0100 > > #define V4L2_BUF_CAP_H

Re: [RFC] Request API and V4L2 capabilities

2018-08-23 Thread Nicolas Dufresne
Le jeudi 23 août 2018 à 10:05 +0200, Paul Kocialkowski a écrit : > Hi, > > On Wed, 2018-08-22 at 14:33 -0300, Ezequiel Garcia wrote: > > On Wed, 2018-08-22 at 16:10 +0200, Paul Kocialkowski wrote: > > > Hi, > > > > > > On Tue, 2018-08-21 at 17:52 +0900, Tomasz Figa wrote: > > > > Hi Hans, Paul, >

Re: [RFC] Request API and V4L2 capabilities

2018-08-23 Thread Hans Verkuil
Hi all, After reading through the comments I came to the following conclusions: On 08/04/18 15:50, Hans Verkuil wrote: > Hi all, > > While the Request API patch series addresses all the core API issues, there > are some high-level considerations as well: > > 1) How can the application tell that

Re: [RFC] Request API questions

2018-08-23 Thread Hans Verkuil
Hi all, Based on the discussion on the mailinglist I came to the following conclusions which I will be implementing on top of the reqv18 patches: On 08/16/18 12:25, Hans Verkuil wrote: > Laurent raised a few API issues/questions in his review of the documentation. > > I've consolidated those in

Re: [RFC] Request API questions

2018-08-23 Thread Hans Verkuil
On 08/20/18 09:17, Tomasz Figa wrote: > Hi Hans, > > On Fri, Aug 17, 2018 at 7:09 PM Hans Verkuil wrote: >> >> On 17/08/18 12:02, Tomasz Figa wrote: >>> On Thu, Aug 16, 2018 at 8:15 PM Mauro Carvalho Chehab >>> wrote: Em Thu, 16 Aug 2018 12:25:25 +0200 Hans Verkuil escreveu:

Re: [RFC] Request API and V4L2 capabilities

2018-08-23 Thread Paul Kocialkowski
Hi, On Wed, 2018-08-22 at 14:33 -0300, Ezequiel Garcia wrote: > On Wed, 2018-08-22 at 16:10 +0200, Paul Kocialkowski wrote: > > Hi, > > > > On Tue, 2018-08-21 at 17:52 +0900, Tomasz Figa wrote: > > > Hi Hans, Paul, > > > > > > On Mon, Aug 6, 2018 at 6:29 PM Paul Kocialkowski > > > wrote: > > >

Re: [RFC] Request API and V4L2 capabilities

2018-08-22 Thread Nicolas Dufresne
Le mercredi 22 août 2018 à 16:52 +0200, Paul Kocialkowski a écrit : > Hi, > > On Wed, 2018-08-15 at 09:57 -0400, Nicolas Dufresne wrote: > > Le lundi 06 août 2018 à 10:16 +0200, Paul Kocialkowski a écrit : > > > Hi Hans and all, > > > > > > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: >

Re: [RFC] Request API and V4L2 capabilities

2018-08-22 Thread Ezequiel Garcia
On Wed, 2018-08-22 at 16:10 +0200, Paul Kocialkowski wrote: > Hi, > > On Tue, 2018-08-21 at 17:52 +0900, Tomasz Figa wrote: > > Hi Hans, Paul, > > > > On Mon, Aug 6, 2018 at 6:29 PM Paul Kocialkowski > > wrote: > > > > > > On Mon, 2018-08-06 at 11:23 +0200, Hans Verkuil wrote: > > > > On 08/06/

Re: [RFC] Request API and V4L2 capabilities

2018-08-22 Thread Paul Kocialkowski
Hi, On Wed, 2018-08-15 at 09:57 -0400, Nicolas Dufresne wrote: > Le lundi 06 août 2018 à 10:16 +0200, Paul Kocialkowski a écrit : > > Hi Hans and all, > > > > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: > > > Hi all, > > > > > > While the Request API patch series addresses all the cor

Re: [RFC] Request API and V4L2 capabilities

2018-08-22 Thread Paul Kocialkowski
Hi, On Tue, 2018-08-21 at 17:52 +0900, Tomasz Figa wrote: > Hi Hans, Paul, > > On Mon, Aug 6, 2018 at 6:29 PM Paul Kocialkowski > wrote: > > > > On Mon, 2018-08-06 at 11:23 +0200, Hans Verkuil wrote: > > > On 08/06/2018 11:13 AM, Paul Kocialkowski wrote: > > > > Hi, > > > > > > > > On Mon, 201

Re: [RFC] Request API and V4L2 capabilities

2018-08-22 Thread Tomasz Figa
On Wed, Aug 22, 2018 at 10:21 PM Paul Kocialkowski wrote: > > Hi, > > [...] > > On Wed, 2018-08-15 at 14:51 +0200, Maxime Jourdan wrote: > > Hi Paul, I think we need to go deeper than just exposing the supported > > profiles/levels and also include a way to query the CAPTURE pixel > > formats that

Re: [RFC] Request API and V4L2 capabilities

2018-08-22 Thread Paul Kocialkowski
Hi, [...] On Wed, 2018-08-15 at 14:51 +0200, Maxime Jourdan wrote: > Hi Paul, I think we need to go deeper than just exposing the supported > profiles/levels and also include a way to query the CAPTURE pixel > formats that are supported for each profile. > > Maybe HEVC Main produces yuv420p but

Re: [RFC] Request API and V4L2 capabilities

2018-08-21 Thread Alexandre Courbot
On Tue, Aug 21, 2018 at 6:15 PM Tomasz Figa wrote: > > On Wed, Aug 15, 2018 at 11:18 PM Hans Verkuil wrote: > > > > On 15/08/18 14:11, Mauro Carvalho Chehab wrote: > > > Em Sat, 4 Aug 2018 15:50:04 +0200 > > > Hans Verkuil escreveu: > > > > > >> Hi all, > > >> > > >> While the Request API patch

Re: [RFC] Request API questions

2018-08-21 Thread Tomasz Figa
On Tue, Aug 21, 2018 at 7:00 PM Sakari Ailus wrote: > > On Fri, Aug 17, 2018 at 12:09:40PM +0200, Hans Verkuil wrote: > > On 17/08/18 12:02, Tomasz Figa wrote: > > > On Thu, Aug 16, 2018 at 8:15 PM Mauro Carvalho Chehab > > > wrote: > > >> > > >> Em Thu, 16 Aug 2018 12:25:25 +0200 > > >> Hans Ver

Re: [RFC] Request API questions

2018-08-21 Thread Sakari Ailus
On Fri, Aug 17, 2018 at 12:09:40PM +0200, Hans Verkuil wrote: > On 17/08/18 12:02, Tomasz Figa wrote: > > On Thu, Aug 16, 2018 at 8:15 PM Mauro Carvalho Chehab > > wrote: > >> > >> Em Thu, 16 Aug 2018 12:25:25 +0200 > >> Hans Verkuil escreveu: > >> > >>> Laurent raised a few API issues/questions

Re: [RFC] Request API and V4L2 capabilities

2018-08-21 Thread Tomasz Figa
On Mon, Aug 6, 2018 at 5:32 PM Hans Verkuil wrote: > > On 08/06/2018 10:16 AM, Paul Kocialkowski wrote: > > Hi Hans and all, > > > > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: > >> Hi all, > >> > >> While the Request API patch series addresses all the core API issues, there > >> are so

Re: [RFC] Request API and V4L2 capabilities

2018-08-21 Thread Tomasz Figa
On Wed, Aug 15, 2018 at 11:18 PM Hans Verkuil wrote: > > On 15/08/18 14:11, Mauro Carvalho Chehab wrote: > > Em Sat, 4 Aug 2018 15:50:04 +0200 > > Hans Verkuil escreveu: > > > >> Hi all, > >> > >> While the Request API patch series addresses all the core API issues, there > >> are some high-level

Re: [RFC] Request API and V4L2 capabilities

2018-08-21 Thread Tomasz Figa
Hi Hans, Paul, On Mon, Aug 6, 2018 at 6:29 PM Paul Kocialkowski wrote: > > On Mon, 2018-08-06 at 11:23 +0200, Hans Verkuil wrote: > > On 08/06/2018 11:13 AM, Paul Kocialkowski wrote: > > > Hi, > > > > > > On Mon, 2018-08-06 at 10:32 +0200, Hans Verkuil wrote: > > > > On 08/06/2018 10:16 AM, Paul

Re: [RFC] Request API questions

2018-08-20 Thread Sakari Ailus
Hi Hans, On Thu, Aug 16, 2018 at 12:25:25PM +0200, Hans Verkuil wrote: > Laurent raised a few API issues/questions in his review of the documentation. > > I've consolidated those in this RFC. I would like to know what others think > and if I should make changes. > > 1) Should you be allowed to s

Re: [RFC] Request API questions

2018-08-20 Thread Tomasz Figa
Hi Hans, On Fri, Aug 17, 2018 at 7:09 PM Hans Verkuil wrote: > > On 17/08/18 12:02, Tomasz Figa wrote: > > On Thu, Aug 16, 2018 at 8:15 PM Mauro Carvalho Chehab > > wrote: > >> > >> Em Thu, 16 Aug 2018 12:25:25 +0200 > >> Hans Verkuil escreveu: > >> [snip] > >>> 3) Calling VIDIOC_G_EXT_CTRLS fo

Re: [RFC] Request API questions

2018-08-17 Thread Mauro Carvalho Chehab
Em Fri, 17 Aug 2018 12:09:40 +0200 Hans Verkuil escreveu: > On 17/08/18 12:02, Tomasz Figa wrote: > > On Thu, Aug 16, 2018 at 8:15 PM Mauro Carvalho Chehab > > wrote: > >> > >> Em Thu, 16 Aug 2018 12:25:25 +0200 > >> Hans Verkuil escreveu: > >> > >>> Laurent raised a few API issues/question

Re: [RFC] Request API questions

2018-08-17 Thread Hans Verkuil
On 17/08/18 12:02, Tomasz Figa wrote: > On Thu, Aug 16, 2018 at 8:15 PM Mauro Carvalho Chehab > wrote: >> >> Em Thu, 16 Aug 2018 12:25:25 +0200 >> Hans Verkuil escreveu: >> >>> Laurent raised a few API issues/questions in his review of the >>> documentation. >>> >>> I've consolidated those in th

Re: [RFC] Request API questions

2018-08-17 Thread Tomasz Figa
On Thu, Aug 16, 2018 at 8:15 PM Mauro Carvalho Chehab wrote: > > Em Thu, 16 Aug 2018 12:25:25 +0200 > Hans Verkuil escreveu: > > > Laurent raised a few API issues/questions in his review of the > > documentation. > > > > I've consolidated those in this RFC. I would like to know what others think

Re: [RFC] Request API questions

2018-08-16 Thread Mauro Carvalho Chehab
Em Thu, 16 Aug 2018 12:25:25 +0200 Hans Verkuil escreveu: > Laurent raised a few API issues/questions in his review of the documentation. > > I've consolidated those in this RFC. I would like to know what others think > and if I should make changes. > > 1) Should you be allowed to set controls

[RFC] Request API questions

2018-08-16 Thread Hans Verkuil
Laurent raised a few API issues/questions in his review of the documentation. I've consolidated those in this RFC. I would like to know what others think and if I should make changes. 1) Should you be allowed to set controls directly if they are also used in requests? Right now this is allowed

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Nicolas Dufresne
Le mercredi 15 août 2018 à 09:11 -0300, Mauro Carvalho Chehab a écrit : > Em Sat, 4 Aug 2018 15:50:04 +0200 > Hans Verkuil escreveu: > > > Hi all, > > > > While the Request API patch series addresses all the core API > > issues, there > > are some high-level considerations as well: > > > > 1) H

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Nicolas Dufresne
Le samedi 04 août 2018 à 15:50 +0200, Hans Verkuil a écrit : > Hi all, > > While the Request API patch series addresses all the core API issues, there > are some high-level considerations as well: > > 1) How can the application tell that the Request API is supported and for >which buffer type

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Hans Verkuil
On 15/08/18 14:11, Mauro Carvalho Chehab wrote: > Em Sat, 4 Aug 2018 15:50:04 +0200 > Hans Verkuil escreveu: > >> Hi all, >> >> While the Request API patch series addresses all the core API issues, there >> are some high-level considerations as well: >> >> 1) How can the application tell that the

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Hans Verkuil
On 06/08/18 10:16, Paul Kocialkowski wrote: > Hi Hans and all, > > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: >> Hi all, >> >> While the Request API patch series addresses all the core API issues, there >> are some high-level considerations as well: >> >> 1) How can the application tel

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Nicolas Dufresne
Le lundi 06 août 2018 à 10:16 +0200, Paul Kocialkowski a écrit : > Hi Hans and all, > > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: > > Hi all, > > > > While the Request API patch series addresses all the core API issues, there > > are some high-level considerations as well: > > > > 1

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Maxime Jourdan
2018-08-06 11:13 GMT+02:00 Paul Kocialkowski : > Hi, > > On Mon, 2018-08-06 at 10:32 +0200, Hans Verkuil wrote: >> On 08/06/2018 10:16 AM, Paul Kocialkowski wrote: >> > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: >> > > Regarding point 3: I think this should be documented next to the pix

Re: [RFC] Request API and V4L2 capabilities

2018-08-15 Thread Mauro Carvalho Chehab
Em Sat, 4 Aug 2018 15:50:04 +0200 Hans Verkuil escreveu: > Hi all, > > While the Request API patch series addresses all the core API issues, there > are some high-level considerations as well: > > 1) How can the application tell that the Request API is supported and for >which buffer types

Re: [RFC] Request API and V4L2 capabilities

2018-08-06 Thread Ezequiel Garcia
On 4 August 2018 at 10:50, Hans Verkuil wrote: > Hi all, > > While the Request API patch series addresses all the core API issues, there > are some high-level considerations as well: > > 1) How can the application tell that the Request API is supported and for >which buffer types (capture/outp

Re: [RFC] Request API and V4L2 capabilities

2018-08-06 Thread Paul Kocialkowski
On Mon, 2018-08-06 at 11:23 +0200, Hans Verkuil wrote: > On 08/06/2018 11:13 AM, Paul Kocialkowski wrote: > > Hi, > > > > On Mon, 2018-08-06 at 10:32 +0200, Hans Verkuil wrote: > > > On 08/06/2018 10:16 AM, Paul Kocialkowski wrote: > > > > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: > >

Re: [RFC] Request API and V4L2 capabilities

2018-08-06 Thread Hans Verkuil
On 08/06/2018 11:13 AM, Paul Kocialkowski wrote: > Hi, > > On Mon, 2018-08-06 at 10:32 +0200, Hans Verkuil wrote: >> On 08/06/2018 10:16 AM, Paul Kocialkowski wrote: >>> On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: Regarding point 3: I think this should be documented next to the pix

Re: [RFC] Request API and V4L2 capabilities

2018-08-06 Thread Paul Kocialkowski
Hi, On Mon, 2018-08-06 at 10:32 +0200, Hans Verkuil wrote: > On 08/06/2018 10:16 AM, Paul Kocialkowski wrote: > > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: > > > Regarding point 3: I think this should be documented next to the pixel > > > format. I.e. > > > the MPEG-2 Slice format us

Re: [RFC] Request API and V4L2 capabilities

2018-08-06 Thread Hans Verkuil
On 08/06/2018 10:16 AM, Paul Kocialkowski wrote: > Hi Hans and all, > > On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: >> Hi all, >> >> While the Request API patch series addresses all the core API issues, there >> are some high-level considerations as well: >> >> 1) How can the applicatio

Re: [RFC] Request API and V4L2 capabilities

2018-08-06 Thread Paul Kocialkowski
Hi Hans and all, On Sat, 2018-08-04 at 15:50 +0200, Hans Verkuil wrote: > Hi all, > > While the Request API patch series addresses all the core API issues, there > are some high-level considerations as well: > > 1) How can the application tell that the Request API is supported and for >which

[RFC] Request API and V4L2 capabilities

2018-08-04 Thread Hans Verkuil
Hi all, While the Request API patch series addresses all the core API issues, there are some high-level considerations as well: 1) How can the application tell that the Request API is supported and for which buffer types (capture/output) and pixel formats? 2) How can the application tell if t

Re: RFC: Request API and memory-to-memory devices

2018-06-04 Thread Hans Verkuil
On 05/25/2018 05:26 PM, Hans Verkuil wrote: > On 25/05/18 16:16, Sakari Ailus wrote: >> Hi Hans, >> >> On Thu, May 24, 2018 at 10:44:13AM +0200, Hans Verkuil wrote: >>> Memory-to-memory devices have one video node, one internal control handler >>> but two vb2_queues (DMA engines). While often there

Re: RFC: Request API and memory-to-memory devices

2018-05-25 Thread Hans Verkuil
On 25/05/18 16:16, Sakari Ailus wrote: > Hi Hans, > > On Thu, May 24, 2018 at 10:44:13AM +0200, Hans Verkuil wrote: >> Memory-to-memory devices have one video node, one internal control handler >> but two vb2_queues (DMA engines). While often there is one buffer produced >> for every buffer consum

Re: RFC: Request API and memory-to-memory devices

2018-05-25 Thread Tomasz Figa
On Fri, May 25, 2018 at 11:17 PM Sakari Ailus wrote: > Hi Hans, > On Thu, May 24, 2018 at 10:44:13AM +0200, Hans Verkuil wrote: > > Memory-to-memory devices have one video node, one internal control handler > > but two vb2_queues (DMA engines). While often there is one buffer produced > > for ev

Re: RFC: Request API and memory-to-memory devices

2018-05-25 Thread Sakari Ailus
Hi Hans, On Thu, May 24, 2018 at 10:44:13AM +0200, Hans Verkuil wrote: > Memory-to-memory devices have one video node, one internal control handler > but two vb2_queues (DMA engines). While often there is one buffer produced > for every buffer consumed, but this is by no means standard. E.g. > de

Re: RFC: Request API and memory-to-memory devices

2018-05-24 Thread Tomasz Figa
On Thu, May 24, 2018 at 5:44 PM Hans Verkuil wrote: > Memory-to-memory devices have one video node, one internal control handler > but two vb2_queues (DMA engines). While often there is one buffer produced > for every buffer consumed, but this is by no means standard. E.g. deinterlacers > will pr

RFC: Request API and memory-to-memory devices

2018-05-24 Thread Hans Verkuil
Memory-to-memory devices have one video node, one internal control handler but two vb2_queues (DMA engines). While often there is one buffer produced for every buffer consumed, but this is by no means standard. E.g. deinterlacers will produce on buffer for every two buffers consumed. Codecs that re

Re: [RFC] Request API

2018-03-23 Thread Tomasz Figa
On Fri, Mar 23, 2018 at 6:33 PM, Sakari Ailus wrote: >> >>> An alternative, maybe a bit crazy, idea would be to allow adding >> >>> MEDIA_REQUEST_IOC_QUEUE ioctl to the request itself. This would be >> >>> similar to the idea of indirect command buffers in the graphics (GPU) >> >>> land. It could

Re: [RFC] Request API

2018-03-23 Thread Sakari Ailus
Hi Hans and Tomasz, On Fri, Mar 23, 2018 at 08:38:54AM +0100, Hans Verkuil wrote: ... > >>> > >>> Perhaps we need to consider few separate cases here: > >>> > >>> 1) Query control value within a request. Would return the value that > >>> was earlier set to that particular request (and maybe -EBUS

Re: [RFC] Request API

2018-03-23 Thread Hans Verkuil
On 03/23/2018 05:02 AM, Tomasz Figa wrote: > On Fri, Mar 23, 2018 at 1:28 AM, Hans Verkuil wrote: >> On 03/22/18 15:47, Tomasz Figa wrote: >>> Hi Hans, >>> >>> On Thu, Mar 22, 2018 at 11:18 PM, Hans Verkuil wrote: Requests only contain the changes since the previously queued request

Re: [RFC] Request API

2018-03-22 Thread Tomasz Figa
On Fri, Mar 23, 2018 at 1:28 AM, Hans Verkuil wrote: > On 03/22/18 15:47, Tomasz Figa wrote: >> Hi Hans, >> >> On Thu, Mar 22, 2018 at 11:18 PM, Hans Verkuil wrote: >>> >>>Requests only contain the changes since the previously queued request or >>>since the current hardware state if no ot

Re: [RFC] Request API

2018-03-22 Thread Nicolas Dufresne
Le jeudi 22 mars 2018 à 18:22 +0100, Hans Verkuil a écrit : > On 03/22/2018 05:36 PM, Nicolas Dufresne wrote: > > Le jeudi 22 mars 2018 à 15:18 +0100, Hans Verkuil a écrit : > > > RFC Request API > > > --- > > > > > > This document

Re: [RFC] Request API

2018-03-22 Thread Hans Verkuil
On 03/22/2018 05:36 PM, Nicolas Dufresne wrote: > Le jeudi 22 mars 2018 à 15:18 +0100, Hans Verkuil a écrit : >> RFC Request API >> --- >> >> This document proposes the public API for handling requests. >> >> There has been some confusion about

Re: [RFC] Request API

2018-03-22 Thread Nicolas Dufresne
Le jeudi 22 mars 2018 à 15:18 +0100, Hans Verkuil a écrit : > RFC Request API > --- > > This document proposes the public API for handling requests. > > There has been some confusion about how to do this, so this summarizes the > current approach based on c

Re: [RFC] Request API

2018-03-22 Thread Hans Verkuil
On 03/22/18 15:47, Tomasz Figa wrote: > Hi Hans, > > On Thu, Mar 22, 2018 at 11:18 PM, Hans Verkuil wrote: >> RFC Request API >> --- >> >> This document proposes the public API for handling requests. >> >> There has been some confusion

Re: [RFC] Request API

2018-03-22 Thread Tomasz Figa
On Thu, Mar 22, 2018 at 11:47 PM, Tomasz Figa wrote: > Hi Hans, > > On Thu, Mar 22, 2018 at 11:18 PM, Hans Verkuil wrote: >> - If due to performance reasons we will have to allocate/queue/reinit >> multiple >> requests with a single ioctl, then we will have to add new ioctls to the >> media

Re: [RFC] Request API

2018-03-22 Thread Tomasz Figa
Hi Hans, On Thu, Mar 22, 2018 at 11:18 PM, Hans Verkuil wrote: > RFC Request API > --- > > This document proposes the public API for handling requests. > > There has been some confusion about how to do this, so this summarizes the > current approach based on c

[RFC] Request API

2018-03-22 Thread Hans Verkuil
RFC Request API --- This document proposes the public API for handling requests. There has been some confusion about how to do this, so this summarizes the current approach based on conversations with the various stakeholders today (Sakari, Alexandre Courbot, Tomasz Figa and myself