aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/usbvision/usbvision.h
diff options
context:
space:
mode:
authorThierry MERLE <thierry.merle@free.fr>2007-02-07 08:13:11 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 10:35:19 -0500
commit6f78e186fe5d29dbff5e34f950adb573c4808de4 (patch)
tree23297d74fceeaa3b9668fda9a429c17c57107213 /drivers/media/video/usbvision/usbvision.h
parentc65eeaab1f04d1113b5c4fb21f7f61ded795d2bb (diff)
V4L/DVB (5205): Usbvision: dynamic allocation for frames
- fix decoder route output - dynamic frame buffer allocation Signed-off-by: Thierry MERLE <thierry.merle@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/usbvision/usbvision.h')
-rw-r--r--drivers/media/video/usbvision/usbvision.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/usbvision/usbvision.h b/drivers/media/video/usbvision/usbvision.h
index a316871b79a0..0e2b55699860 100644
--- a/drivers/media/video/usbvision/usbvision.h
+++ b/drivers/media/video/usbvision/usbvision.h
@@ -421,6 +421,7 @@ struct usb_usbvision {
421 wait_queue_head_t wait_stream; /* Processes waiting */ 421 wait_queue_head_t wait_stream; /* Processes waiting */
422 struct usbvision_frame *curFrame; // pointer to current frame, set by usbvision_find_header 422 struct usbvision_frame *curFrame; // pointer to current frame, set by usbvision_find_header
423 struct usbvision_frame frame[USBVISION_NUMFRAMES]; // frame buffer 423 struct usbvision_frame frame[USBVISION_NUMFRAMES]; // frame buffer
424 int num_frames; // number of frames allocated
424 struct usbvision_sbuf sbuf[USBVISION_NUMSBUF]; // S buffering 425 struct usbvision_sbuf sbuf[USBVISION_NUMSBUF]; // S buffering
425 volatile int remove_pending; /* If set then about to exit */ 426 volatile int remove_pending; /* If set then about to exit */
426 427
@@ -490,7 +491,7 @@ int usbvision_read_reg(struct usb_usbvision *usbvision, unsigned char reg);
490int usbvision_write_reg(struct usb_usbvision *usbvision, unsigned char reg, 491int usbvision_write_reg(struct usb_usbvision *usbvision, unsigned char reg,
491 unsigned char value); 492 unsigned char value);
492 493
493int usbvision_frames_alloc(struct usb_usbvision *usbvision); 494int usbvision_frames_alloc(struct usb_usbvision *usbvision, int number_of_frames);
494void usbvision_frames_free(struct usb_usbvision *usbvision); 495void usbvision_frames_free(struct usb_usbvision *usbvision);
495int usbvision_scratch_alloc(struct usb_usbvision *usbvision); 496int usbvision_scratch_alloc(struct usb_usbvision *usbvision);
496void usbvision_scratch_free(struct usb_usbvision *usbvision); 497void usbvision_scratch_free(struct usb_usbvision *usbvision);