linux/drivers/media/usb/go7007/s2250-board.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2008 Sensoray Company Inc.
 */

#include <linux/module.h>
#include <linux/usb.h>
#include <linux/i2c.h>
#include <linux/videodev2.h>
#include <linux/slab.h>
#include <media/v4l2-device.h>
#include <media/v4l2-common.h>
#include <media/v4l2-subdev.h>
#include "go7007-priv.h"

MODULE_DESCRIPTION();
MODULE_LICENSE();

/*
 * Note: this board has two i2c devices: a vpx3226f and a tlv320aic23b.
 * Due to the unusual way these are accessed on this device we do not
 * reuse the i2c drivers, but instead they are implemented in this
 * driver. It would be nice to improve on this, though.
 */

#define TLV320_ADDRESS
#define VPX322_ADDR_ANALOGCONTROL1
#define VPX322_ADDR_BRIGHTNESS0
#define VPX322_ADDR_BRIGHTNESS1
#define VPX322_ADDR_CONTRAST0
#define VPX322_ADDR_CONTRAST1
#define VPX322_ADDR_HUE
#define VPX322_ADDR_SAT

struct go7007_usb_board {};

struct go7007_usb {};

static unsigned char aud_regs[] =;


static unsigned char vid_regs[] =;

static u16 vid_regs_fp[] =;

/* PAL specific values */
static u16 vid_regs_fp_pal[] =;

struct s2250 {};

static inline struct s2250 *to_state(struct v4l2_subdev *sd)
{}

/* from go7007-usb.c which is Copyright (C) 2005-2006 Micronas USA Inc.*/
static int go7007_usb_vendor_request(struct go7007 *go, u16 request,
	u16 value, u16 index, void *transfer_buffer, int length, int in)
{}
/* end from go7007-usb.c which is Copyright (C) 2005-2006 Micronas USA Inc.*/

static int write_reg(struct i2c_client *client, u8 reg, u8 value)
{}

static int write_reg_fp(struct i2c_client *client, u16 addr, u16 val)
{}

static int read_reg_fp(struct i2c_client *client, u16 addr, u16 *val)
{}


static int write_regs(struct i2c_client *client, u8 *regs)
{}

static int write_regs_fp(struct i2c_client *client, u16 *regs)
{}


/* ------------------------------------------------------------------------- */

static int s2250_s_video_routing(struct v4l2_subdev *sd, u32 input, u32 output,
				 u32 config)
{}

static int s2250_s_std(struct v4l2_subdev *sd, v4l2_std_id norm)
{}

static int s2250_s_ctrl(struct v4l2_ctrl *ctrl)
{}

static int s2250_set_fmt(struct v4l2_subdev *sd,
		struct v4l2_subdev_state *sd_state,
		struct v4l2_subdev_format *format)
{}

static int s2250_s_audio_routing(struct v4l2_subdev *sd, u32 input, u32 output,
				 u32 config)
{}


static int s2250_log_status(struct v4l2_subdev *sd)
{}

/* --------------------------------------------------------------------------*/

static const struct v4l2_ctrl_ops s2250_ctrl_ops =;

static const struct v4l2_subdev_core_ops s2250_core_ops =;

static const struct v4l2_subdev_audio_ops s2250_audio_ops =;

static const struct v4l2_subdev_video_ops s2250_video_ops =;

static const struct v4l2_subdev_pad_ops s2250_pad_ops =;

static const struct v4l2_subdev_ops s2250_ops =;

/* --------------------------------------------------------------------------*/

static int s2250_probe(struct i2c_client *client)
{}

static void s2250_remove(struct i2c_client *client)
{}

static const struct i2c_device_id s2250_id[] =;
MODULE_DEVICE_TABLE(i2c, s2250_id);

static struct i2c_driver s2250_driver =;

module_i2c_driver();