aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/cx24123.h
diff options
context:
space:
mode:
authorJohannes Stezenbach <js@linuxtv.org>2006-01-09 12:25:08 -0500
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 12:25:08 -0500
commite3b152bc9ee2b7f841565dc93a042f527cf3116c (patch)
tree5b3ab8aaa19993a293ee60954b05fce0a5b138f1 /drivers/media/dvb/frontends/cx24123.h
parentb79cb6531d5ba9174f9677ce2213c017d1e2ef19 (diff)
DVB (2446): Minor cleanups.
- Minor cleanups. Signed-off-by: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/dvb/frontends/cx24123.h')
-rw-r--r--drivers/media/dvb/frontends/cx24123.h143
1 files changed, 0 insertions, 143 deletions
diff --git a/drivers/media/dvb/frontends/cx24123.h b/drivers/media/dvb/frontends/cx24123.h
index 80b66a695261..a6b85d517578 100644
--- a/drivers/media/dvb/frontends/cx24123.h
+++ b/drivers/media/dvb/frontends/cx24123.h
@@ -36,150 +36,7 @@ struct cx24123_config
36 int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured); 36 int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured);
37}; 37};
38 38
39/* Various tuner defaults need to be established for a given symbol rate Sps */
40struct
41{
42 u32 symbolrate_low;
43 u32 symbolrate_high;
44 u32 VCAslope;
45 u32 VCAoffset;
46 u32 VGA1offset;
47 u32 VGA2offset;
48 u32 VCAprogdata;
49 u32 VGAprogdata;
50} cx24123_AGC_vals[] =
51{
52 {
53 .symbolrate_low = 1000000,
54 .symbolrate_high = 4999999,
55 .VCAslope = 0x07,
56 .VCAoffset = 0x0f,
57 .VGA1offset = 0x1f8,
58 .VGA2offset = 0x1f8,
59 .VGAprogdata = (2 << 18) | (0x1f8 << 9) | 0x1f8,
60 .VCAprogdata = (4 << 18) | (0x07 << 9) | 0x07,
61 },
62 {
63 .symbolrate_low = 5000000,
64 .symbolrate_high = 14999999,
65 .VCAslope = 0x1f,
66 .VCAoffset = 0x1f,
67 .VGA1offset = 0x1e0,
68 .VGA2offset = 0x180,
69 .VGAprogdata = (2 << 18) | (0x180 << 9) | 0x1e0,
70 .VCAprogdata = (4 << 18) | (0x07 << 9) | 0x1f,
71 },
72 {
73 .symbolrate_low = 15000000,
74 .symbolrate_high = 45000000,
75 .VCAslope = 0x3f,
76 .VCAoffset = 0x3f,
77 .VGA1offset = 0x180,
78 .VGA2offset = 0x100,
79 .VGAprogdata = (2 << 18) | (0x100 << 9) | 0x180,
80 .VCAprogdata = (4 << 18) | (0x07 << 9) | 0x3f,
81 },
82};
83
84/*
85 * Various tuner defaults need to be established for a given frequency kHz.
86 * fixme: The bounds on the bands do not match the doc in real life.
87 * fixme: Some of them have been moved, other might need adjustment.
88 */
89struct
90{
91 u32 freq_low;
92 u32 freq_high;
93 u32 bandselect;
94 u32 VCOdivider;
95 u32 VCOnumber;
96 u32 progdata;
97} cx24123_bandselect_vals[] =
98{
99 {
100 .freq_low = 950000,
101 .freq_high = 1018999,
102 .bandselect = 0x40,
103 .VCOdivider = 4,
104 .VCOnumber = 7,
105 .progdata = (0 << 18) | (0 << 9) | 0x40,
106 },
107 {
108 .freq_low = 1019000,
109 .freq_high = 1074999,
110 .bandselect = 0x80,
111 .VCOdivider = 4,
112 .VCOnumber = 8,
113 .progdata = (0 << 18) | (0 << 9) | 0x80,
114 },
115 {
116 .freq_low = 1075000,
117 .freq_high = 1227999,
118 .bandselect = 0x01,
119 .VCOdivider = 2,
120 .VCOnumber = 1,
121 .progdata = (0 << 18) | (1 << 9) | 0x01,
122 },
123 {
124 .freq_low = 1228000,
125 .freq_high = 1349999,
126 .bandselect = 0x02,
127 .VCOdivider = 2,
128 .VCOnumber = 2,
129 .progdata = (0 << 18) | (1 << 9) | 0x02,
130 },
131 {
132 .freq_low = 1350000,
133 .freq_high = 1481999,
134 .bandselect = 0x04,
135 .VCOdivider = 2,
136 .VCOnumber = 3,
137 .progdata = (0 << 18) | (1 << 9) | 0x04,
138 },
139 {
140 .freq_low = 1482000,
141 .freq_high = 1595999,
142 .bandselect = 0x08,
143 .VCOdivider = 2,
144 .VCOnumber = 4,
145 .progdata = (0 << 18) | (1 << 9) | 0x08,
146 },
147 {
148 .freq_low = 1596000,
149 .freq_high = 1717999,
150 .bandselect = 0x10,
151 .VCOdivider = 2,
152 .VCOnumber = 5,
153 .progdata = (0 << 18) | (1 << 9) | 0x10,
154 },
155 {
156 .freq_low = 1718000,
157 .freq_high = 1855999,
158 .bandselect = 0x20,
159 .VCOdivider = 2,
160 .VCOnumber = 6,
161 .progdata = (0 << 18) | (1 << 9) | 0x20,
162 },
163 {
164 .freq_low = 1856000,
165 .freq_high = 2035999,
166 .bandselect = 0x40,
167 .VCOdivider = 2,
168 .VCOnumber = 7,
169 .progdata = (0 << 18) | (1 << 9) | 0x40,
170 },
171 {
172 .freq_low = 2036000,
173 .freq_high = 2149999,
174 .bandselect = 0x80,
175 .VCOdivider = 2,
176 .VCOnumber = 8,
177 .progdata = (0 << 18) | (1 << 9) | 0x80,
178 },
179};
180
181extern struct dvb_frontend* cx24123_attach(const struct cx24123_config* config, 39extern struct dvb_frontend* cx24123_attach(const struct cx24123_config* config,
182 struct i2c_adapter* i2c); 40 struct i2c_adapter* i2c);
183 41
184#endif /* CX24123_H */ 42#endif /* CX24123_H */
185