diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-01-16 16:36:40 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:34:47 -0500 |
commit | 9de271e66d1172e7fa68ba0a7ecec2f9fb8d78c1 (patch) | |
tree | 381ea2a0e91e797b4a1bba4dd09f8e8b29d9fd1f /drivers/media/video/saa7134 | |
parent | a4b662f736c7919207da113814c35cad340c67fd (diff) |
V4L/DVB (5111): Saa7134: add support for Terratec Cinergy HT PCI
Add support for Terratec Cinergy HT PCI
Signed-off-by: Giorgio Moscardi <software@sukkology.net>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-cards.c | 30 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-dvb.c | 12 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134.h | 1 |
3 files changed, 43 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-cards.c b/drivers/media/video/saa7134/saa7134-cards.c index 0403ae9e5b8a..89f32107f46b 100644 --- a/drivers/media/video/saa7134/saa7134-cards.c +++ b/drivers/media/video/saa7134/saa7134-cards.c | |||
@@ -3266,6 +3266,29 @@ struct saa7134_board saa7134_boards[] = { | |||
3266 | .amux = 0, | 3266 | .amux = 0, |
3267 | }, | 3267 | }, |
3268 | }, | 3268 | }, |
3269 | [SAA7134_BOARD_CINERGY_HT_PCI] = { | ||
3270 | .name = "Terratec Cinergy HT PCI", | ||
3271 | .audio_clock = 0x00187de7, | ||
3272 | .tuner_type = TUNER_PHILIPS_TDA8290, | ||
3273 | .radio_type = UNSET, | ||
3274 | .tuner_addr = ADDR_UNSET, | ||
3275 | .radio_addr = ADDR_UNSET, | ||
3276 | .mpeg = SAA7134_MPEG_DVB, | ||
3277 | .inputs = {{ | ||
3278 | .name = name_tv, | ||
3279 | .vmux = 1, | ||
3280 | .amux = TV, | ||
3281 | .tv = 1, | ||
3282 | },{ | ||
3283 | .name = name_comp1, | ||
3284 | .vmux = 0, | ||
3285 | .amux = LINE1, | ||
3286 | },{ | ||
3287 | .name = name_svideo, | ||
3288 | .vmux = 6, | ||
3289 | .amux = LINE1, | ||
3290 | }}, | ||
3291 | }, | ||
3269 | }; | 3292 | }; |
3270 | 3293 | ||
3271 | const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards); | 3294 | const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards); |
@@ -3929,6 +3952,12 @@ struct pci_device_id saa7134_pci_tbl[] = { | |||
3929 | .subdevice = 0x230f, | 3952 | .subdevice = 0x230f, |
3930 | .driver_data = SAA7134_BOARD_ENCORE_ENLTV_FM, | 3953 | .driver_data = SAA7134_BOARD_ENCORE_ENLTV_FM, |
3931 | },{ | 3954 | },{ |
3955 | .vendor = PCI_VENDOR_ID_PHILIPS, | ||
3956 | .device = PCI_DEVICE_ID_PHILIPS_SAA7133, | ||
3957 | .subvendor = 0x153b, | ||
3958 | .subdevice = 0x1175, | ||
3959 | .driver_data = SAA7134_BOARD_CINERGY_HT_PCI, | ||
3960 | },{ | ||
3932 | /* --- boards without eeprom + subsystem ID --- */ | 3961 | /* --- boards without eeprom + subsystem ID --- */ |
3933 | .vendor = PCI_VENDOR_ID_PHILIPS, | 3962 | .vendor = PCI_VENDOR_ID_PHILIPS, |
3934 | .device = PCI_DEVICE_ID_PHILIPS_SAA7134, | 3963 | .device = PCI_DEVICE_ID_PHILIPS_SAA7134, |
@@ -4260,6 +4289,7 @@ int saa7134_board_init2(struct saa7134_dev *dev) | |||
4260 | } | 4289 | } |
4261 | break; | 4290 | break; |
4262 | case SAA7134_BOARD_CINERGY_HT_PCMCIA: | 4291 | case SAA7134_BOARD_CINERGY_HT_PCMCIA: |
4292 | case SAA7134_BOARD_CINERGY_HT_PCI: | ||
4263 | /* make the tda10046 find its eeprom */ | 4293 | /* make the tda10046 find its eeprom */ |
4264 | { | 4294 | { |
4265 | u8 data[] = { 0x3c, 0x33, 0x60}; | 4295 | u8 data[] = { 0x3c, 0x33, 0x60}; |
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c index c33f6a69a247..e3059fd33951 100644 --- a/drivers/media/video/saa7134/saa7134-dvb.c +++ b/drivers/media/video/saa7134/saa7134-dvb.c | |||
@@ -1426,6 +1426,18 @@ static int dvb_init(struct saa7134_dev *dev) | |||
1426 | 1426 | ||
1427 | } | 1427 | } |
1428 | break; | 1428 | break; |
1429 | case SAA7134_BOARD_CINERGY_HT_PCI: | ||
1430 | dev->dvb.frontend = dvb_attach(tda10046_attach, | ||
1431 | &cinergy_ht_config, | ||
1432 | &dev->i2c_adap); | ||
1433 | if (dev->dvb.frontend) { | ||
1434 | dev->dvb.frontend->ops.i2c_gate_ctrl = tda8290_i2c_gate_ctrl; | ||
1435 | dev->dvb.frontend->ops.tuner_ops.init = cinergy_ht_tuner_init; | ||
1436 | dev->dvb.frontend->ops.tuner_ops.sleep = cinergy_ht_tuner_sleep; | ||
1437 | dev->dvb.frontend->ops.tuner_ops.set_params = md8800_dvbt_pll_set; | ||
1438 | |||
1439 | } | ||
1440 | break; | ||
1429 | default: | 1441 | default: |
1430 | printk("%s: Huh? unknown DVB card?\n",dev->name); | 1442 | printk("%s: Huh? unknown DVB card?\n",dev->name); |
1431 | break; | 1443 | break; |
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h index ec08412b1c66..181a1d0fb1e9 100644 --- a/drivers/media/video/saa7134/saa7134.h +++ b/drivers/media/video/saa7134/saa7134.h | |||
@@ -234,6 +234,7 @@ struct saa7134_format { | |||
234 | #define SAA7134_BOARD_CINERGY_HT_PCMCIA 105 | 234 | #define SAA7134_BOARD_CINERGY_HT_PCMCIA 105 |
235 | #define SAA7134_BOARD_ENCORE_ENLTV 106 | 235 | #define SAA7134_BOARD_ENCORE_ENLTV 106 |
236 | #define SAA7134_BOARD_ENCORE_ENLTV_FM 107 | 236 | #define SAA7134_BOARD_ENCORE_ENLTV_FM 107 |
237 | #define SAA7134_BOARD_CINERGY_HT_PCI 108 | ||
237 | 238 | ||
238 | #define SAA7134_MAXBOARDS 8 | 239 | #define SAA7134_MAXBOARDS 8 |
239 | #define SAA7134_INPUT_MAX 8 | 240 | #define SAA7134_INPUT_MAX 8 |