aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tda9887.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-01-09 12:25:16 -0500
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 12:25:16 -0500
commit39e8f40da20a803a17e16304e73fd31050b1871c (patch)
tree35b3736436840a47d222457619c6c4595020eebe /drivers/media/video/tda9887.c
parentade0836c8c3bf72edafd18d3256c4fd874a8236f (diff)
V4L/DVB (3105): Remove AUDC_CONFIG_PINNACLE horror, fix mt20xx radio support.
- Remove AUDC_CONFIG_PINNACLE horror. This also fixes radio support for mt20xx tuners. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/video/tda9887.c')
-rw-r--r--drivers/media/video/tda9887.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/drivers/media/video/tda9887.c b/drivers/media/video/tda9887.c
index ae4029a07449..ceaa29975c8e 100644
--- a/drivers/media/video/tda9887.c
+++ b/drivers/media/video/tda9887.c
@@ -57,7 +57,6 @@ struct tda9887 {
57 v4l2_std_id std; 57 v4l2_std_id std;
58 enum tuner_mode mode; 58 enum tuner_mode mode;
59 unsigned int config; 59 unsigned int config;
60 unsigned int pinnacle_id;
61 unsigned int using_v4l2; 60 unsigned int using_v4l2;
62 unsigned int radio_mode; 61 unsigned int radio_mode;
63 unsigned char data[4]; 62 unsigned char data[4];
@@ -481,34 +480,6 @@ static int tda9887_set_config(struct tda9887 *t, char *buf)
481 480
482/* ---------------------------------------------------------------------- */ 481/* ---------------------------------------------------------------------- */
483 482
484static int tda9887_set_pinnacle(struct tda9887 *t, char *buf)
485{
486 unsigned int bCarrierMode = UNSET;
487
488 if (t->std & V4L2_STD_625_50) {
489 if ((1 == t->pinnacle_id) || (7 == t->pinnacle_id)) {
490 bCarrierMode = cIntercarrier;
491 } else {
492 bCarrierMode = cQSS;
493 }
494 }
495 if (t->std & V4L2_STD_525_60) {
496 if ((5 == t->pinnacle_id) || (6 == t->pinnacle_id)) {
497 bCarrierMode = cIntercarrier;
498 } else {
499 bCarrierMode = cQSS;
500 }
501 }
502
503 if (bCarrierMode != UNSET) {
504 buf[1] &= ~0x04;
505 buf[1] |= bCarrierMode;
506 }
507 return 0;
508}
509
510/* ---------------------------------------------------------------------- */
511
512static char pal[] = "-"; 483static char pal[] = "-";
513module_param_string(pal, pal, sizeof(pal), 0644); 484module_param_string(pal, pal, sizeof(pal), 0644);
514static char secam[] = "-"; 485static char secam[] = "-";
@@ -593,9 +564,6 @@ static int tda9887_configure(struct tda9887 *t)
593 t->data[1] |= cOutputPort1Inactive; 564 t->data[1] |= cOutputPort1Inactive;
594 t->data[1] |= cOutputPort2Inactive; 565 t->data[1] |= cOutputPort2Inactive;
595 566
596 if (UNSET != t->pinnacle_id) {
597 tda9887_set_pinnacle(t,t->data);
598 }
599 tda9887_set_config(t,t->data); 567 tda9887_set_config(t,t->data);
600 tda9887_set_insmod(t,t->data); 568 tda9887_set_insmod(t,t->data);
601 569
@@ -634,7 +602,6 @@ static int tda9887_attach(struct i2c_adapter *adap, int addr, int kind)
634 602
635 t->client = client_template; 603 t->client = client_template;
636 t->std = 0; 604 t->std = 0;
637 t->pinnacle_id = UNSET;
638 t->radio_mode = V4L2_TUNER_MODE_STEREO; 605 t->radio_mode = V4L2_TUNER_MODE_STEREO;
639 606
640 tda9887_info("chip found @ 0x%x (%s)\n", addr<<1, adap->name); 607 tda9887_info("chip found @ 0x%x (%s)\n", addr<<1, adap->name);
@@ -698,14 +665,6 @@ tda9887_command(struct i2c_client *client, unsigned int cmd, void *arg)
698 tda9887_configure(t); 665 tda9887_configure(t);
699 break; 666 break;
700 } 667 }
701 case AUDC_CONFIG_PINNACLE:
702 {
703 int *i = arg;
704
705 t->pinnacle_id = *i;
706 tda9887_configure(t);
707 break;
708 }
709 case TDA9887_SET_CONFIG: 668 case TDA9887_SET_CONFIG:
710 { 669 {
711 int *i = arg; 670 int *i = arg;