Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 288bb0e7 authored by Luc Saillard's avatar Luc Saillard Committed by Mauro Carvalho Chehab
Browse files

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: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 9ee6d78c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);