diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/b2c2/flexcop-fe-tuner.c | 90 |
1 files changed, 35 insertions, 55 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c index c2b35e366242..752cf79c532f 100644 --- a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c +++ b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c | |||
@@ -385,9 +385,9 @@ static int alps_tdee4_stv0297_tuner_set_params(struct dvb_frontend* fe, | |||
385 | else buf[3] = 0x88; | 385 | else buf[3] = 0x88; |
386 | 386 | ||
387 | if (fe->ops.i2c_gate_ctrl) | 387 | if (fe->ops.i2c_gate_ctrl) |
388 | fe->ops.i2c_gate_ctrl(fe, 1); | 388 | fe->ops.i2c_gate_ctrl(fe, 0); |
389 | deb_tuner("tuner buffer for %d Hz: %x %x %x %x\n",fep->frequency, buf[0],buf[1],buf[2],buf[3]); | 389 | deb_tuner("tuner buffer for %d Hz: %x %x %x %x\n",fep->frequency, buf[0],buf[1],buf[2],buf[3]); |
390 | ret = fc->i2c_request(fc,FC_WRITE,FC_I2C_PORT_TUNER,0x61,buf[0],&buf[1],3); | 390 | ret = fc->i2c_request(fc, FC_WRITE, FC_I2C_PORT_TUNER, 0x61, buf[0], &buf[1], 3); |
391 | deb_tuner("tuner write returned: %d\n",ret); | 391 | deb_tuner("tuner write returned: %d\n",ret); |
392 | 392 | ||
393 | return 0; | 393 | return 0; |
@@ -398,91 +398,71 @@ static u8 alps_tdee4_stv0297_inittab[] = { | |||
398 | 0x80, 0x00, | 398 | 0x80, 0x00, |
399 | 0x81, 0x01, | 399 | 0x81, 0x01, |
400 | 0x81, 0x00, | 400 | 0x81, 0x00, |
401 | 0x00, 0x09, | 401 | 0x00, 0x48, |
402 | 0x01, 0x69, | 402 | 0x01, 0x58, |
403 | 0x03, 0x00, | 403 | 0x03, 0x00, |
404 | 0x04, 0x00, | 404 | 0x04, 0x00, |
405 | 0x07, 0x00, | 405 | 0x07, 0x00, |
406 | 0x08, 0x00, | 406 | 0x08, 0x00, |
407 | 0x20, 0x00, | ||
408 | 0x21, 0x40, | ||
409 | 0x22, 0x00, | ||
410 | 0x23, 0x00, | ||
411 | 0x24, 0x40, | ||
412 | 0x25, 0x88, | ||
413 | 0x30, 0xff, | 407 | 0x30, 0xff, |
414 | 0x31, 0x00, | 408 | 0x31, 0x9d, |
415 | 0x32, 0xff, | 409 | 0x32, 0xff, |
416 | 0x33, 0x00, | 410 | 0x33, 0x00, |
417 | 0x34, 0x50, | 411 | 0x34, 0x29, |
418 | 0x35, 0x7f, | 412 | 0x35, 0x55, |
419 | 0x36, 0x00, | 413 | 0x36, 0x80, |
420 | 0x37, 0x20, | 414 | 0x37, 0x6e, |
421 | 0x38, 0x00, | 415 | 0x38, 0x9c, |
422 | 0x40, 0x1c, | 416 | 0x40, 0x1a, |
423 | 0x41, 0xff, | 417 | 0x41, 0xfe, |
424 | 0x42, 0x29, | 418 | 0x42, 0x33, |
425 | 0x43, 0x00, | 419 | 0x43, 0x00, |
426 | 0x44, 0xff, | 420 | 0x44, 0xff, |
427 | 0x45, 0x00, | 421 | 0x45, 0x00, |
428 | 0x46, 0x00, | 422 | 0x46, 0x00, |
429 | 0x49, 0x04, | 423 | 0x49, 0x04, |
430 | 0x4a, 0x00, | 424 | 0x4a, 0x51, |
431 | 0x4b, 0xf8, | 425 | 0x4b, 0xf8, |
432 | 0x52, 0x30, | 426 | 0x52, 0x30, |
433 | 0x55, 0xae, | 427 | 0x53, 0x06, |
434 | 0x56, 0x47, | 428 | 0x59, 0x06, |
435 | 0x57, 0xe1, | 429 | 0x5a, 0x5e, |
436 | 0x58, 0x3a, | 430 | 0x5b, 0x04, |
437 | 0x5a, 0x1e, | 431 | 0x61, 0x49, |
438 | 0x5b, 0x34, | 432 | 0x62, 0x0a, |
439 | 0x60, 0x00, | ||
440 | 0x63, 0x00, | ||
441 | 0x64, 0x00, | ||
442 | 0x65, 0x00, | ||
443 | 0x66, 0x00, | ||
444 | 0x67, 0x00, | ||
445 | 0x68, 0x00, | ||
446 | 0x69, 0x00, | ||
447 | 0x6a, 0x02, | ||
448 | 0x6b, 0x00, | ||
449 | 0x70, 0xff, | 433 | 0x70, 0xff, |
450 | 0x71, 0x00, | 434 | 0x71, 0x04, |
451 | 0x72, 0x00, | 435 | 0x72, 0x00, |
452 | 0x73, 0x00, | 436 | 0x73, 0x00, |
453 | 0x74, 0x0c, | 437 | 0x74, 0x0c, |
454 | 0x80, 0x00, | 438 | 0x80, 0x20, |
455 | 0x81, 0x00, | 439 | 0x81, 0x00, |
456 | 0x82, 0x00, | 440 | 0x82, 0x30, |
457 | 0x83, 0x00, | 441 | 0x83, 0x00, |
458 | 0x84, 0x04, | 442 | 0x84, 0x04, |
459 | 0x85, 0x80, | 443 | 0x85, 0x22, |
460 | 0x86, 0x24, | 444 | 0x86, 0x08, |
461 | 0x87, 0x78, | 445 | 0x87, 0x1b, |
462 | 0x88, 0x10, | 446 | 0x88, 0x00, |
463 | 0x89, 0x00, | 447 | 0x89, 0x00, |
464 | 0x90, 0x01, | 448 | 0x90, 0x00, |
465 | 0x91, 0x01, | 449 | 0x91, 0x04, |
466 | 0xa0, 0x04, | 450 | 0xa0, 0x86, |
467 | 0xa1, 0x00, | 451 | 0xa1, 0x00, |
468 | 0xa2, 0x00, | 452 | 0xa2, 0x00, |
469 | 0xb0, 0x91, | 453 | 0xb0, 0x91, |
470 | 0xb1, 0x0b, | 454 | 0xb1, 0x0b, |
471 | 0xc0, 0x53, | 455 | 0xc0, 0x5b, |
472 | 0xc1, 0x70, | 456 | 0xc1, 0x10, |
473 | 0xc2, 0x12, | 457 | 0xc2, 0x12, |
474 | 0xd0, 0x00, | 458 | 0xd0, 0x02, |
475 | 0xd1, 0x00, | 459 | 0xd1, 0x00, |
476 | 0xd2, 0x00, | 460 | 0xd2, 0x00, |
477 | 0xd3, 0x00, | 461 | 0xd3, 0x00, |
478 | 0xd4, 0x00, | 462 | 0xd4, 0x02, |
479 | 0xd5, 0x00, | 463 | 0xd5, 0x00, |
480 | 0xde, 0x00, | 464 | 0xde, 0x00, |
481 | 0xdf, 0x00, | 465 | 0xdf, 0x01, |
482 | 0x61, 0x49, | ||
483 | 0x62, 0x0b, | ||
484 | 0x53, 0x08, | ||
485 | 0x59, 0x08, | ||
486 | 0xff, 0xff, | 466 | 0xff, 0xff, |
487 | }; | 467 | }; |
488 | 468 | ||