~ubuntu-branches/ubuntu/trusty/linux-linaro-omap/trusty

« back to all changes in this revision

Viewing changes to drivers/staging/tm6000/tm6000.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-57i0gl3v99b3lkfg
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#define TM6000_VERSION KERNEL_VERSION(0, 0, 2)
41
41
 
42
42
/* Inputs */
43
 
 
44
43
enum tm6000_itype {
45
 
        TM6000_INPUT_TV = 0,
46
 
        TM6000_INPUT_COMPOSITE,
 
44
        TM6000_INPUT_TV = 1,
 
45
        TM6000_INPUT_COMPOSITE1,
 
46
        TM6000_INPUT_COMPOSITE2,
47
47
        TM6000_INPUT_SVIDEO,
 
48
        TM6000_INPUT_DVB,
 
49
        TM6000_INPUT_RADIO,
 
50
};
 
51
 
 
52
enum tm6000_mux {
 
53
        TM6000_VMUX_VIDEO_A = 1,
 
54
        TM6000_VMUX_VIDEO_B,
 
55
        TM6000_VMUX_VIDEO_AB,
 
56
        TM6000_AMUX_ADC1,
 
57
        TM6000_AMUX_ADC2,
 
58
        TM6000_AMUX_SIF1,
 
59
        TM6000_AMUX_SIF2,
 
60
        TM6000_AMUX_I2S,
48
61
};
49
62
 
50
63
enum tm6000_devtype {
53
66
        TM6010,
54
67
};
55
68
 
56
 
enum tm6000_inaudio {
57
 
        TM6000_AIP_UNK = 0,
58
 
        TM6000_AIP_SIF1,
59
 
        TM6000_AIP_SIF2,
60
 
        TM6000_AIP_LINE1,
61
 
        TM6000_AIP_LINE2,
 
69
struct tm6000_input {
 
70
        enum tm6000_itype       type;
 
71
        enum tm6000_mux         vmux;
 
72
        enum tm6000_mux         amux;
 
73
        unsigned int            v_gpio;
 
74
        unsigned int            a_gpio;
62
75
};
63
76
 
64
77
/* ------------------------------------------------------------------
129
142
        unsigned int    has_zl10353:1;
130
143
        unsigned int    has_eeprom:1;
131
144
        unsigned int    has_remote:1;
132
 
        unsigned int    has_input_comp:1;
133
 
        unsigned int    has_input_svid:1;
 
145
        unsigned int    has_radio:1;
134
146
};
135
147
 
136
148
struct tm6000_dvb {
167
179
        int                             model;          /* index in the device_data struct */
168
180
        int                             devno;          /* marks the number of this device */
169
181
        enum tm6000_devtype             dev_type;       /* type of device */
 
182
        unsigned char                   eedata[256];    /* Eeprom data */
 
183
        unsigned                        eedata_size;    /* Size of the eeprom info */
170
184
 
171
185
        v4l2_std_id                     norm;           /* Current norm */
172
186
        int                             width, height;  /* Selected resolution */
211
225
        struct v4l2_device              v4l2_dev;
212
226
 
213
227
        int                             input;
 
228
        struct tm6000_input             vinput[3];      /* video input */
 
229
        struct tm6000_input             rinput;         /* radio input */
 
230
 
214
231
        int                             freq;
215
232
        unsigned int                    fourcc;
216
233
 
218
235
 
219
236
        int                             ctl_mute;             /* audio */
220
237
        int                             ctl_volume;
 
238
        int                             amode;
221
239
 
222
240
        /* DVB-T support */
223
241
        struct tm6000_dvb               *dvb;
226
244
        struct snd_tm6000_card          *adev;
227
245
        struct work_struct              wq_trigger;   /* Trigger to start/stop audio for alsa module */
228
246
        atomic_t                        stream_started;  /* stream should be running if true */
229
 
        enum tm6000_inaudio             avideo;
230
 
        enum tm6000_inaudio             aradio;
231
247
 
232
248
        struct tm6000_IR                *ir;
233
249
 
302
318
int tm6000_init_analog_mode(struct tm6000_core *dev);
303
319
int tm6000_init_digital_mode(struct tm6000_core *dev);
304
320
int tm6000_set_audio_bitrate(struct tm6000_core *dev, int bitrate);
305
 
int tm6000_set_audio_input(struct tm6000_core *dev, enum tm6000_inaudio ainp);
 
321
int tm6000_set_audio_rinput(struct tm6000_core *dev);
306
322
int tm6000_tvaudio_set_mute(struct tm6000_core *dev, u8 mute);
307
323
void tm6000_set_volume(struct tm6000_core *dev, int vol);
308
324
 
323
339
 
324
340
/* In tm6000-stds.c */
325
341
void tm6000_get_std_res(struct tm6000_core *dev);
326
 
int tm6000_set_standard(struct tm6000_core *dev, v4l2_std_id *norm);
 
342
int tm6000_set_standard(struct tm6000_core *dev);
327
343
 
328
344
/* In tm6000-i2c.c */
329
345
int tm6000_i2c_register(struct tm6000_core *dev);