aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/tuner-xc2028.c69
1 files changed, 20 insertions, 49 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c
index cfcc1fe68c5c..4b33143788d6 100644
--- a/drivers/media/video/tuner-xc2028.c
+++ b/drivers/media/video/tuner-xc2028.c
@@ -189,6 +189,26 @@ static int check_firmware(struct i2c_client *c)
189 if (xc2028->firm_type & t->std) 189 if (xc2028->firm_type & t->std)
190 return 0; 190 return 0;
191 191
192 send_seq (c, {0x12, 0x39});
193 send_seq (c, {0x0c, 0x80, 0xf0, 0xf7, 0x3e, 0x75, 0xc1, 0x8a, 0xe4});
194 send_seq (c, {0x0c, 0x02, 0x00});
195 send_seq (c, {0x05, 0x0f, 0xee, 0xaa, 0x5f, 0xea, 0x90});
196 send_seq (c, {0x06, 0x00, 0x0a, 0x4d, 0x8c, 0xf2, 0xd8, 0xcf, 0x30});
197 send_seq (c, {0x06, 0x79, 0x9f});
198 send_seq (c, {0x0b, 0x0d, 0xa4, 0x6c});
199 send_seq (c, {0x0a, 0x01, 0x67, 0x24, 0x40, 0x08, 0xc3, 0x20, 0x10});
200 send_seq (c, {0x0a, 0x64, 0x3c, 0xfa, 0xf7, 0xe1, 0x0c, 0x2c});
201 send_seq (c, {0x09, 0x0b});
202 send_seq (c, {0x10, 0x13});
203 send_seq (c, {0x16, 0x12});
204 send_seq (c, {0x1f, 0x02});
205 send_seq (c, {0x21, 0x02});
206 send_seq (c, {0x01, 0x02});
207 send_seq (c, {0x2b, 0x10});
208 send_seq (c, {0x02, 0x02});
209 send_seq (c, {0x02, 0x03});
210 send_seq (c, {0x00, 0x8c});
211
192 if (t->std & V4L2_STD_MN) 212 if (t->std & V4L2_STD_MN)
193 name=firmware_MN; 213 name=firmware_MN;
194 else 214 else
@@ -249,55 +269,6 @@ static void set_tv_freq(struct i2c_client *c, unsigned int freq)
249 } 269 }
250 msleep(10); 270 msleep(10);
251 271
252 send_seq (c, {0x12, 0x39});
253 send_seq (c, {0x0c, 0x80, 0xf0, 0xf7, 0x3e, 0x75, 0xc1, 0x8a, 0xe4});
254 send_seq (c, {0x0c, 0x02, 0x00});
255 send_seq (c, {0x05, 0x0f, 0xee, 0xaa, 0x5f, 0xea, 0x90});
256 send_seq (c, {0x06, 0x00, 0x0a, 0x4d, 0x8c, 0xf2, 0xd8, 0xcf, 0x30});
257 send_seq (c, {0x06, 0x79, 0x9f});
258 send_seq (c, {0x0b, 0x0d, 0xa4, 0x6c});
259 send_seq (c, {0x0a, 0x01, 0x67, 0x24, 0x40, 0x08, 0xc3, 0x20, 0x10});
260 send_seq (c, {0x0a, 0x64, 0x3c, 0xfa, 0xf7, 0xe1, 0x0c, 0x2c});
261 send_seq (c, {0x09, 0x0b});
262 send_seq (c, {0x10, 0x13});
263 send_seq (c, {0x16, 0x12});
264 send_seq (c, {0x1f, 0x02});
265 send_seq (c, {0x21, 0x02});
266 send_seq (c, {0x01, 0x02});
267 send_seq (c, {0x2b, 0x10});
268 send_seq (c, {0x02, 0x02});
269 send_seq (c, {0x02, 0x03});
270 send_seq (c, {0x00, 0x8c});
271
272 send_seq (c, {0x00, 0x01, 0x00, 0x00});
273 send_seq (c, {0x00, 0xcc, 0x20, 0x06});
274 send_seq (c, {0x2b, 0x1a});
275 send_seq (c, {0x2b, 0x1b});
276 send_seq (c, {0x14, 0x01, 0x1b, 0x19, 0xb5, 0x29, 0xab, 0x09, 0x55});
277 send_seq (c, {0x14, 0x44, 0x05, 0x65});
278 send_seq (c, {0x13, 0x18, 0x08, 0x00, 0x00, 0x6c, 0x18, 0x16, 0x8c});
279 send_seq (c, {0x13, 0x49, 0x2a, 0xab});
280 send_seq (c, {0x0d, 0x01, 0x4b, 0x03, 0x97, 0x55, 0xc7, 0xd7, 0x00});
281 send_seq (c, {0x0d, 0xa1, 0xeb, 0x8f, 0x5c});
282 send_seq (c, {0x1a, 0x00, 0x00, 0x16, 0x8a, 0x40, 0x00, 0x00, 0x00, 0x20});
283 send_seq (c, {0x2d, 0x01});
284 send_seq (c, {0x18, 0x00});
285 send_seq (c, {0x1b, 0x0d, 0x86, 0x51, 0xd2, 0x35, 0xa4, 0x92, 0xa5});
286 send_seq (c, {0x1b, 0xb5, 0x25, 0x65});
287 send_seq (c, {0x1d, 0x00});
288 send_seq (c, {0x0f, 0x00, 0x29, 0x56, 0xb0, 0x00, 0xb6});
289 send_seq (c, {0x20, 0x00});
290 send_seq (c, {0x1e, 0x09, 0x02, 0x5b, 0x6c, 0x00, 0x4b, 0x81, 0x56});
291 send_seq (c, {0x1e, 0x46, 0x69, 0x0b});
292 send_seq (c, {0x22, 0x32});
293 send_seq (c, {0x23, 0x0a});
294 send_seq (c, {0x25, 0x00, 0x09, 0x90, 0x09, 0x06, 0x64, 0x02, 0x41});
295 send_seq (c, {0x26, 0xcc});
296 send_seq (c, {0x29, 0x40});
297 send_seq (c, {0x21, 0x03});
298 send_seq (c, {0x00, 0x8c});
299 send_seq (c, {0x00, 0x00, 0x00, 0x00});
300
301 /* CMD= Set frequency */ 272 /* CMD= Set frequency */
302 send_seq(c, {0x00, 0x02, 0x00, 0x00}); 273 send_seq(c, {0x00, 0x02, 0x00, 0x00});
303 if (t->tuner_callback) { 274 if (t->tuner_callback) {