[PATCH] V4L: Fixes maximum number of VBI devices
- Increases the minor number limitation for vbi devices from 223 to 255. This is in agreement with the minor number allocation specified in Documentation/devices.txt. - Without this patch it is not possible to use more than 5 Hauppauge WinTV-PVR 350 cards since each of these allocate 3 vbi devices. Signed-of-by: Sigmund Augdal Helberg <sigmund@snap.tv> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
db1d1d57e9
commit
938606b02b
|
@ -76,7 +76,7 @@ static void video_release(struct class_device *cd)
|
|||
}
|
||||
|
||||
static struct class video_class = {
|
||||
.name = VIDEO_NAME,
|
||||
.name = VIDEO_NAME,
|
||||
.release = video_release,
|
||||
};
|
||||
|
||||
|
@ -293,7 +293,7 @@ int video_register_device(struct video_device *vfd, int type, int nr)
|
|||
break;
|
||||
case VFL_TYPE_VBI:
|
||||
base=224;
|
||||
end=240;
|
||||
end=256;
|
||||
name_base = "vbi";
|
||||
break;
|
||||
case VFL_TYPE_RADIO:
|
||||
|
@ -334,7 +334,7 @@ int video_register_device(struct video_device *vfd, int type, int nr)
|
|||
init_MUTEX(&vfd->lock);
|
||||
|
||||
/* sysfs class */
|
||||
memset(&vfd->class_dev, 0x00, sizeof(vfd->class_dev));
|
||||
memset(&vfd->class_dev, 0x00, sizeof(vfd->class_dev));
|
||||
if (vfd->dev)
|
||||
vfd->class_dev.dev = vfd->dev;
|
||||
vfd->class_dev.class = &video_class;
|
||||
|
|
Loading…
Reference in New Issue