Re: [PATCH v5.1 1/2] vb2: add requires_requests bit for stateless codecs

2019-03-20 Thread Mauro Carvalho Chehab
Em Wed, 20 Mar 2019 14:06:51 +0100 Hans Verkuil escreveu: > On 3/20/19 1:55 PM, Mauro Carvalho Chehab wrote: > > Em Wed, 20 Mar 2019 13:33:04 +0100 > > hverkuil-ci...@xs4all.nl escreveu: > > > >> From: Hans Verkuil > >> > >> Stateless codecs require the use of the Request API as opposed of it

Re: [PATCH v5.1 1/2] vb2: add requires_requests bit for stateless codecs

2019-03-20 Thread Hans Verkuil
On 3/20/19 1:55 PM, Mauro Carvalho Chehab wrote: > Em Wed, 20 Mar 2019 13:33:04 +0100 > hverkuil-ci...@xs4all.nl escreveu: > >> From: Hans Verkuil >> >> Stateless codecs require the use of the Request API as opposed of it >> being optional. >> >> So add a bit to indicate this and let vb2 check fo

Re: [PATCH v5.1 1/2] vb2: add requires_requests bit for stateless codecs

2019-03-20 Thread Mauro Carvalho Chehab
Em Wed, 20 Mar 2019 13:33:04 +0100 hverkuil-ci...@xs4all.nl escreveu: > From: Hans Verkuil > > Stateless codecs require the use of the Request API as opposed of it > being optional. > > So add a bit to indicate this and let vb2 check for this. > > If an attempt is made to queue a buffer withou

[PATCH v5.1 1/2] vb2: add requires_requests bit for stateless codecs

2019-03-20 Thread hverkuil-cisco
From: Hans Verkuil Stateless codecs require the use of the Request API as opposed of it being optional. So add a bit to indicate this and let vb2 check for this. If an attempt is made to queue a buffer without an associated request, then the EBADR error is returned to userspace. Doing this che