public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [Query] VIDIOC_QBUF and VIDIOC_STREAMON order
@ 2011-03-14 10:14 Sylwester Nawrocki
  2011-03-14 10:49 ` Subash Patel
       [not found] ` <AANLkTikBkPjy4jui1EjGULPFbUZxKK_ydaUqk7niFDxQ@mail.gmail.com>
  0 siblings, 2 replies; 8+ messages in thread
From: Sylwester Nawrocki @ 2011-03-14 10:14 UTC (permalink / raw)
  To: linux-media@vger.kernel.org

Hello,

As far as I know V4L2 applications are allowed to call VIDIOC_STREAMON before
queuing buffers with VIDIOC_QBUF.

This leads to situation that a H/W is attempted to be enabled by the driver
when it has no any buffer ownership. 

Effectively actual activation of the data pipeline has to be deferred
until first buffer arrived in the driver. Which makes it difficult 
to signal any errors to user during enabling the data pipeline.

Is this allowed to force applications to queue some buffers before calling
STREAMON, by returning an error in vidioc_streamon from the driver, when 
no buffers have been queued at this time?

I suppose this could render some applications to stop working if this kind
of restriction is applied e.g. in camera capture driver.

What the applications really expect?

With the above I refer mostly to a snapshot mode where we have to be careful
not to lose any frame, as there could be only one..


Please share you opinions.


Regards,
-- 
Sylwester Nawrocki
Samsung Poland R&D Center

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-03-22 23:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14 10:14 [Query] VIDIOC_QBUF and VIDIOC_STREAMON order Sylwester Nawrocki
2011-03-14 10:49 ` Subash Patel
2011-03-15  3:21   ` Pawel Osciak
2011-03-15  4:26     ` Subash Patel
2011-03-15  7:50     ` Hans Verkuil
2011-03-22 10:53       ` Laurent Pinchart
2011-03-22 23:58         ` Jonghun Han
     [not found] ` <AANLkTikBkPjy4jui1EjGULPFbUZxKK_ydaUqk7niFDxQ@mail.gmail.com>
2011-03-15 10:52   ` Sylwester Nawrocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox