aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bttv-cards.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/bttv-cards.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/bttv-cards.c')
-rw-r--r--drivers/media/video/bttv-cards.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/drivers/media/video/bttv-cards.c b/drivers/media/video/bttv-cards.c
index 80bcbc4ea3a4..c94092351b79 100644
--- a/drivers/media/video/bttv-cards.c
+++ b/drivers/media/video/bttv-cards.c
@@ -3056,26 +3056,33 @@ static void miro_pinnacle_gpio(struct bttv *btv)
3056 switch (id) { 3056 switch (id) {
3057 case 1: 3057 case 1:
3058 info = "PAL / mono"; 3058 info = "PAL / mono";
3059 btv->tda9887_conf = TDA9887_INTERCARRIER;
3059 break; 3060 break;
3060 case 2: 3061 case 2:
3061 info = "PAL+SECAM / stereo"; 3062 info = "PAL+SECAM / stereo";
3062 btv->has_radio = 1; 3063 btv->has_radio = 1;
3064 btv->tda9887_conf = TDA9887_QSS;
3063 break; 3065 break;
3064 case 3: 3066 case 3:
3065 info = "NTSC / stereo"; 3067 info = "NTSC / stereo";
3066 btv->has_radio = 1; 3068 btv->has_radio = 1;
3069 btv->tda9887_conf = TDA9887_QSS;
3067 break; 3070 break;
3068 case 4: 3071 case 4:
3069 info = "PAL+SECAM / mono"; 3072 info = "PAL+SECAM / mono";
3073 btv->tda9887_conf = TDA9887_QSS;
3070 break; 3074 break;
3071 case 5: 3075 case 5:
3072 info = "NTSC / mono"; 3076 info = "NTSC / mono";
3077 btv->tda9887_conf = TDA9887_INTERCARRIER;
3073 break; 3078 break;
3074 case 6: 3079 case 6:
3075 info = "NTSC / stereo"; 3080 info = "NTSC / stereo";
3081 btv->tda9887_conf = TDA9887_INTERCARRIER;
3076 break; 3082 break;
3077 case 7: 3083 case 7:
3078 info = "PAL / stereo"; 3084 info = "PAL / stereo";
3085 btv->tda9887_conf = TDA9887_INTERCARRIER;
3079 break; 3086 break;
3080 default: 3087 default:
3081 info = "oops: unknown card"; 3088 info = "oops: unknown card";
@@ -3086,8 +3093,7 @@ static void miro_pinnacle_gpio(struct bttv *btv)
3086 printk(KERN_INFO 3093 printk(KERN_INFO
3087 "bttv%d: pinnacle/mt: id=%d info=\"%s\" radio=%s\n", 3094 "bttv%d: pinnacle/mt: id=%d info=\"%s\" radio=%s\n",
3088 btv->c.nr, id, info, btv->has_radio ? "yes" : "no"); 3095 btv->c.nr, id, info, btv->has_radio ? "yes" : "no");
3089 btv->tuner_type = 33; 3096 btv->tuner_type = TUNER_MT2032;
3090 btv->pinnacle_id = id;
3091 } 3097 }
3092} 3098}
3093 3099
@@ -3389,9 +3395,9 @@ void __devinit bttv_init_card2(struct bttv *btv)
3389 bttv_call_i2c_clients(btv, TUNER_SET_TYPE_ADDR, &tun_setup); 3395 bttv_call_i2c_clients(btv, TUNER_SET_TYPE_ADDR, &tun_setup);
3390 } 3396 }
3391 3397
3392 if (btv->pinnacle_id != UNSET) { 3398 if (btv->tda9887_conf) {
3393 bttv_call_i2c_clients(btv, AUDC_CONFIG_PINNACLE, 3399 bttv_call_i2c_clients(btv, TDA9887_SET_CONFIG,
3394 &btv->pinnacle_id); 3400 &btv->tda9887_conf);
3395 } 3401 }
3396 3402
3397 btv->svhs = bttv_tvcards[btv->c.type].svhs; 3403 btv->svhs = bttv_tvcards[btv->c.type].svhs;
@@ -3443,7 +3449,7 @@ void __devinit bttv_init_card2(struct bttv *btv)
3443 3449
3444 /* tuner modules */ 3450 /* tuner modules */
3445 tda9887 = 0; 3451 tda9887 = 0;
3446 if (btv->pinnacle_id != UNSET) 3452 if (btv->tda9887_conf)
3447 tda9887 = 1; 3453 tda9887 = 1;
3448 if (0 == tda9887 && 0 == bttv_tvcards[btv->c.type].has_dvb && 3454 if (0 == tda9887 && 0 == bttv_tvcards[btv->c.type].has_dvb &&
3449 bttv_I2CRead(btv, I2C_TDA9887, "TDA9887") >=0) 3455 bttv_I2CRead(btv, I2C_TDA9887, "TDA9887") >=0)