aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/uvc/uvcvideo.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@skynet.be>2008-07-03 23:36:21 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:17:45 -0400
commite01117c81676dc9897f567e32cdc13a26e85280b (patch)
tree371bc23453782045f5236daaf891110b0337f013 /drivers/media/video/uvc/uvcvideo.h
parent291358785cde5536d98a4f3cae77efd8ca626486 (diff)
V4L/DVB (8209): uvcvideo: Don't free URB buffers on suspend.
All submitted URBs must be killed at suspend time, but URB buffers don't have to be freed. Avoiding a free on suspend/reallocate on resume lowers the presure on system memory. Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/uvc/uvcvideo.h')
-rw-r--r--drivers/media/video/uvc/uvcvideo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/uvc/uvcvideo.h b/drivers/media/video/uvc/uvcvideo.h
index a995a780db1c..2444b8a9d2a0 100644
--- a/drivers/media/video/uvc/uvcvideo.h
+++ b/drivers/media/video/uvc/uvcvideo.h
@@ -602,6 +602,8 @@ struct uvc_video_device {
602 602
603 struct urb *urb[UVC_URBS]; 603 struct urb *urb[UVC_URBS];
604 char *urb_buffer[UVC_URBS]; 604 char *urb_buffer[UVC_URBS];
605 dma_addr_t urb_dma[UVC_URBS];
606 unsigned int urb_size;
605 607
606 __u8 last_fid; 608 __u8 last_fid;
607}; 609};