diff options
author | Thierry MERLE <thierry.merle@free.fr> | 2007-02-07 08:13:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:35:19 -0500 |
commit | 6f78e186fe5d29dbff5e34f950adb573c4808de4 (patch) | |
tree | 23297d74fceeaa3b9668fda9a429c17c57107213 /drivers/media/video/usbvision/usbvision.h | |
parent | c65eeaab1f04d1113b5c4fb21f7f61ded795d2bb (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.h | 3 |
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); | |||
490 | int usbvision_write_reg(struct usb_usbvision *usbvision, unsigned char reg, | 491 | int usbvision_write_reg(struct usb_usbvision *usbvision, unsigned char reg, |
491 | unsigned char value); | 492 | unsigned char value); |
492 | 493 | ||
493 | int usbvision_frames_alloc(struct usb_usbvision *usbvision); | 494 | int usbvision_frames_alloc(struct usb_usbvision *usbvision, int number_of_frames); |
494 | void usbvision_frames_free(struct usb_usbvision *usbvision); | 495 | void usbvision_frames_free(struct usb_usbvision *usbvision); |
495 | int usbvision_scratch_alloc(struct usb_usbvision *usbvision); | 496 | int usbvision_scratch_alloc(struct usb_usbvision *usbvision); |
496 | void usbvision_scratch_free(struct usb_usbvision *usbvision); | 497 | void usbvision_scratch_free(struct usb_usbvision *usbvision); |