aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/usbvision/usbvision.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/usbvision/usbvision.h')
-rw-r--r--drivers/media/video/usbvision/usbvision.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/media/video/usbvision/usbvision.h b/drivers/media/video/usbvision/usbvision.h
index e2bcaba93871..ad6afd3e42a4 100644
--- a/drivers/media/video/usbvision/usbvision.h
+++ b/drivers/media/video/usbvision/usbvision.h
@@ -33,6 +33,7 @@
33 33
34#include <linux/list.h> 34#include <linux/list.h>
35#include <linux/usb.h> 35#include <linux/usb.h>
36#include <linux/i2c.h>
36#include <media/v4l2-common.h> 37#include <media/v4l2-common.h>
37#include <media/tuner.h> 38#include <media/tuner.h>
38#include <linux/videodev2.h> 39#include <linux/videodev2.h>
@@ -396,8 +397,11 @@ struct usb_usbvision {
396 397
397 /* Device structure */ 398 /* Device structure */
398 struct usb_device *dev; 399 struct usb_device *dev;
400 /* usb transfer */
401 int num_alt; /* Number of alternative settings */
402 unsigned int *alt_max_pkt_size; /* array of wMaxPacketSize */
399 unsigned char iface; /* Video interface number */ 403 unsigned char iface; /* Video interface number */
400 unsigned char ifaceAltActive, ifaceAltInactive; /* Alt settings */ 404 unsigned char ifaceAlt; /* Alt settings */
401 unsigned char Vin_Reg2_Preset; 405 unsigned char Vin_Reg2_Preset;
402 struct semaphore lock; 406 struct semaphore lock;
403 struct timer_list powerOffTimer; 407 struct timer_list powerOffTimer;
@@ -421,6 +425,7 @@ struct usb_usbvision {
421 wait_queue_head_t wait_stream; /* Processes waiting */ 425 wait_queue_head_t wait_stream; /* Processes waiting */
422 struct usbvision_frame *curFrame; // pointer to current frame, set by usbvision_find_header 426 struct usbvision_frame *curFrame; // pointer to current frame, set by usbvision_find_header
423 struct usbvision_frame frame[USBVISION_NUMFRAMES]; // frame buffer 427 struct usbvision_frame frame[USBVISION_NUMFRAMES]; // frame buffer
428 int num_frames; // number of frames allocated
424 struct usbvision_sbuf sbuf[USBVISION_NUMSBUF]; // S buffering 429 struct usbvision_sbuf sbuf[USBVISION_NUMSBUF]; // S buffering
425 volatile int remove_pending; /* If set then about to exit */ 430 volatile int remove_pending; /* If set then about to exit */
426 431
@@ -486,12 +491,11 @@ int usbvision_init_i2c(struct usb_usbvision *usbvision);
486void call_i2c_clients(struct usb_usbvision *usbvision, unsigned int cmd,void *arg); 491void call_i2c_clients(struct usb_usbvision *usbvision, unsigned int cmd,void *arg);
487 492
488/* defined in usbvision-core.c */ 493/* defined in usbvision-core.c */
489void usbvision_rvfree(void *mem, unsigned long size);
490int usbvision_read_reg(struct usb_usbvision *usbvision, unsigned char reg); 494int usbvision_read_reg(struct usb_usbvision *usbvision, unsigned char reg);
491int usbvision_write_reg(struct usb_usbvision *usbvision, unsigned char reg, 495int usbvision_write_reg(struct usb_usbvision *usbvision, unsigned char reg,
492 unsigned char value); 496 unsigned char value);
493 497
494int usbvision_frames_alloc(struct usb_usbvision *usbvision); 498int usbvision_frames_alloc(struct usb_usbvision *usbvision, int number_of_frames);
495void usbvision_frames_free(struct usb_usbvision *usbvision); 499void usbvision_frames_free(struct usb_usbvision *usbvision);
496int usbvision_scratch_alloc(struct usb_usbvision *usbvision); 500int usbvision_scratch_alloc(struct usb_usbvision *usbvision);
497void usbvision_scratch_free(struct usb_usbvision *usbvision); 501void usbvision_scratch_free(struct usb_usbvision *usbvision);
@@ -502,6 +506,7 @@ int usbvision_setup(struct usb_usbvision *usbvision,int format);
502int usbvision_init_isoc(struct usb_usbvision *usbvision); 506int usbvision_init_isoc(struct usb_usbvision *usbvision);
503int usbvision_restart_isoc(struct usb_usbvision *usbvision); 507int usbvision_restart_isoc(struct usb_usbvision *usbvision);
504void usbvision_stop_isoc(struct usb_usbvision *usbvision); 508void usbvision_stop_isoc(struct usb_usbvision *usbvision);
509int usbvision_set_alternate(struct usb_usbvision *dev);
505 510
506int usbvision_set_audio(struct usb_usbvision *usbvision, int AudioChannel); 511int usbvision_set_audio(struct usb_usbvision *usbvision, int AudioChannel);
507int usbvision_audio_off(struct usb_usbvision *usbvision); 512int usbvision_audio_off(struct usb_usbvision *usbvision);