diff options
author | Michael Jones <michael.jones@matrix-vision.de> | 2012-06-27 11:06:57 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-08-11 14:55:28 -0400 |
commit | b1e71f31cb315cdc3be5a861b2eaab7401b70295 (patch) | |
tree | 115f5cb2c4eaee665c6579b33e21b865c05dde09 | |
parent | 13eaaa7f2fa1d2bd247d68792bf187239a24a33f (diff) |
[media] omap3isp: queue: Fix omap3isp_video_queue_dqbuf() description comment
Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/omap3isp/ispqueue.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/media/video/omap3isp/ispqueue.c b/drivers/media/video/omap3isp/ispqueue.c index 9bebb1e57aa..e912f0cbd6e 100644 --- a/drivers/media/video/omap3isp/ispqueue.c +++ b/drivers/media/video/omap3isp/ispqueue.c | |||
@@ -908,13 +908,14 @@ done: | |||
908 | * | 908 | * |
909 | * This function is intended to be used as a VIDIOC_DQBUF ioctl handler. | 909 | * This function is intended to be used as a VIDIOC_DQBUF ioctl handler. |
910 | * | 910 | * |
911 | * The v4l2_buffer structure passed from userspace is first sanity tested. If | 911 | * Wait until a buffer is ready to be dequeued, remove it from the queue and |
912 | * sane, the buffer is then processed and added to the main queue and, if the | 912 | * copy its information to the v4l2_buffer structure. |
913 | * queue is streaming, to the IRQ queue. | ||
914 | * | 913 | * |
915 | * Before being enqueued, USERPTR buffers are checked for address changes. If | 914 | * If the nonblocking argument is not zero and no buffer is ready, return |
916 | * the buffer has a different userspace address, the old memory area is unlocked | 915 | * -EAGAIN immediately instead of waiting. |
917 | * and the new memory area is locked. | 916 | * |
917 | * If no buffer has been enqueued, or if the requested buffer type doesn't match | ||
918 | * the queue type, return -EINVAL. | ||
918 | */ | 919 | */ |
919 | int omap3isp_video_queue_dqbuf(struct isp_video_queue *queue, | 920 | int omap3isp_video_queue_dqbuf(struct isp_video_queue *queue, |
920 | struct v4l2_buffer *vbuf, int nonblocking) | 921 | struct v4l2_buffer *vbuf, int nonblocking) |