aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/cx88/cx88-cards.c7
-rw-r--r--drivers/media/video/cx88/cx88-dvb.c13
-rw-r--r--drivers/media/video/cx88/cx88-mpeg.c42
-rw-r--r--drivers/media/video/cx88/cx88-video.c30
4 files changed, 49 insertions, 43 deletions
diff --git a/drivers/media/video/cx88/cx88-cards.c b/drivers/media/video/cx88/cx88-cards.c
index 6204a453c11e..e73e8c96d5b9 100644
--- a/drivers/media/video/cx88/cx88-cards.c
+++ b/drivers/media/video/cx88/cx88-cards.c
@@ -2094,7 +2094,7 @@ struct cx88_core *cx88_core_create(struct pci_dev *pci, int nr)
2094 2094
2095 memcpy(&core->board, &cx88_boards[core->boardnr], sizeof(core->board)); 2095 memcpy(&core->board, &cx88_boards[core->boardnr], sizeof(core->board));
2096 2096
2097 printk(KERN_INFO "CORE %s: subsystem: %04x:%04x, board: %s [card=%d,%s]\n", 2097 printk(KERN_INFO "%s: subsystem: %04x:%04x, board: %s [card=%d,%s]\n",
2098 core->name,pci->subsystem_vendor, 2098 core->name,pci->subsystem_vendor,
2099 pci->subsystem_device, core->board.name, 2099 pci->subsystem_device, core->board.name,
2100 core->boardnr, card[core->nr] == core->boardnr ? 2100 core->boardnr, card[core->nr] == core->boardnr ?
@@ -2105,9 +2105,8 @@ struct cx88_core *cx88_core_create(struct pci_dev *pci, int nr)
2105 if (radio[core->nr] != UNSET) 2105 if (radio[core->nr] != UNSET)
2106 core->board.radio_type = radio[core->nr]; 2106 core->board.radio_type = radio[core->nr];
2107 2107
2108 printk(KERN_INFO "TV tuner %d at 0x%02x, Radio tuner %d at 0x%02x\n", 2108 printk(KERN_INFO "%s: TV tuner type %d, Radio tuner type %d\n",
2109 core->board.tuner_type, core->board.tuner_addr<<1, 2109 core->name, core->board.tuner_type, core->board.radio_type);
2110 core->board.radio_type, core->board.radio_addr<<1);
2111 2110
2112 /* init hardware */ 2111 /* init hardware */
2113 cx88_reset(core); 2112 cx88_reset(core);
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c
index d98b90721019..00d0e43785a0 100644
--- a/drivers/media/video/cx88/cx88-dvb.c
+++ b/drivers/media/video/cx88/cx88-dvb.c
@@ -482,7 +482,7 @@ static int dvb_register(struct cx8802_dev *dev)
482 &dev->core->i2c_adap, DVB_PLL_FMD1216ME); 482 &dev->core->i2c_adap, DVB_PLL_FMD1216ME);
483 } 483 }
484#else 484#else
485 printk("%s: built without vp3054 support\n", dev->core->name); 485 printk(KERN_ERR "%s/2: built without vp3054 support\n", dev->core->name);
486#endif 486#endif
487 break; 487 break;
488 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID: 488 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID:
@@ -625,12 +625,12 @@ static int dvb_register(struct cx8802_dev *dev)
625 } 625 }
626 break; 626 break;
627 default: 627 default:
628 printk("%s: The frontend of your DVB/ATSC card isn't supported yet\n", 628 printk(KERN_ERR "%s/2: The frontend of your DVB/ATSC card isn't supported yet\n",
629 dev->core->name); 629 dev->core->name);
630 break; 630 break;
631 } 631 }
632 if (NULL == dev->dvb.frontend) { 632 if (NULL == dev->dvb.frontend) {
633 printk("%s: frontend initialization failed\n",dev->core->name); 633 printk(KERN_ERR "%s/2: frontend initialization failed\n", dev->core->name);
634 return -1; 634 return -1;
635 } 635 }
636 636
@@ -709,7 +709,7 @@ static int cx8802_dvb_probe(struct cx8802_driver *drv)
709 goto fail_core; 709 goto fail_core;
710 710
711 /* dvb stuff */ 711 /* dvb stuff */
712 printk("%s/2: cx2388x based dvb card\n", core->name); 712 printk(KERN_INFO "%s/2: cx2388x based DVB/ATSC card\n", core->name);
713 videobuf_queue_init(&dev->dvb.dvbq, &dvb_qops, 713 videobuf_queue_init(&dev->dvb.dvbq, &dvb_qops,
714 dev->pci, &dev->slock, 714 dev->pci, &dev->slock,
715 V4L2_BUF_TYPE_VIDEO_CAPTURE, 715 V4L2_BUF_TYPE_VIDEO_CAPTURE,
@@ -718,7 +718,8 @@ static int cx8802_dvb_probe(struct cx8802_driver *drv)
718 dev); 718 dev);
719 err = dvb_register(dev); 719 err = dvb_register(dev);
720 if (err != 0) 720 if (err != 0)
721 printk("%s dvb_register failed err = %d\n", __FUNCTION__, err); 721 printk(KERN_ERR "%s/2: dvb_register failed (err = %d)\n",
722 core->name, err);
722 723
723 fail_core: 724 fail_core:
724 return err; 725 return err;
@@ -747,7 +748,7 @@ static struct cx8802_driver cx8802_dvb_driver = {
747 748
748static int dvb_init(void) 749static int dvb_init(void)
749{ 750{
750 printk(KERN_INFO "cx2388x dvb driver version %d.%d.%d loaded\n", 751 printk(KERN_INFO "cx88/2: cx2388x dvb driver version %d.%d.%d loaded\n",
751 (CX88_VERSION_CODE >> 16) & 0xff, 752 (CX88_VERSION_CODE >> 16) & 0xff,
752 (CX88_VERSION_CODE >> 8) & 0xff, 753 (CX88_VERSION_CODE >> 8) & 0xff,
753 CX88_VERSION_CODE & 0xff); 754 CX88_VERSION_CODE & 0xff);
diff --git a/drivers/media/video/cx88/cx88-mpeg.c b/drivers/media/video/cx88/cx88-mpeg.c
index 1df245ace2d0..5da47e251e66 100644
--- a/drivers/media/video/cx88/cx88-mpeg.c
+++ b/drivers/media/video/cx88/cx88-mpeg.c
@@ -675,22 +675,24 @@ int cx8802_register_driver(struct cx8802_driver *drv)
675 struct list_head *list; 675 struct list_head *list;
676 int err = 0, i = 0; 676 int err = 0, i = 0;
677 677
678 printk(KERN_INFO "%s() ->registering driver type=%s access=%s\n", __FUNCTION__ , 678 printk(KERN_INFO
679 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", 679 "cx88/2: registering cx8802 driver, type: %s access: %s\n",
680 drv->hw_access == CX8802_DRVCTL_SHARED ? "shared" : "exclusive"); 680 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird",
681 drv->hw_access == CX8802_DRVCTL_SHARED ? "shared" : "exclusive");
681 682
682 if ((err = cx8802_check_driver(drv)) != 0) { 683 if ((err = cx8802_check_driver(drv)) != 0) {
683 printk(KERN_INFO "%s() cx8802_driver is invalid\n", __FUNCTION__ ); 684 printk(KERN_ERR "cx88/2: cx8802_driver is invalid\n");
684 return err; 685 return err;
685 } 686 }
686 687
687 list_for_each(list,&cx8802_devlist) { 688 list_for_each(list,&cx8802_devlist) {
688 h = list_entry(list, struct cx8802_dev, devlist); 689 h = list_entry(list, struct cx8802_dev, devlist);
689 690
690 printk(KERN_INFO "CORE %s: subsystem: %04x:%04x, board: %s [card=%d]\n", 691 printk(KERN_INFO
691 h->core->name,h->pci->subsystem_vendor, 692 "%s/2: subsystem: %04x:%04x, board: %s [card=%d]\n",
692 h->pci->subsystem_device,h->core->board.name, 693 h->core->name, h->pci->subsystem_vendor,
693 h->core->boardnr); 694 h->pci->subsystem_device, h->core->board.name,
695 h->core->boardnr);
694 696
695 /* Bring up a new struct for each driver instance */ 697 /* Bring up a new struct for each driver instance */
696 driver = kzalloc(sizeof(*drv),GFP_KERNEL); 698 driver = kzalloc(sizeof(*drv),GFP_KERNEL);
@@ -712,7 +714,9 @@ int cx8802_register_driver(struct cx8802_driver *drv)
712 list_add_tail(&driver->devlist,&h->drvlist.devlist); 714 list_add_tail(&driver->devlist,&h->drvlist.devlist);
713 mutex_unlock(&drv->core->lock); 715 mutex_unlock(&drv->core->lock);
714 } else { 716 } else {
715 printk(KERN_ERR "%s() ->probe failed err = %d\n", __FUNCTION__, err); 717 printk(KERN_ERR
718 "%s/2: cx8802 probe failed, err = %d\n",
719 h->core->name, err);
716 } 720 }
717 721
718 } 722 }
@@ -732,17 +736,20 @@ int cx8802_unregister_driver(struct cx8802_driver *drv)
732 struct list_head *list2, *q; 736 struct list_head *list2, *q;
733 int err = 0, i = 0; 737 int err = 0, i = 0;
734 738
735 printk(KERN_INFO "%s() ->unregistering driver type=%s\n", __FUNCTION__ , 739 printk(KERN_INFO
736 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird"); 740 "cx88/2: unregistering cx8802 driver, type: %s access: %s\n",
741 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird",
742 drv->hw_access == CX8802_DRVCTL_SHARED ? "shared" : "exclusive");
737 743
738 list_for_each(list,&cx8802_devlist) { 744 list_for_each(list,&cx8802_devlist) {
739 i++; 745 i++;
740 h = list_entry(list, struct cx8802_dev, devlist); 746 h = list_entry(list, struct cx8802_dev, devlist);
741 747
742 printk(KERN_INFO "CORE %s: subsystem: %04x:%04x, board: %s [card=%d]\n", 748 printk(KERN_INFO
743 h->core->name,h->pci->subsystem_vendor, 749 "%s/2: subsystem: %04x:%04x, board: %s [card=%d]\n",
744 h->pci->subsystem_device,h->core->board.name, 750 h->core->name, h->pci->subsystem_vendor,
745 h->core->boardnr); 751 h->pci->subsystem_device, h->core->board.name,
752 h->core->boardnr);
746 753
747 list_for_each_safe(list2, q, &h->drvlist.devlist) { 754 list_for_each_safe(list2, q, &h->drvlist.devlist) {
748 d = list_entry(list2, struct cx8802_driver, devlist); 755 d = list_entry(list2, struct cx8802_driver, devlist);
@@ -757,7 +764,8 @@ int cx8802_unregister_driver(struct cx8802_driver *drv)
757 list_del(list2); 764 list_del(list2);
758 mutex_unlock(&drv->core->lock); 765 mutex_unlock(&drv->core->lock);
759 } else 766 } else
760 printk(KERN_ERR "%s() ->remove failed err = %d\n", __FUNCTION__, err); 767 printk(KERN_ERR "%s/2: cx8802 driver remove "
768 "failed (%d)\n", h->core->name, err);
761 769
762 } 770 }
763 771
@@ -865,7 +873,7 @@ static struct pci_driver cx8802_pci_driver = {
865 873
866static int cx8802_init(void) 874static int cx8802_init(void)
867{ 875{
868 printk(KERN_INFO "cx2388x cx88-mpeg Driver Manager version %d.%d.%d loaded\n", 876 printk(KERN_INFO "cx88/2: cx2388x MPEG-TS Driver Manager version %d.%d.%d loaded\n",
869 (CX88_VERSION_CODE >> 16) & 0xff, 877 (CX88_VERSION_CODE >> 16) & 0xff,
870 (CX88_VERSION_CODE >> 8) & 0xff, 878 (CX88_VERSION_CODE >> 8) & 0xff,
871 CX88_VERSION_CODE & 0xff); 879 CX88_VERSION_CODE & 0xff);
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c
index b0dd4313a841..e158ea2454af 100644
--- a/drivers/media/video/cx88/cx88-video.c
+++ b/drivers/media/video/cx88/cx88-video.c
@@ -1818,7 +1818,7 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
1818 err = request_irq(pci_dev->irq, cx8800_irq, 1818 err = request_irq(pci_dev->irq, cx8800_irq,
1819 IRQF_SHARED | IRQF_DISABLED, core->name, dev); 1819 IRQF_SHARED | IRQF_DISABLED, core->name, dev);
1820 if (err < 0) { 1820 if (err < 0) {
1821 printk(KERN_ERR "%s: can't get IRQ %d\n", 1821 printk(KERN_ERR "%s/0: can't get IRQ %d\n",
1822 core->name,pci_dev->irq); 1822 core->name,pci_dev->irq);
1823 goto fail_core; 1823 goto fail_core;
1824 } 1824 }
@@ -1837,7 +1837,7 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
1837 err = video_register_device(dev->video_dev,VFL_TYPE_GRABBER, 1837 err = video_register_device(dev->video_dev,VFL_TYPE_GRABBER,
1838 video_nr[core->nr]); 1838 video_nr[core->nr]);
1839 if (err < 0) { 1839 if (err < 0) {
1840 printk(KERN_INFO "%s: can't register video device\n", 1840 printk(KERN_ERR "%s/0: can't register video device\n",
1841 core->name); 1841 core->name);
1842 goto fail_unreg; 1842 goto fail_unreg;
1843 } 1843 }
@@ -1848,7 +1848,7 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
1848 err = video_register_device(dev->vbi_dev,VFL_TYPE_VBI, 1848 err = video_register_device(dev->vbi_dev,VFL_TYPE_VBI,
1849 vbi_nr[core->nr]); 1849 vbi_nr[core->nr]);
1850 if (err < 0) { 1850 if (err < 0) {
1851 printk(KERN_INFO "%s/0: can't register vbi device\n", 1851 printk(KERN_ERR "%s/0: can't register vbi device\n",
1852 core->name); 1852 core->name);
1853 goto fail_unreg; 1853 goto fail_unreg;
1854 } 1854 }
@@ -1861,7 +1861,7 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
1861 err = video_register_device(dev->radio_dev,VFL_TYPE_RADIO, 1861 err = video_register_device(dev->radio_dev,VFL_TYPE_RADIO,
1862 radio_nr[core->nr]); 1862 radio_nr[core->nr]);
1863 if (err < 0) { 1863 if (err < 0) {
1864 printk(KERN_INFO "%s/0: can't register radio device\n", 1864 printk(KERN_ERR "%s/0: can't register radio device\n",
1865 core->name); 1865 core->name);
1866 goto fail_unreg; 1866 goto fail_unreg;
1867 } 1867 }
@@ -1885,8 +1885,8 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
1885 core->kthread = kthread_run(cx88_audio_thread, core, "cx88 tvaudio"); 1885 core->kthread = kthread_run(cx88_audio_thread, core, "cx88 tvaudio");
1886 if (IS_ERR(core->kthread)) { 1886 if (IS_ERR(core->kthread)) {
1887 err = PTR_ERR(core->kthread); 1887 err = PTR_ERR(core->kthread);
1888 printk(KERN_ERR "Failed to create cx88 audio thread, err=%d\n", 1888 printk(KERN_ERR "%s/0: failed to create cx88 audio thread, err=%d\n",
1889 err); 1889 core->name, err);
1890 } 1890 }
1891 } 1891 }
1892 return 0; 1892 return 0;
@@ -1937,12 +1937,12 @@ static int cx8800_suspend(struct pci_dev *pci_dev, pm_message_t state)
1937 /* stop video+vbi capture */ 1937 /* stop video+vbi capture */
1938 spin_lock(&dev->slock); 1938 spin_lock(&dev->slock);
1939 if (!list_empty(&dev->vidq.active)) { 1939 if (!list_empty(&dev->vidq.active)) {
1940 printk("%s: suspend video\n", core->name); 1940 printk("%s/0: suspend video\n", core->name);
1941 stop_video_dma(dev); 1941 stop_video_dma(dev);
1942 del_timer(&dev->vidq.timeout); 1942 del_timer(&dev->vidq.timeout);
1943 } 1943 }
1944 if (!list_empty(&dev->vbiq.active)) { 1944 if (!list_empty(&dev->vbiq.active)) {
1945 printk("%s: suspend vbi\n", core->name); 1945 printk("%s/0: suspend vbi\n", core->name);
1946 cx8800_stop_vbi_dma(dev); 1946 cx8800_stop_vbi_dma(dev);
1947 del_timer(&dev->vbiq.timeout); 1947 del_timer(&dev->vbiq.timeout);
1948 } 1948 }
@@ -1968,8 +1968,8 @@ static int cx8800_resume(struct pci_dev *pci_dev)
1968 if (dev->state.disabled) { 1968 if (dev->state.disabled) {
1969 err=pci_enable_device(pci_dev); 1969 err=pci_enable_device(pci_dev);
1970 if (err) { 1970 if (err) {
1971 printk(KERN_ERR "%s: can't enable device\n", 1971 printk(KERN_ERR "%s/0: can't enable device\n",
1972 core->name); 1972 core->name);
1973 return err; 1973 return err;
1974 } 1974 }
1975 1975
@@ -1977,9 +1977,7 @@ static int cx8800_resume(struct pci_dev *pci_dev)
1977 } 1977 }
1978 err= pci_set_power_state(pci_dev, PCI_D0); 1978 err= pci_set_power_state(pci_dev, PCI_D0);
1979 if (err) { 1979 if (err) {
1980 printk(KERN_ERR "%s: can't enable device\n", 1980 printk(KERN_ERR "%s/0: can't set power state\n", core->name);
1981 core->name);
1982
1983 pci_disable_device(pci_dev); 1981 pci_disable_device(pci_dev);
1984 dev->state.disabled = 1; 1982 dev->state.disabled = 1;
1985 1983
@@ -1993,11 +1991,11 @@ static int cx8800_resume(struct pci_dev *pci_dev)
1993 /* restart video+vbi capture */ 1991 /* restart video+vbi capture */
1994 spin_lock(&dev->slock); 1992 spin_lock(&dev->slock);
1995 if (!list_empty(&dev->vidq.active)) { 1993 if (!list_empty(&dev->vidq.active)) {
1996 printk("%s: resume video\n", core->name); 1994 printk("%s/0: resume video\n", core->name);
1997 restart_video_queue(dev,&dev->vidq); 1995 restart_video_queue(dev,&dev->vidq);
1998 } 1996 }
1999 if (!list_empty(&dev->vbiq.active)) { 1997 if (!list_empty(&dev->vbiq.active)) {
2000 printk("%s: resume vbi\n", core->name); 1998 printk("%s/0: resume vbi\n", core->name);
2001 cx8800_restart_vbi_queue(dev,&dev->vbiq); 1999 cx8800_restart_vbi_queue(dev,&dev->vbiq);
2002 } 2000 }
2003 spin_unlock(&dev->slock); 2001 spin_unlock(&dev->slock);
@@ -2033,7 +2031,7 @@ static struct pci_driver cx8800_pci_driver = {
2033 2031
2034static int cx8800_init(void) 2032static int cx8800_init(void)
2035{ 2033{
2036 printk(KERN_INFO "cx2388x v4l2 driver version %d.%d.%d loaded\n", 2034 printk(KERN_INFO "cx88/0: cx2388x v4l2 driver version %d.%d.%d loaded\n",
2037 (CX88_VERSION_CODE >> 16) & 0xff, 2035 (CX88_VERSION_CODE >> 16) & 0xff,
2038 (CX88_VERSION_CODE >> 8) & 0xff, 2036 (CX88_VERSION_CODE >> 8) & 0xff,
2039 CX88_VERSION_CODE & 0xff); 2037 CX88_VERSION_CODE & 0xff);