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;
65 u8 has_scart23_in_scart2_out;
66 u8 has_scart2_out_volume;
69 u8 has_sound_processing;
70 u8 has_virtual_dolby_surround;
71 u8 has_dolby_pro_logic;
82 int main, second; /* sound carrier */
84 int source; /* see msp34xxg_set_source */
91 int balance, loudness;
95 struct task_struct *kthread;
101 /* msp3400-driver.c */
102 int msp_write_dem(struct i2c_client *client, int addr, int val);
103 int msp_write_dsp(struct i2c_client *client, int addr, int val);
104 int msp_read_dem(struct i2c_client *client, int addr);
105 int msp_read_dsp(struct i2c_client *client, int addr);
106 int msp_reset(struct i2c_client *client);
107 void msp_set_scart(struct i2c_client *client, int in, int out);
108 void msp_set_mute(struct i2c_client *client);
109 void msp_set_audio(struct i2c_client *client);
110 int msp_modus(struct i2c_client *client);
111 int msp_sleep(struct msp_state *state, int timeout);
113 /* msp3400-kthreads.c */
114 const char *msp_standard_std_name(int std);
115 void msp3400c_setcarrier(struct i2c_client *client, int cdo1, int cdo2);
116 void msp3400c_setmode(struct i2c_client *client, int type);
117 void msp3400c_setstereo(struct i2c_client *client, int mode);
118 int autodetect_stereo(struct i2c_client *client);
119 int msp3400c_thread(void *data);
120 int msp3410d_thread(void *data);
121 int msp34xxg_thread(void *data);
122 void msp34xxg_detect_stereo(struct i2c_client *client);
123 void msp34xxg_set_audmode(struct i2c_client *client, int audmode);
125 #endif /* MSP3400_H */