aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bt8xx/bttv-cards.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/bt8xx/bttv-cards.c')
-rw-r--r--drivers/media/video/bt8xx/bttv-cards.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/media/video/bt8xx/bttv-cards.c b/drivers/media/video/bt8xx/bttv-cards.c
index f49e6e686628..d545d48fac58 100644
--- a/drivers/media/video/bt8xx/bttv-cards.c
+++ b/drivers/media/video/bt8xx/bttv-cards.c
@@ -633,8 +633,9 @@ struct tvcard bttv_tvcards[] = {
633 .video_inputs = 3, 633 .video_inputs = 3,
634 /* .audio_inputs= 1, */ 634 /* .audio_inputs= 1, */
635 .svhs = NO_SVHS, 635 .svhs = NO_SVHS,
636 .has_dig_in = 1,
636 .gpiomask = 7, 637 .gpiomask = 7,
637 .muxsel = { 2, 3, -1 }, 638 .muxsel = { 2, 3, 0 }, /* input 2 is digital */
638 /* .digital_mode= DIGITAL_MODE_CAMERA, */ 639 /* .digital_mode= DIGITAL_MODE_CAMERA, */
639 .gpiomux = { 0, 0, 0, 0 }, 640 .gpiomux = { 0, 0, 0, 0 },
640 .no_msp34xx = 1, 641 .no_msp34xx = 1,
@@ -1069,8 +1070,9 @@ struct tvcard bttv_tvcards[] = {
1069 .video_inputs = 5, 1070 .video_inputs = 5,
1070 /* .audio_inputs= 1, */ 1071 /* .audio_inputs= 1, */
1071 .svhs = 3, 1072 .svhs = 3,
1073 .has_dig_in = 1,
1072 .gpiomask = 0xAA0000, 1074 .gpiomask = 0xAA0000,
1073 .muxsel = { 2, 3, 1, 1, -1 }, 1075 .muxsel = { 2, 3, 1, 1, 0 }, /* input 4 is digital */
1074 /* .digital_mode= DIGITAL_MODE_CAMERA, */ 1076 /* .digital_mode= DIGITAL_MODE_CAMERA, */
1075 .gpiomux = { 0x20000, 0, 0x80000, 0x80000 }, 1077 .gpiomux = { 0x20000, 0, 0x80000, 0x80000 },
1076 .gpiomute = 0xa8000, 1078 .gpiomute = 0xa8000,
@@ -2539,8 +2541,9 @@ struct tvcard bttv_tvcards[] = {
2539 .video_inputs = 5, 2541 .video_inputs = 5,
2540 /* .audio_inputs= 1, */ 2542 /* .audio_inputs= 1, */
2541 .svhs = 3, 2543 .svhs = 3,
2544 .has_dig_in = 1,
2542 .gpiomask = 0x01fe00, 2545 .gpiomask = 0x01fe00,
2543 .muxsel = { 2, 3, 1, 1, -1 }, 2546 .muxsel = { 2, 3, 1, 1, 0 }, /* in 4 is digital */
2544 /* .digital_mode= DIGITAL_MODE_CAMERA, */ 2547 /* .digital_mode= DIGITAL_MODE_CAMERA, */
2545 .gpiomux = { 0x00400, 0x10400, 0x04400, 0x80000 }, 2548 .gpiomux = { 0x00400, 0x10400, 0x04400, 0x80000 },
2546 .gpiomute = 0x12400, 2549 .gpiomute = 0x12400,
@@ -3417,6 +3420,8 @@ void __devinit bttv_init_card2(struct bttv *btv)
3417 bttv_call_i2c_clients(btv, TUNER_SET_CONFIG, &tda9887_cfg); 3420 bttv_call_i2c_clients(btv, TUNER_SET_CONFIG, &tda9887_cfg);
3418 } 3421 }
3419 3422
3423 btv->dig = bttv_tvcards[btv->c.type].has_dig_in ?
3424 bttv_tvcards[btv->c.type].video_inputs - 1 : UNSET;
3420 btv->svhs = bttv_tvcards[btv->c.type].svhs == NO_SVHS ? 3425 btv->svhs = bttv_tvcards[btv->c.type].svhs == NO_SVHS ?
3421 UNSET : bttv_tvcards[btv->c.type].svhs; 3426 UNSET : bttv_tvcards[btv->c.type].svhs;
3422 if (svhs[btv->c.nr] != UNSET) 3427 if (svhs[btv->c.nr] != UNSET)