#define pr_fmt(fmt) …
#define MODULE_NAME …
#include "gspca.h"
#include "jpeg.h"
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
#define QUALITY …
struct sd { … };
static const struct v4l2_pix_format vga_mode[] = …;
static const struct v4l2_pix_format sif_mode[] = …;
#define SPCA500_OFFSET_PADDINGLB …
#define SPCA500_OFFSET_PADDINGHB …
#define SPCA500_OFFSET_MODE …
#define SPCA500_OFFSET_IMGWIDTH …
#define SPCA500_OFFSET_IMGHEIGHT …
#define SPCA500_OFFSET_IMGMODE …
#define SPCA500_OFFSET_QTBLINDEX …
#define SPCA500_OFFSET_FRAMSEQ …
#define SPCA500_OFFSET_CDSPINFO …
#define SPCA500_OFFSET_GPIO …
#define SPCA500_OFFSET_AUGPIO …
#define SPCA500_OFFSET_DATA …
static const __u16 spca500_visual_defaults[][3] = …;
static const __u16 Clicksmart510_defaults[][3] = …;
static const __u8 qtable_creative_pccam[2][64] = …;
static const __u8 qtable_kodak_ez200[2][64] = …;
static const __u8 qtable_pocketdv[2][64] = …;
static void reg_r(struct gspca_dev *gspca_dev,
__u16 index,
__u16 length)
{ … }
static int reg_w(struct gspca_dev *gspca_dev,
__u16 req, __u16 index, __u16 value)
{ … }
static int reg_r_12(struct gspca_dev *gspca_dev,
__u16 req,
__u16 index,
__u16 length)
{ … }
static int reg_r_wait(struct gspca_dev *gspca_dev,
__u16 reg, __u16 index, __u16 value)
{ … }
static int write_vector(struct gspca_dev *gspca_dev,
const __u16 data[][3])
{ … }
static int spca50x_setup_qtable(struct gspca_dev *gspca_dev,
unsigned int request,
unsigned int ybase,
unsigned int cbase,
const __u8 qtable[2][64])
{ … }
static void spca500_ping310(struct gspca_dev *gspca_dev)
{ … }
static void spca500_clksmart310_init(struct gspca_dev *gspca_dev)
{ … }
static void spca500_setmode(struct gspca_dev *gspca_dev,
__u8 xmult, __u8 ymult)
{ … }
static int spca500_full_reset(struct gspca_dev *gspca_dev)
{ … }
static int spca500_synch310(struct gspca_dev *gspca_dev)
{ … }
static void spca500_reinit(struct gspca_dev *gspca_dev)
{ … }
static int sd_config(struct gspca_dev *gspca_dev,
const struct usb_device_id *id)
{ … }
static int sd_init(struct gspca_dev *gspca_dev)
{ … }
static int sd_start(struct gspca_dev *gspca_dev)
{ … }
static void sd_stopN(struct gspca_dev *gspca_dev)
{ … }
static void sd_pkt_scan(struct gspca_dev *gspca_dev,
u8 *data,
int len)
{ … }
static void setbrightness(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void setcontrast(struct gspca_dev *gspca_dev, s32 val)
{ … }
static void setcolors(struct gspca_dev *gspca_dev, s32 val)
{ … }
static int sd_s_ctrl(struct v4l2_ctrl *ctrl)
{ … }
static const struct v4l2_ctrl_ops sd_ctrl_ops = …;
static int sd_init_controls(struct gspca_dev *gspca_dev)
{ … }
static const struct sd_desc sd_desc = …;
static const struct usb_device_id device_table[] = …;
MODULE_DEVICE_TABLE(usb, device_table);
static int sd_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{ … }
static struct usb_driver sd_driver = …;
module_usb_driver(…) …;