diff options
author | Laurent Pinchart <laurent.pinchart@skynet.be> | 2008-07-03 23:36:21 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:17:45 -0400 |
commit | e01117c81676dc9897f567e32cdc13a26e85280b (patch) | |
tree | 371bc23453782045f5236daaf891110b0337f013 /drivers/media/video/uvc/uvcvideo.h | |
parent | 291358785cde5536d98a4f3cae77efd8ca626486 (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.h | 2 |
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 | }; |