linux/drivers/media/usb/gspca/t613.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * T613 subdriver
 *
 * Copyright (C) 2010 Jean-Francois Moine (http://moinejf.free.fr)
 *
 *Notes: * t613  + tas5130A
 *	* Focus to light do not balance well as in win.
 *	  Quality in win is not good, but its kinda better.
 *	 * Fix some "extraneous bytes", most of apps will show the image anyway
 *	 * Gamma table, is there, but its really doing something?
 *	 * 7~8 Fps, its ok, max on win its 10.
 *			Costantino Leandro
 */

#define pr_fmt(fmt)

#define MODULE_NAME

#include <linux/input.h>
#include <linux/slab.h>
#include "gspca.h"

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();

struct sd {};
enum sensors {};

static const struct v4l2_pix_format vga_mode_t16[] =;

/* sensor specific data */
struct additional_sensor_data {};

static const u8 n4_om6802[] =;
static const u8 n4_other[] =;
static const u8 n4_tas5130a[] =;
static const u8 n4_lt168g[] =;

static const struct additional_sensor_data sensor_data[] =;

#define MAX_EFFECTS
static const u8 effects_table[MAX_EFFECTS][6] =;

#define GAMMA_MAX
static const u8 gamma_table[GAMMA_MAX+1][17] =;

static const u8 tas5130a_sensor_init[][8] =;

static u8 sensor_reset[] =;

/* read 1 byte */
static u8 reg_r(struct gspca_dev *gspca_dev,
		   u16 index)
{}

static void reg_w(struct gspca_dev *gspca_dev,
		  u16 index)
{}

static void reg_w_buf(struct gspca_dev *gspca_dev,
		  const u8 *buffer, u16 len)
{}

/* write values to consecutive registers */
static void reg_w_ixbuf(struct gspca_dev *gspca_dev,
			u8 reg,
			const u8 *buffer, u16 len)
{}

static void om6802_sensor_init(struct gspca_dev *gspca_dev)
{}

/* this function is called at probe time */
static int sd_config(struct gspca_dev *gspca_dev,
		     const struct usb_device_id *id)
{}

static void setbrightness(struct gspca_dev *gspca_dev, s32 brightness)
{}

static void setcontrast(struct gspca_dev *gspca_dev, s32 contrast)
{}

static void setcolors(struct gspca_dev *gspca_dev, s32 val)
{}

static void setgamma(struct gspca_dev *gspca_dev, s32 val)
{}

static void setawb_n_RGB(struct gspca_dev *gspca_dev)
{}

static void setsharpness(struct gspca_dev *gspca_dev, s32 val)
{}

static void setfreq(struct gspca_dev *gspca_dev, s32 val)
{}

/* this function is called at probe and resume time */
static int sd_init(struct gspca_dev *gspca_dev)
{}

static void setmirror(struct gspca_dev *gspca_dev, s32 val)
{}

static void seteffect(struct gspca_dev *gspca_dev, s32 val)
{}

/* Is this really needed?
 * i added some module parameters for test with some users */
static void poll_sensor(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,			/* isoc packet */
			int len)			/* iso packet length */
{}

static int sd_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
{}

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)
{}

/* sub-driver description */
static const struct sd_desc sd_desc =;

/* -- module initialisation -- */
static const struct usb_device_id device_table[] =;
MODULE_DEVICE_TABLE(usb, device_table);

/* -- device connect -- */
static int sd_probe(struct usb_interface *intf,
		    const struct usb_device_id *id)
{}

static struct usb_driver sd_driver =;

module_usb_driver();