diff options
author | Niklas Edmundsson <nikke@acc.umu.se> | 2009-12-04 03:38:52 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-01-17 08:55:42 -0500 |
commit | ec1b6ff1cce9d406a9a5f84a1d1205328f2c515a (patch) | |
tree | 33c52abee543542600f1a97a865d16d71577f4b2 /drivers/media | |
parent | 4af699c13a5fb7332255de5fa56442d065f547a3 (diff) |
V4L/DVB (13792): [Mantis/VP-2033] Do not claim TDA10023
Do not rely on the PCI ID alone
Signed-off-by: Niklas Edmundsson <nikke@acc.umu.se>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/mantis/mantis_dvb.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/drivers/media/dvb/mantis/mantis_dvb.c b/drivers/media/dvb/mantis/mantis_dvb.c index 5172e8563546..de18bb97d8e9 100644 --- a/drivers/media/dvb/mantis/mantis_dvb.c +++ b/drivers/media/dvb/mantis/mantis_dvb.c | |||
@@ -263,31 +263,32 @@ int __devinit mantis_frontend_init(struct mantis_pci *mantis) | |||
263 | } | 263 | } |
264 | break; | 264 | break; |
265 | case MANTIS_VP_2033_DVB_C: // VP-2033 | 265 | case MANTIS_VP_2033_DVB_C: // VP-2033 |
266 | case MANTIS_VP_2040_DVB_C: // VP-2040 | ||
267 | case TERRATEC_CINERGY_C_PCI: | ||
268 | case TECHNISAT_CABLESTAR_HD2: | ||
266 | dprintk(verbose, MANTIS_ERROR, 1, "Probing for CU1216 (DVB-C)"); | 269 | dprintk(verbose, MANTIS_ERROR, 1, "Probing for CU1216 (DVB-C)"); |
267 | mantis->fe = tda10021_attach(&philips_cu1216_config, &mantis->adapter, read_pwm(mantis)); | 270 | mantis->fe = tda10021_attach(&philips_cu1216_config, |
271 | &mantis->adapter, | ||
272 | read_pwm(mantis)); | ||
273 | |||
268 | if (mantis->fe) { | 274 | if (mantis->fe) { |
269 | mantis->fe->ops.tuner_ops.set_params = philips_cu1216_tuner_set; | ||
270 | dprintk(verbose, MANTIS_ERROR, 1, | 275 | dprintk(verbose, MANTIS_ERROR, 1, |
271 | "found Philips CU1216 DVB-C frontend (TDA10021) @ 0x%02x", | 276 | "found Philips CU1216 DVB-C frontend (TDA10021) @ 0x%02x", |
272 | philips_cu1216_config.demod_address); | 277 | philips_cu1216_config.demod_address); |
273 | 278 | } else { | |
274 | dprintk(verbose, MANTIS_ERROR, 1, | 279 | mantis->fe = tda10023_attach(&tda10023_cu1216_config, |
275 | "Mantis DVB-C Philips CU1216 frontend attach success"); | 280 | &mantis->adapter, |
276 | 281 | read_pwm(mantis)); | |
282 | |||
283 | if (mantis->fe) { | ||
284 | dprintk(verbose, MANTIS_ERROR, 1, | ||
285 | "found Philips CU1216 DVB-C frontend (TDA10023) @ 0x%02x", | ||
286 | philips_cu1216_config.demod_address); | ||
287 | } | ||
277 | } | 288 | } |
278 | break; | ||
279 | case MANTIS_VP_2040_DVB_C: // VP-2040 | ||
280 | case TERRATEC_CINERGY_C_PCI: | ||
281 | case TECHNISAT_CABLESTAR_HD2: | ||
282 | dprintk(verbose, MANTIS_ERROR, 1, "Probing for CU1216 (DVB-C)"); | ||
283 | mantis->fe = tda10023_attach(&tda10023_cu1216_config, &mantis->adapter, read_pwm(mantis)); | ||
284 | if (mantis->fe) { | 289 | if (mantis->fe) { |
285 | mantis->fe->ops.tuner_ops.set_params = philips_cu1216_tuner_set; | 290 | mantis->fe->ops.tuner_ops.set_params = philips_cu1216_tuner_set; |
286 | dprintk(verbose, MANTIS_ERROR, 1, | 291 | dprintk(verbose, MANTIS_ERROR, 1, |
287 | "found Philips CU1216 DVB-C frontend (TDA10023) @ 0x%02x", | ||
288 | philips_cu1216_config.demod_address); | ||
289 | |||
290 | dprintk(verbose, MANTIS_ERROR, 1, | ||
291 | "Mantis DVB-C Philips CU1216 frontend attach success"); | 292 | "Mantis DVB-C Philips CU1216 frontend attach success"); |
292 | } | 293 | } |
293 | break; | 294 | break; |