public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] vivi: registered as /dev/video%d
@ 2008-03-01  0:18 Carl Karsten
  2008-03-02  6:34 ` Carl Karsten
  2008-03-04 14:25 ` Mauro Carvalho Chehab
  0 siblings, 2 replies; 11+ messages in thread
From: Carl Karsten @ 2008-03-01  0:18 UTC (permalink / raw)
  To: video4linux-list

Now that vivi can be something other than /dev/video0, it should tell us what it 
  is.  This works for n_devs>1.

sudo modprobe vivi n_devs=3

[115041.616401] vivi: V4L2 device registered as /dev/video0
[115041.616445] vivi: V4L2 device registered as /dev/video1
[115041.616481] vivi: V4L2 device registered as /dev/video2
[115041.616486] Video Technology Magazine Virtual Video Capture Board 
successfully loaded.

Carl K


diff -r 127f67dea087 linux/drivers/media/video/vivi.c
--- a/linux/drivers/media/video/vivi.c  Tue Feb 26 20:43:56 2008 +0000
+++ b/linux/drivers/media/video/vivi.c  Fri Feb 29 18:15:01 2008 -0600
@@ -47,6 +47,8 @@
  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
  #include <linux/freezer.h>
  #endif
+
+#define MODULE_NAME "vivi"

  /* Wake up at about 30 fps */
  #define WAKE_NUMERATOR 30
@@ -1338,6 +1340,7 @@ static int __init vivi_init(void)
                         video_nr++;

                 dev->vfd = vfd;
+               printk(KERN_INFO "%s: V4L2 device registered as /dev/video%d\n", 
MODULE_NAME, vfd->minor);
         }

         if (ret < 0) {


--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-06-10  0:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-01  0:18 [patch] vivi: registered as /dev/video%d Carl Karsten
2008-03-02  6:34 ` Carl Karsten
2008-03-04 14:25 ` Mauro Carvalho Chehab
2008-05-28 20:15   ` Carl Karsten
2008-05-28 20:37     ` Mauro Carvalho Chehab
2008-05-28 22:03       ` Carl Karsten
2008-05-28 22:59         ` hermann pitton
     [not found]           ` <483DEB53.40604@personnelware.com>
     [not found]             ` <1212021382.5745.13.camel@pc10.localdom.local>
2008-05-31  3:59               ` Carl Karsten
2008-05-31  6:37               ` Carl Karsten
2008-06-01  4:38                 ` hermann pitton
2008-06-10  0:02               ` Carl Karsten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox