#ifndef MSP3400_DRIVER_H
#define MSP3400_DRIVER_H
#include <media/drv-intf/msp3400.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-mc.h>
#define MSP_CARRIER(freq) …
#define MSP_MODE_AM_DETECT …
#define MSP_MODE_FM_RADIO …
#define MSP_MODE_FM_TERRA …
#define MSP_MODE_FM_SAT …
#define MSP_MODE_FM_NICAM1 …
#define MSP_MODE_FM_NICAM2 …
#define MSP_MODE_AM_NICAM …
#define MSP_MODE_BTSC …
#define MSP_MODE_EXTERN …
#define SCART_IN1 …
#define SCART_IN2 …
#define SCART_IN3 …
#define SCART_IN4 …
#define SCART_IN1_DA …
#define SCART_IN2_DA …
#define SCART_MONO …
#define SCART_MUTE …
#define SCART_DSP_IN …
#define SCART1_OUT …
#define SCART2_OUT …
#define OPMODE_AUTO …
#define OPMODE_MANUAL …
#define OPMODE_AUTODETECT …
#define OPMODE_AUTOSELECT …
extern int msp_debug;
extern bool msp_once;
extern bool msp_amsound;
extern int msp_standard;
extern bool msp_dolby;
extern int msp_stereo_thresh;
enum msp3400_pads { … };
struct msp_state { … };
static inline struct msp_state *to_state(struct v4l2_subdev *sd)
{ … }
static inline struct msp_state *ctrl_to_state(struct v4l2_ctrl *ctrl)
{ … }
int msp_write_dem(struct i2c_client *client, int addr, int val);
int msp_write_dsp(struct i2c_client *client, int addr, int val);
int msp_read_dem(struct i2c_client *client, int addr);
int msp_read_dsp(struct i2c_client *client, int addr);
int msp_reset(struct i2c_client *client);
void msp_set_scart(struct i2c_client *client, int in, int out);
void msp_update_volume(struct msp_state *state);
int msp_sleep(struct msp_state *state, int msec);
const char *msp_standard_std_name(int std);
void msp_set_audmode(struct i2c_client *client);
int msp_detect_stereo(struct i2c_client *client);
int msp3400c_thread(void *data);
int msp3410d_thread(void *data);
int msp34xxg_thread(void *data);
void msp3400c_set_mode(struct i2c_client *client, int mode);
void msp3400c_set_carrier(struct i2c_client *client, int cdo1, int cdo2);
#endif