RE: [PATCH v4 2/4] [media] videobuf2: return -EPIPE from DQBUF after the last buffer

2015-04-20 Thread Kamil Debski
x27;; ker...@pengutronix.de > Subject: Re: [PATCH v4 2/4] [media] videobuf2: return -EPIPE from DQBUF > after the last buffer > > Am Donnerstag, den 16.04.2015, 10:23 +0200 schrieb Kamil Debski: > [...] > > > > But, in general, in what kind of scenario would the driver want

Re: [PATCH v4 2/4] [media] videobuf2: return -EPIPE from DQBUF after the last buffer

2015-04-20 Thread Philipp Zabel
Am Donnerstag, den 16.04.2015, 10:23 +0200 schrieb Kamil Debski: [...] > > > But, in general, in what kind of scenario would the driver want to > > > call this function, as opposed to vb2 clearing this flag by itself on > > > STREAMOFF? > > > > There is VIDIOC_DECODER_CMD / V4L2_DEC_CMD_START. > >

RE: [PATCH v4 2/4] [media] videobuf2: return -EPIPE from DQBUF after the last buffer

2015-04-16 Thread Kamil Debski
Hi, > From: Philipp Zabel [mailto:p.za...@pengutronix.de] > Sent: Monday, April 13, 2015 6:15 PM > To: Pawel Osciak > Cc: LMML; Hans Verkuil; Kamil Debski; Laurent Pinchart; Nicolas > Dufresne; Sakari Ailus; ker...@pengutronix.de > Subject: Re: [PATCH v4 2/4] [media] videobuf2:

Re: [PATCH v4 2/4] [media] videobuf2: return -EPIPE from DQBUF after the last buffer

2015-04-13 Thread Philipp Zabel
Hi Pawel, thanks for the review! Am Montag, den 13.04.2015, 15:30 +0900 schrieb Pawel Osciak: > Hi, > > On Wed, Mar 25, 2015 at 2:46 AM, Philipp Zabel wrote: > > If the last buffer was dequeued from a capture queue, let poll return > > immediately and let DQBUF return -EPIPE to signal there wil

Re: [PATCH v4 2/4] [media] videobuf2: return -EPIPE from DQBUF after the last buffer

2015-04-12 Thread Pawel Osciak
Hi, On Wed, Mar 25, 2015 at 2:46 AM, Philipp Zabel wrote: > If the last buffer was dequeued from a capture queue, let poll return > immediately and let DQBUF return -EPIPE to signal there will no more > buffers to dequeue until STREAMOFF. > The driver signals the last buffer by setting the V4L2_B

[PATCH v4 2/4] [media] videobuf2: return -EPIPE from DQBUF after the last buffer

2015-03-24 Thread Philipp Zabel
If the last buffer was dequeued from a capture queue, let poll return immediately and let DQBUF return -EPIPE to signal there will no more buffers to dequeue until STREAMOFF. The driver signals the last buffer by setting the V4L2_BUF_FLAG_LAST. To reenable dequeuing on the capture queue, the driver