diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h index 0d6dc33ca320..34b08fbcc6ea 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | |||
@@ -33,7 +33,6 @@ | |||
33 | 33 | ||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include <linux/config.h> | ||
37 | #include <linux/videodev2.h> | 36 | #include <linux/videodev2.h> |
38 | #include <linux/i2c.h> | 37 | #include <linux/i2c.h> |
39 | #include <linux/mutex.h> | 38 | #include <linux/mutex.h> |
@@ -41,32 +40,6 @@ | |||
41 | #include "pvrusb2-io.h" | 40 | #include "pvrusb2-io.h" |
42 | #include <media/cx2341x.h> | 41 | #include <media/cx2341x.h> |
43 | 42 | ||
44 | /* Legal values for the SRATE state variable */ | ||
45 | #define PVR2_CVAL_SRATE_48 0 | ||
46 | #define PVR2_CVAL_SRATE_44_1 1 | ||
47 | |||
48 | /* Legal values for the AUDIOBITRATE state variable */ | ||
49 | #define PVR2_CVAL_AUDIOBITRATE_384 0 | ||
50 | #define PVR2_CVAL_AUDIOBITRATE_320 1 | ||
51 | #define PVR2_CVAL_AUDIOBITRATE_256 2 | ||
52 | #define PVR2_CVAL_AUDIOBITRATE_224 3 | ||
53 | #define PVR2_CVAL_AUDIOBITRATE_192 4 | ||
54 | #define PVR2_CVAL_AUDIOBITRATE_160 5 | ||
55 | #define PVR2_CVAL_AUDIOBITRATE_128 6 | ||
56 | #define PVR2_CVAL_AUDIOBITRATE_112 7 | ||
57 | #define PVR2_CVAL_AUDIOBITRATE_96 8 | ||
58 | #define PVR2_CVAL_AUDIOBITRATE_80 9 | ||
59 | #define PVR2_CVAL_AUDIOBITRATE_64 10 | ||
60 | #define PVR2_CVAL_AUDIOBITRATE_56 11 | ||
61 | #define PVR2_CVAL_AUDIOBITRATE_48 12 | ||
62 | #define PVR2_CVAL_AUDIOBITRATE_32 13 | ||
63 | #define PVR2_CVAL_AUDIOBITRATE_VBR 14 | ||
64 | |||
65 | /* Legal values for the AUDIOEMPHASIS state variable */ | ||
66 | #define PVR2_CVAL_AUDIOEMPHASIS_NONE 0 | ||
67 | #define PVR2_CVAL_AUDIOEMPHASIS_50_15 1 | ||
68 | #define PVR2_CVAL_AUDIOEMPHASIS_CCITT 2 | ||
69 | |||
70 | /* Legal values for PVR2_CID_HSM */ | 43 | /* Legal values for PVR2_CID_HSM */ |
71 | #define PVR2_CVAL_HSM_FAIL 0 | 44 | #define PVR2_CVAL_HSM_FAIL 0 |
72 | #define PVR2_CVAL_HSM_FULL 1 | 45 | #define PVR2_CVAL_HSM_FULL 1 |
@@ -107,6 +80,8 @@ struct pvr2_ctl_info { | |||
107 | 80 | ||
108 | /* Control's implementation */ | 81 | /* Control's implementation */ |
109 | pvr2_ctlf_get_value get_value; /* Get its value */ | 82 | pvr2_ctlf_get_value get_value; /* Get its value */ |
83 | pvr2_ctlf_get_value get_min_value; /* Get minimum allowed value */ | ||
84 | pvr2_ctlf_get_value get_max_value; /* Get maximum allowed value */ | ||
110 | pvr2_ctlf_set_value set_value; /* Set its value */ | 85 | pvr2_ctlf_set_value set_value; /* Set its value */ |
111 | pvr2_ctlf_val_to_sym val_to_sym; /* Custom convert value->symbol */ | 86 | pvr2_ctlf_val_to_sym val_to_sym; /* Custom convert value->symbol */ |
112 | pvr2_ctlf_sym_to_val sym_to_val; /* Custom convert symbol->value */ | 87 | pvr2_ctlf_sym_to_val sym_to_val; /* Custom convert symbol->value */ |
@@ -193,9 +168,7 @@ struct pvr2_decoder_ctrl { | |||
193 | 168 | ||
194 | /* Known major hardware variants, keyed from device ID */ | 169 | /* Known major hardware variants, keyed from device ID */ |
195 | #define PVR2_HDW_TYPE_29XXX 0 | 170 | #define PVR2_HDW_TYPE_29XXX 0 |
196 | #ifdef CONFIG_VIDEO_PVRUSB2_24XXX | ||
197 | #define PVR2_HDW_TYPE_24XXX 1 | 171 | #define PVR2_HDW_TYPE_24XXX 1 |
198 | #endif | ||
199 | 172 | ||
200 | typedef int (*pvr2_i2c_func)(struct pvr2_hdw *,u8,u8 *,u16,u8 *, u16); | 173 | typedef int (*pvr2_i2c_func)(struct pvr2_hdw *,u8,u8 *,u16,u8 *, u16); |
201 | #define PVR2_I2C_FUNC_CNT 128 | 174 | #define PVR2_I2C_FUNC_CNT 128 |