patch-2.4.5 linux/drivers/media/video/bttv-driver.c
Next file: linux/drivers/media/video/bw-qcam.c
Previous file: linux/drivers/media/video/bt856.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Sat May 19 17:43:06 2001
- Orig file:
v2.4.4/linux/drivers/media/video/bttv-driver.c
- Orig date:
Fri Mar 2 11:12:10 2001
diff -u --recursive --new-file v2.4.4/linux/drivers/media/video/bttv-driver.c linux/drivers/media/video/bttv-driver.c
@@ -69,6 +69,9 @@
static unsigned int gbuffers = 2;
static unsigned int gbufsize = BTTV_MAX_FBUF;
static unsigned int combfilter = 0;
+static int video_nr = -1;
+static int radio_nr = -1;
+static int vbi_nr = -1;
unsigned int bttv_debug = 0;
unsigned int bttv_verbose = 1;
unsigned int bttv_gpio = 0;
@@ -94,6 +97,10 @@
MODULE_PARM_DESC(gbufsize,"size of the capture buffers, default is 0x208000");
MODULE_PARM(combfilter,"i");
+MODULE_PARM(video_nr,"i");
+MODULE_PARM(radio_nr,"i");
+MODULE_PARM(vbi_nr,"i");
+
MODULE_DESCRIPTION("bttv - v4l driver module for bt848/878 based cards");
MODULE_AUTHOR("Ralph Metzler & Marcus Metzler & Gerd Knorr");
@@ -2435,16 +2442,16 @@
{
audio(btv, AUDIO_MUTE, 1);
- if(video_register_device(&btv->video_dev,VFL_TYPE_GRABBER)<0)
+ if(video_register_device(&btv->video_dev,VFL_TYPE_GRABBER,video_nr)<0)
return -1;
- if(video_register_device(&btv->vbi_dev,VFL_TYPE_VBI)<0)
+ if(video_register_device(&btv->vbi_dev,VFL_TYPE_VBI,vbi_nr)<0)
{
video_unregister_device(&btv->video_dev);
return -1;
}
if (btv->has_radio)
{
- if(video_register_device(&btv->radio_dev, VFL_TYPE_RADIO)<0)
+ if(video_register_device(&btv->radio_dev, VFL_TYPE_RADIO, radio_nr)<0)
{
video_unregister_device(&btv->vbi_dev);
video_unregister_device(&btv->video_dev);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)