summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorLuc Saillard <luc@saillard.org>2007-04-23 04:55:10 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-27 20:45:51 +0200
commit288bb0e79015d4121d4ccf77a4db2bde27a49492 (patch)
tree4b396f1ac021add93a7deac55a6b26f981bdc22a /drivers/media
parentV4L/DVB (5547): Add ENUM_FRAMESIZES and ENUM_FRAMEINTERVALS ioctls (diff)
downloadlinux-288bb0e79015d4121d4ccf77a4db2bde27a49492.tar.xz
linux-288bb0e79015d4121d4ccf77a4db2bde27a49492.zip
V4L/DVB (5548): Fix v4l2 buffer to the length
Set the length of the v4l2 buffer to the length of the mapped memory. This should fix the problem with amsn. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/pwc/pwc-v4l.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pwc/pwc-v4l.c b/drivers/media/video/pwc/pwc-v4l.c
index e20251d05bf6..32fbe1ae6251 100644
--- a/drivers/media/video/pwc/pwc-v4l.c
+++ b/drivers/media/video/pwc/pwc-v4l.c
@@ -1168,7 +1168,7 @@ int pwc_video_do_ioctl(struct inode *inode, struct file *file,
buf->sequence = 0;
buf->memory = V4L2_MEMORY_MMAP;
buf->m.offset = pdev->fill_image * pdev->len_per_image;
- buf->length = buf->bytesused;
+ buf->length = pdev->len_per_image;
pwc_next_image(pdev);
PWC_DEBUG_IOCTL("VIDIOC_DQBUF: buf->index=%d\n",buf->index);