Hi,

Any comment for this ?

In my opinion v4l2 spec is not accurate in this topic.
Because VIDIOC_REQBUFS describes count is only used in V4L2_MEMORY_MMAP as
below.
__u32   count   The number of buffers requested or granted. This field is
only used when memory is set to V4L2_MEMORY_MMAP.

But there is no comment in QBUF and DQBUF part about index.
So I am confused. If an index isn't needed, how to driver handle it ?

Best regards,
Jonghun Han,

> -----Original Message-----
> From: linux-media-ow...@vger.kernel.org [mailto:linux-media-
> ow...@vger.kernel.org] On Behalf Of Jonghun Han
> Sent: Saturday, December 11, 2010 2:10 PM
> To: linux-media@vger.kernel.org
> Subject: Should a index be passed on the fly with the VIDIOC_QBUF ioctl in
> V4L2_MEMORY_USERPTR case ?
> 
> Hi,
> 
> I wonder that a index should be passed on the fly with the VIDIOC_QBUF
> ioctl in V4L2_MEMORY_USERPTR case.
> If it isn't needed, should driver return virtual address gotten from
> application on the fly with the VIDIOC_DQBUF ioctl ?
> 
> Best regards,
> Jonghun Han,
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to