|
@@ -614,24 +614,24 @@ static irqreturn_t saa7134_irq(int irq, void *dev_id)
|
|
print_irqstatus(dev,loop,report,status);
|
|
print_irqstatus(dev,loop,report,status);
|
|
if (report & SAA7134_IRQ_REPORT_PE) {
|
|
if (report & SAA7134_IRQ_REPORT_PE) {
|
|
/* disable all parity error */
|
|
/* disable all parity error */
|
|
- printk(KERN_WARNING "%s/irq: looping -- "
|
|
|
|
|
|
+ pr_warn("%s/irq: looping -- "
|
|
"clearing PE (parity error!) enable bit\n",dev->name);
|
|
"clearing PE (parity error!) enable bit\n",dev->name);
|
|
saa_clearl(SAA7134_IRQ2,SAA7134_IRQ2_INTE_PE);
|
|
saa_clearl(SAA7134_IRQ2,SAA7134_IRQ2_INTE_PE);
|
|
} else if (report & SAA7134_IRQ_REPORT_GPIO16) {
|
|
} else if (report & SAA7134_IRQ_REPORT_GPIO16) {
|
|
/* disable gpio16 IRQ */
|
|
/* disable gpio16 IRQ */
|
|
- printk(KERN_WARNING "%s/irq: looping -- "
|
|
|
|
|
|
+ pr_warn("%s/irq: looping -- "
|
|
"clearing GPIO16 enable bit\n",dev->name);
|
|
"clearing GPIO16 enable bit\n",dev->name);
|
|
saa_clearl(SAA7134_IRQ2, SAA7134_IRQ2_INTE_GPIO16_P);
|
|
saa_clearl(SAA7134_IRQ2, SAA7134_IRQ2_INTE_GPIO16_P);
|
|
saa_clearl(SAA7134_IRQ2, SAA7134_IRQ2_INTE_GPIO16_N);
|
|
saa_clearl(SAA7134_IRQ2, SAA7134_IRQ2_INTE_GPIO16_N);
|
|
} else if (report & SAA7134_IRQ_REPORT_GPIO18) {
|
|
} else if (report & SAA7134_IRQ_REPORT_GPIO18) {
|
|
/* disable gpio18 IRQs */
|
|
/* disable gpio18 IRQs */
|
|
- printk(KERN_WARNING "%s/irq: looping -- "
|
|
|
|
|
|
+ pr_warn("%s/irq: looping -- "
|
|
"clearing GPIO18 enable bit\n",dev->name);
|
|
"clearing GPIO18 enable bit\n",dev->name);
|
|
saa_clearl(SAA7134_IRQ2, SAA7134_IRQ2_INTE_GPIO18_P);
|
|
saa_clearl(SAA7134_IRQ2, SAA7134_IRQ2_INTE_GPIO18_P);
|
|
saa_clearl(SAA7134_IRQ2, SAA7134_IRQ2_INTE_GPIO18_N);
|
|
saa_clearl(SAA7134_IRQ2, SAA7134_IRQ2_INTE_GPIO18_N);
|
|
} else {
|
|
} else {
|
|
/* disable all irqs */
|
|
/* disable all irqs */
|
|
- printk(KERN_WARNING "%s/irq: looping -- "
|
|
|
|
|
|
+ pr_warn("%s/irq: looping -- "
|
|
"clearing all enable bits\n",dev->name);
|
|
"clearing all enable bits\n",dev->name);
|
|
saa_writel(SAA7134_IRQ1,0);
|
|
saa_writel(SAA7134_IRQ1,0);
|
|
saa_writel(SAA7134_IRQ2,0);
|
|
saa_writel(SAA7134_IRQ2,0);
|
|
@@ -790,7 +790,7 @@ static void must_configure_manually(int has_eeprom)
|
|
"saa7134: The supported cards are:\n");
|
|
"saa7134: The supported cards are:\n");
|
|
|
|
|
|
for (i = 0; i < saa7134_bcount; i++) {
|
|
for (i = 0; i < saa7134_bcount; i++) {
|
|
- printk(KERN_WARNING "saa7134: card=%d -> %-40.40s",
|
|
|
|
|
|
+ pr_warn("saa7134: card=%d -> %-40.40s",
|
|
i,saa7134_boards[i].name);
|
|
i,saa7134_boards[i].name);
|
|
for (p = 0; saa7134_pci_tbl[p].driver_data; p++) {
|
|
for (p = 0; saa7134_pci_tbl[p].driver_data; p++) {
|
|
if (saa7134_pci_tbl[p].driver_data != i)
|
|
if (saa7134_pci_tbl[p].driver_data != i)
|
|
@@ -903,31 +903,31 @@ static int saa7134_initdev(struct pci_dev *pci_dev,
|
|
/* pci quirks */
|
|
/* pci quirks */
|
|
if (pci_pci_problems) {
|
|
if (pci_pci_problems) {
|
|
if (pci_pci_problems & PCIPCI_TRITON)
|
|
if (pci_pci_problems & PCIPCI_TRITON)
|
|
- printk(KERN_INFO "%s: quirk: PCIPCI_TRITON\n", dev->name);
|
|
|
|
|
|
+ pr_info("%s: quirk: PCIPCI_TRITON\n", dev->name);
|
|
if (pci_pci_problems & PCIPCI_NATOMA)
|
|
if (pci_pci_problems & PCIPCI_NATOMA)
|
|
- printk(KERN_INFO "%s: quirk: PCIPCI_NATOMA\n", dev->name);
|
|
|
|
|
|
+ pr_info("%s: quirk: PCIPCI_NATOMA\n", dev->name);
|
|
if (pci_pci_problems & PCIPCI_VIAETBF)
|
|
if (pci_pci_problems & PCIPCI_VIAETBF)
|
|
- printk(KERN_INFO "%s: quirk: PCIPCI_VIAETBF\n", dev->name);
|
|
|
|
|
|
+ pr_info("%s: quirk: PCIPCI_VIAETBF\n", dev->name);
|
|
if (pci_pci_problems & PCIPCI_VSFX)
|
|
if (pci_pci_problems & PCIPCI_VSFX)
|
|
- printk(KERN_INFO "%s: quirk: PCIPCI_VSFX\n",dev->name);
|
|
|
|
|
|
+ pr_info("%s: quirk: PCIPCI_VSFX\n",dev->name);
|
|
#ifdef PCIPCI_ALIMAGIK
|
|
#ifdef PCIPCI_ALIMAGIK
|
|
if (pci_pci_problems & PCIPCI_ALIMAGIK) {
|
|
if (pci_pci_problems & PCIPCI_ALIMAGIK) {
|
|
- printk(KERN_INFO "%s: quirk: PCIPCI_ALIMAGIK -- latency fixup\n",
|
|
|
|
|
|
+ pr_info("%s: quirk: PCIPCI_ALIMAGIK -- latency fixup\n",
|
|
dev->name);
|
|
dev->name);
|
|
latency = 0x0A;
|
|
latency = 0x0A;
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
if (pci_pci_problems & (PCIPCI_FAIL|PCIAGP_FAIL)) {
|
|
if (pci_pci_problems & (PCIPCI_FAIL|PCIAGP_FAIL)) {
|
|
- printk(KERN_INFO "%s: quirk: this driver and your "
|
|
|
|
|
|
+ pr_info("%s: quirk: this driver and your "
|
|
"chipset may not work together"
|
|
"chipset may not work together"
|
|
" in overlay mode.\n",dev->name);
|
|
" in overlay mode.\n",dev->name);
|
|
if (!saa7134_no_overlay) {
|
|
if (!saa7134_no_overlay) {
|
|
- printk(KERN_INFO "%s: quirk: overlay "
|
|
|
|
|
|
+ pr_info("%s: quirk: overlay "
|
|
"mode will be disabled.\n",
|
|
"mode will be disabled.\n",
|
|
dev->name);
|
|
dev->name);
|
|
saa7134_no_overlay = 1;
|
|
saa7134_no_overlay = 1;
|
|
} else {
|
|
} else {
|
|
- printk(KERN_INFO "%s: quirk: overlay "
|
|
|
|
|
|
+ pr_info("%s: quirk: overlay "
|
|
"mode will be forced. Use this"
|
|
"mode will be forced. Use this"
|
|
" option at your own risk.\n",
|
|
" option at your own risk.\n",
|
|
dev->name);
|
|
dev->name);
|
|
@@ -935,7 +935,7 @@ static int saa7134_initdev(struct pci_dev *pci_dev,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (UNSET != latency) {
|
|
if (UNSET != latency) {
|
|
- printk(KERN_INFO "%s: setting pci latency timer to %d\n",
|
|
|
|
|
|
+ pr_info("%s: setting pci latency timer to %d\n",
|
|
dev->name,latency);
|
|
dev->name,latency);
|
|
pci_write_config_byte(pci_dev, PCI_LATENCY_TIMER, latency);
|
|
pci_write_config_byte(pci_dev, PCI_LATENCY_TIMER, latency);
|
|
}
|
|
}
|
|
@@ -943,7 +943,7 @@ static int saa7134_initdev(struct pci_dev *pci_dev,
|
|
/* print pci info */
|
|
/* print pci info */
|
|
dev->pci_rev = pci_dev->revision;
|
|
dev->pci_rev = pci_dev->revision;
|
|
pci_read_config_byte(pci_dev, PCI_LATENCY_TIMER, &dev->pci_lat);
|
|
pci_read_config_byte(pci_dev, PCI_LATENCY_TIMER, &dev->pci_lat);
|
|
- printk(KERN_INFO "%s: found at %s, rev: %d, irq: %d, "
|
|
|
|
|
|
+ pr_info("%s: found at %s, rev: %d, irq: %d, "
|
|
"latency: %d, mmio: 0x%llx\n", dev->name,
|
|
"latency: %d, mmio: 0x%llx\n", dev->name,
|
|
pci_name(pci_dev), dev->pci_rev, pci_dev->irq,
|
|
pci_name(pci_dev), dev->pci_rev, pci_dev->irq,
|
|
dev->pci_lat,(unsigned long long)pci_resource_start(pci_dev,0));
|
|
dev->pci_lat,(unsigned long long)pci_resource_start(pci_dev,0));
|
|
@@ -972,7 +972,7 @@ static int saa7134_initdev(struct pci_dev *pci_dev,
|
|
dev->tda9887_conf = saa7134_boards[dev->board].tda9887_conf;
|
|
dev->tda9887_conf = saa7134_boards[dev->board].tda9887_conf;
|
|
if (UNSET != tuner[dev->nr])
|
|
if (UNSET != tuner[dev->nr])
|
|
dev->tuner_type = tuner[dev->nr];
|
|
dev->tuner_type = tuner[dev->nr];
|
|
- printk(KERN_INFO "%s: subsystem: %04x:%04x, board: %s [card=%d,%s]\n",
|
|
|
|
|
|
+ pr_info("%s: subsystem: %04x:%04x, board: %s [card=%d,%s]\n",
|
|
dev->name,pci_dev->subsystem_vendor,
|
|
dev->name,pci_dev->subsystem_vendor,
|
|
pci_dev->subsystem_device,saa7134_boards[dev->board].name,
|
|
pci_dev->subsystem_device,saa7134_boards[dev->board].name,
|
|
dev->board, dev->autodetected ?
|
|
dev->board, dev->autodetected ?
|
|
@@ -983,7 +983,7 @@ static int saa7134_initdev(struct pci_dev *pci_dev,
|
|
pci_resource_len(pci_dev,0),
|
|
pci_resource_len(pci_dev,0),
|
|
dev->name)) {
|
|
dev->name)) {
|
|
err = -EBUSY;
|
|
err = -EBUSY;
|
|
- printk(KERN_ERR "%s: can't get MMIO memory @ 0x%llx\n",
|
|
|
|
|
|
+ pr_err("%s: can't get MMIO memory @ 0x%llx\n",
|
|
dev->name,(unsigned long long)pci_resource_start(pci_dev,0));
|
|
dev->name,(unsigned long long)pci_resource_start(pci_dev,0));
|
|
goto fail1;
|
|
goto fail1;
|
|
}
|
|
}
|
|
@@ -992,7 +992,7 @@ static int saa7134_initdev(struct pci_dev *pci_dev,
|
|
dev->bmmio = (__u8 __iomem *)dev->lmmio;
|
|
dev->bmmio = (__u8 __iomem *)dev->lmmio;
|
|
if (NULL == dev->lmmio) {
|
|
if (NULL == dev->lmmio) {
|
|
err = -EIO;
|
|
err = -EIO;
|
|
- printk(KERN_ERR "%s: can't ioremap() MMIO memory\n",
|
|
|
|
|
|
+ pr_err("%s: can't ioremap() MMIO memory\n",
|
|
dev->name);
|
|
dev->name);
|
|
goto fail2;
|
|
goto fail2;
|
|
}
|
|
}
|
|
@@ -1010,7 +1010,7 @@ static int saa7134_initdev(struct pci_dev *pci_dev,
|
|
err = request_irq(pci_dev->irq, saa7134_irq,
|
|
err = request_irq(pci_dev->irq, saa7134_irq,
|
|
IRQF_SHARED, dev->name, dev);
|
|
IRQF_SHARED, dev->name, dev);
|
|
if (err < 0) {
|
|
if (err < 0) {
|
|
- printk(KERN_ERR "%s: can't get IRQ %d\n",
|
|
|
|
|
|
+ pr_err("%s: can't get IRQ %d\n",
|
|
dev->name,pci_dev->irq);
|
|
dev->name,pci_dev->irq);
|
|
goto fail4;
|
|
goto fail4;
|
|
}
|
|
}
|
|
@@ -1040,7 +1040,7 @@ static int saa7134_initdev(struct pci_dev *pci_dev,
|
|
&dev->i2c_adap, "saa6588",
|
|
&dev->i2c_adap, "saa6588",
|
|
0, I2C_ADDRS(saa7134_boards[dev->board].rds_addr));
|
|
0, I2C_ADDRS(saa7134_boards[dev->board].rds_addr));
|
|
if (sd) {
|
|
if (sd) {
|
|
- printk(KERN_INFO "%s: found RDS decoder\n", dev->name);
|
|
|
|
|
|
+ pr_info("%s: found RDS decoder\n", dev->name);
|
|
dev->has_rds = 1;
|
|
dev->has_rds = 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1059,7 +1059,7 @@ static int saa7134_initdev(struct pci_dev *pci_dev,
|
|
|
|
|
|
/* register v4l devices */
|
|
/* register v4l devices */
|
|
if (saa7134_no_overlay > 0)
|
|
if (saa7134_no_overlay > 0)
|
|
- printk(KERN_INFO "%s: Overlay support disabled.\n", dev->name);
|
|
|
|
|
|
+ pr_info("%s: Overlay support disabled.\n", dev->name);
|
|
|
|
|
|
dev->video_dev = vdev_init(dev,&saa7134_video_template,"video");
|
|
dev->video_dev = vdev_init(dev,&saa7134_video_template,"video");
|
|
dev->video_dev->ctrl_handler = &dev->ctrl_handler;
|
|
dev->video_dev->ctrl_handler = &dev->ctrl_handler;
|
|
@@ -1068,11 +1068,11 @@ static int saa7134_initdev(struct pci_dev *pci_dev,
|
|
err = video_register_device(dev->video_dev,VFL_TYPE_GRABBER,
|
|
err = video_register_device(dev->video_dev,VFL_TYPE_GRABBER,
|
|
video_nr[dev->nr]);
|
|
video_nr[dev->nr]);
|
|
if (err < 0) {
|
|
if (err < 0) {
|
|
- printk(KERN_INFO "%s: can't register video device\n",
|
|
|
|
|
|
+ pr_info("%s: can't register video device\n",
|
|
dev->name);
|
|
dev->name);
|
|
goto fail5;
|
|
goto fail5;
|
|
}
|
|
}
|
|
- printk(KERN_INFO "%s: registered device %s [v4l2]\n",
|
|
|
|
|
|
+ pr_info("%s: registered device %s [v4l2]\n",
|
|
dev->name, video_device_node_name(dev->video_dev));
|
|
dev->name, video_device_node_name(dev->video_dev));
|
|
|
|
|
|
dev->vbi_dev = vdev_init(dev, &saa7134_video_template, "vbi");
|
|
dev->vbi_dev = vdev_init(dev, &saa7134_video_template, "vbi");
|
|
@@ -1084,7 +1084,7 @@ static int saa7134_initdev(struct pci_dev *pci_dev,
|
|
vbi_nr[dev->nr]);
|
|
vbi_nr[dev->nr]);
|
|
if (err < 0)
|
|
if (err < 0)
|
|
goto fail5;
|
|
goto fail5;
|
|
- printk(KERN_INFO "%s: registered device %s\n",
|
|
|
|
|
|
+ pr_info("%s: registered device %s\n",
|
|
dev->name, video_device_node_name(dev->vbi_dev));
|
|
dev->name, video_device_node_name(dev->vbi_dev));
|
|
|
|
|
|
if (card_has_radio(dev)) {
|
|
if (card_has_radio(dev)) {
|
|
@@ -1095,7 +1095,7 @@ static int saa7134_initdev(struct pci_dev *pci_dev,
|
|
radio_nr[dev->nr]);
|
|
radio_nr[dev->nr]);
|
|
if (err < 0)
|
|
if (err < 0)
|
|
goto fail5;
|
|
goto fail5;
|
|
- printk(KERN_INFO "%s: registered device %s\n",
|
|
|
|
|
|
+ pr_info("%s: registered device %s\n",
|
|
dev->name, video_device_node_name(dev->radio_dev));
|
|
dev->name, video_device_node_name(dev->radio_dev));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1358,7 +1358,7 @@ static struct pci_driver saa7134_pci_driver = {
|
|
static int __init saa7134_init(void)
|
|
static int __init saa7134_init(void)
|
|
{
|
|
{
|
|
INIT_LIST_HEAD(&saa7134_devlist);
|
|
INIT_LIST_HEAD(&saa7134_devlist);
|
|
- printk(KERN_INFO "saa7130/34: v4l2 driver version %s loaded\n",
|
|
|
|
|
|
+ pr_info("saa7130/34: v4l2 driver version %s loaded\n",
|
|
SAA7134_VERSION);
|
|
SAA7134_VERSION);
|
|
return pci_register_driver(&saa7134_pci_driver);
|
|
return pci_register_driver(&saa7134_pci_driver);
|
|
}
|
|
}
|