summaryrefslogtreecommitdiff
path: root/drivers/media/usb/uvc/uvcvideo.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-02-18 10:40:47 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-02-28 13:24:00 -0300
commitbddb9d0e97f20dfd614d3dd56043418766703936 (patch)
tree3a2bfc75e83a9d981e705ccbffca290faa960193 /drivers/media/usb/uvc/uvcvideo.h
parentccc135c380338ccc6643f6dd7f16000ae7384a13 (diff)
[media] uvcvideo: Support allocating buffers larger than the current frame size
The queue_setup handler takes an optional format argument that can be used to allocate buffers for a format different than the current format. The uvcvideo driver doesn't support changing the format when buffers have been allocated, but there's no reason not to support allocating buffers larger than the minimum size. When the format argument isn't NULL verify that the requested image size is large enough for the current format and use it for the buffer size. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/uvc/uvcvideo.h')
0 files changed, 0 insertions, 0 deletions