aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134-cards.c
diff options
context:
space:
mode:
authorHartmut Hackmann <hartmut.hackmann@t-online.de>2006-10-30 18:00:16 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-10 05:51:10 -0500
commitcbb94521cff24c98c2dbee28fb95e007c6bcaa43 (patch)
treebd55a7bce8ba3aa998cb68a612c3e0d784a64f1b /drivers/media/video/saa7134/saa7134-cards.c
parenta75ec3f033625fb02ccc855fcd2e322275633fc4 (diff)
V4L/DVB (4792): Add support for the Compro Videomate DVB-T200A
This board has the same PCI ID as the T200, so the exact board type is determined from the eeprom. The original patch was provided by Francis Barber <fedora@barber-family.id.au> Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-cards.c')
-rw-r--r--drivers/media/video/saa7134/saa7134-cards.c49
1 files changed, 49 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-cards.c b/drivers/media/video/saa7134/saa7134-cards.c
index 8109c8ef09ff..f5ad450dd7c4 100644
--- a/drivers/media/video/saa7134/saa7134-cards.c
+++ b/drivers/media/video/saa7134/saa7134-cards.c
@@ -3101,6 +3101,31 @@ struct saa7134_board saa7134_boards[] = {
3101 .gpio = 0x00, 3101 .gpio = 0x00,
3102 }, 3102 },
3103 }, 3103 },
3104 [SAA7134_BOARD_VIDEOMATE_DVBT_200A] = {
3105 /* Francis Barber <fedora@barber-family.id.au> */
3106 .name = "Compro Videomate DVB-T200A",
3107 .audio_clock = 0x00187de7,
3108 .tuner_type = TUNER_ABSENT,
3109 .radio_type = UNSET,
3110 .tuner_addr = ADDR_UNSET,
3111 .radio_addr = ADDR_UNSET,
3112 .tda9887_conf = TDA9887_PRESENT | TDA9887_PORT1_ACTIVE,
3113 .mpeg = SAA7134_MPEG_DVB,
3114 .inputs = {{
3115 .name = name_tv,
3116 .vmux = 3,
3117 .amux = TV,
3118 .tv = 1,
3119 },{
3120 .name = name_comp1,
3121 .vmux = 1,
3122 .amux = LINE2,
3123 },{
3124 .name = name_svideo,
3125 .vmux = 8,
3126 .amux = LINE2,
3127 }},
3128 },
3104}; 3129};
3105 3130
3106const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards); 3131const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);
@@ -3823,6 +3848,7 @@ int saa7134_board_init1(struct saa7134_dev *dev)
3823 case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII: 3848 case SAA7134_BOARD_VIDEOMATE_TV_GOLD_PLUSII:
3824 case SAA7134_BOARD_VIDEOMATE_DVBT_300: 3849 case SAA7134_BOARD_VIDEOMATE_DVBT_300:
3825 case SAA7134_BOARD_VIDEOMATE_DVBT_200: 3850 case SAA7134_BOARD_VIDEOMATE_DVBT_200:
3851 case SAA7134_BOARD_VIDEOMATE_DVBT_200A:
3826 case SAA7134_BOARD_MANLI_MTV001: 3852 case SAA7134_BOARD_MANLI_MTV001:
3827 case SAA7134_BOARD_MANLI_MTV002: 3853 case SAA7134_BOARD_MANLI_MTV002:
3828 case SAA7134_BOARD_BEHOLD_409FM: 3854 case SAA7134_BOARD_BEHOLD_409FM:
@@ -4064,6 +4090,29 @@ int saa7134_board_init2(struct saa7134_dev *dev)
4064 dev->name, i); 4090 dev->name, i);
4065 } 4091 }
4066 break; 4092 break;
4093 case SAA7134_BOARD_VIDEOMATE_DVBT_200:
4094 case SAA7134_BOARD_VIDEOMATE_DVBT_200A:
4095 /* The T200 and the T200A share the same pci id. Consequently,
4096 * we are going to query eeprom to try to find out which one we
4097 * are actually looking at. */
4098
4099 /* Don't do this if the board was specifically selected with an
4100 * insmod option or if we have the default configuration T200*/
4101 if(!dev->autodetected || (dev->eedata[0x41] == 0xd0))
4102 break;
4103 if(dev->eedata[0x41] == 0x02) {
4104 /* Reconfigure board as T200A */
4105 dev->board = SAA7134_BOARD_VIDEOMATE_DVBT_200A;
4106 dev->tuner_type = saa7134_boards[dev->board].tuner_type;
4107 dev->tda9887_conf = saa7134_boards[dev->board].tda9887_conf;
4108 printk(KERN_INFO "%s: Reconfigured board as %s\n",
4109 dev->name, saa7134_boards[dev->board].name);
4110 } else {
4111 printk(KERN_WARNING "%s: Unexpected tuner type info: %x in eeprom\n",
4112 dev->name, dev->eedata[0x41]);
4113 break;
4114 }
4115 break;
4067 } 4116 }
4068 return 0; 4117 return 0;
4069} 4118}