aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv/ivtv-driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-driver.c')
-rw-r--r--drivers/media/video/ivtv/ivtv-driver.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c
index efc66355339a..4c93466a89e5 100644
--- a/drivers/media/video/ivtv/ivtv-driver.c
+++ b/drivers/media/video/ivtv/ivtv-driver.c
@@ -181,7 +181,7 @@ MODULE_PARM_DESC(secam, "Set SECAM standard: B, G, H, D, K, L, LC");
181MODULE_PARM_DESC(ntsc, "Set NTSC standard: M, J, K"); 181MODULE_PARM_DESC(ntsc, "Set NTSC standard: M, J, K");
182MODULE_PARM_DESC(debug, 182MODULE_PARM_DESC(debug,
183 "Debug level (bitmask). Default: errors only\n" 183 "Debug level (bitmask). Default: errors only\n"
184 "\t\t\t(debug = 511 gives full debugging)"); 184 "\t\t\t(debug = 1023 gives full debugging)");
185MODULE_PARM_DESC(ivtv_pci_latency, 185MODULE_PARM_DESC(ivtv_pci_latency,
186 "Change the PCI latency to 64 if lower: 0 = No, 1 = Yes,\n" 186 "Change the PCI latency to 64 if lower: 0 = No, 1 = Yes,\n"
187 "\t\t\tDefault: Yes"); 187 "\t\t\tDefault: Yes");
@@ -339,6 +339,7 @@ static void ivtv_process_eeprom(struct ivtv *itv)
339 /* In a few cases the PCI subsystem IDs do not correctly 339 /* In a few cases the PCI subsystem IDs do not correctly
340 identify the card. A better method is to check the 340 identify the card. A better method is to check the
341 model number from the eeprom instead. */ 341 model number from the eeprom instead. */
342 case 30012 ... 30039: /* Low profile PVR250 */
342 case 32000 ... 32999: 343 case 32000 ... 32999:
343 case 48000 ... 48099: /* 48??? range are PVR250s with a cx23415 */ 344 case 48000 ... 48099: /* 48??? range are PVR250s with a cx23415 */
344 case 48400 ... 48599: 345 case 48400 ... 48599:
@@ -622,6 +623,7 @@ static int __devinit ivtv_init_struct1(struct ivtv *itv)
622 itv->enc_mbox.max_mbox = 2; /* the encoder has 3 mailboxes (0-2) */ 623 itv->enc_mbox.max_mbox = 2; /* the encoder has 3 mailboxes (0-2) */
623 itv->dec_mbox.max_mbox = 1; /* the decoder has 2 mailboxes (0-1) */ 624 itv->dec_mbox.max_mbox = 1; /* the decoder has 2 mailboxes (0-1) */
624 625
626 mutex_init(&itv->serialize_lock);
625 mutex_init(&itv->i2c_bus_lock); 627 mutex_init(&itv->i2c_bus_lock);
626 mutex_init(&itv->udma.lock); 628 mutex_init(&itv->udma.lock);
627 629
@@ -1288,10 +1290,7 @@ static void ivtv_remove(struct pci_dev *pci_dev)
1288 1290
1289 IVTV_DEBUG_INFO(" Releasing irq.\n"); 1291 IVTV_DEBUG_INFO(" Releasing irq.\n");
1290 free_irq(itv->dev->irq, (void *)itv); 1292 free_irq(itv->dev->irq, (void *)itv);
1291 1293 ivtv_iounmap(itv);
1292 if (itv->dev) {
1293 ivtv_iounmap(itv);
1294 }
1295 1294
1296 IVTV_DEBUG_INFO(" Releasing mem.\n"); 1295 IVTV_DEBUG_INFO(" Releasing mem.\n");
1297 release_mem_region(itv->base_addr, IVTV_ENCODER_SIZE); 1296 release_mem_region(itv->base_addr, IVTV_ENCODER_SIZE);
@@ -1326,9 +1325,9 @@ static int module_start(void)
1326 return -1; 1325 return -1;
1327 } 1326 }
1328 1327
1329 if (ivtv_debug < 0 || ivtv_debug > 511) { 1328 if (ivtv_debug < 0 || ivtv_debug > 1023) {
1330 ivtv_debug = 0; 1329 ivtv_debug = 0;
1331 printk(KERN_INFO "ivtv: debug value must be >= 0 and <= 511!\n"); 1330 printk(KERN_INFO "ivtv: debug value must be >= 0 and <= 1023!\n");
1332 } 1331 }
1333 1332
1334 if (pci_register_driver(&ivtv_pci_driver)) { 1333 if (pci_register_driver(&ivtv_pci_driver)) {