7 /* ---------------------------------------------------------------------- */
14 /* ioctl for MSP_SET_MATRIX will have to be registered */
15 #define MSP_SET_MATRIX _IOW('m',17,struct msp_matrix)
17 /* This macro is allowed for *constants* only, gcc must calculate it
18 at compile time. Remember -- no floats in kernel mode */
19 #define MSP_CARRIER(freq) ((int)((float)(freq / 18.432) * (1 << 24)))
21 #define MSP_MODE_AM_DETECT 0
22 #define MSP_MODE_FM_RADIO 2
23 #define MSP_MODE_FM_TERRA 3
24 #define MSP_MODE_FM_SAT 4
25 #define MSP_MODE_FM_NICAM1 5
26 #define MSP_MODE_FM_NICAM2 6
27 #define MSP_MODE_AM_NICAM 7
28 #define MSP_MODE_BTSC 8
29 #define MSP_MODE_EXTERN 9
34 #define SCART_IN1_DA 3
35 #define SCART_IN2_DA 4
41 #define SCART_DSP_IN 0
45 #define OPMODE_AUTO -1
46 #define OPMODE_MANUAL 0
47 #define OPMODE_AUTODETECT 1 /* use autodetect (>= msp3410 only) */
48 #define OPMODE_AUTOSELECT 2 /* use autodetect & autoselect (>= msp34xxG) */
50 /* module parameters */
56 extern int stereo_threshold;
69 int main, second; /* sound carrier */
71 int source; /* see msp34xxg_set_source */
82 struct task_struct *kthread;
88 #define VIDEO_MODE_RADIO 16 /* norm magic for radio mode */
90 #define HAVE_NICAM(state) (((state->rev2 >> 8) & 0xff) != 0)
91 #define HAVE_RADIO(state) ((state->rev1 & 0x0f) >= 'G'-'@')
93 /* msp3400-driver.c */
94 int msp_write_dem(struct i2c_client *client, int addr, int val);
95 int msp_write_dsp(struct i2c_client *client, int addr, int val);
96 int msp_read_dem(struct i2c_client *client, int addr);
97 int msp_read_dsp(struct i2c_client *client, int addr);
98 int msp_reset(struct i2c_client *client);
99 void msp_set_scart(struct i2c_client *client, int in, int out);
100 void msp_set_mute(struct i2c_client *client);
101 void msp_set_audio(struct i2c_client *client);
102 int msp_modus(struct i2c_client *client, int norm);
103 int msp_standard(int norm);
104 int msp_sleep(struct msp_state *state, int timeout);
106 /* msp3400-kthreads.c */
107 const char *msp_standard_mode_name(int mode);
108 void msp3400c_setcarrier(struct i2c_client *client, int cdo1, int cdo2);
109 void msp3400c_setmode(struct i2c_client *client, int type);
110 void msp3400c_setstereo(struct i2c_client *client, int mode);
111 int autodetect_stereo(struct i2c_client *client);
112 int msp3400c_thread(void *data);
113 int msp3410d_thread(void *data);
114 int msp34xxg_thread(void *data);
115 void msp34xxg_detect_stereo(struct i2c_client *client);
116 void msp34xxg_set_audmode(struct i2c_client *client, int audmode);
118 #endif /* MSP3400_H */