]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (13165): videobuf do not force buffer size to be multiple of PAGE_SIZE
authorTuukka Toivonen <tuukka.o.toivonen@nokia.com>
Thu, 23 Jul 2009 13:56:25 +0000 (10:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:40:40 +0000 (18:40 -0200)
commit6c166aaff1352c62f09980fb014408b2bb92623a
tree0cfe7890db3e487f45255a1ea4e790c381823cf6
parentbbf2b82198462e2278471295f1df86d9b2c63c8e
V4L/DVB (13165): videobuf do not force buffer size to be multiple of PAGE_SIZE

When the image size (bytesperline*height) is not multiple
of PAGE_SIZE, v4l2 rounded the required buffer size to
be multiple of PAGE_SIZE. This prevented user space
to store images directly into userptr buffers which were
not multiple of PAGE_SIZE. This constraint is removed.

The start address is still assumed to be required
page-aligned, ie., when v4l2 allocates mmap buffers,
the offset between different buffers is page-aligned.

Signed-off-by: Tuukka Toivonen <tuukka.o.toivonen@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-core.c
drivers/media/video/videobuf-dma-sg.c