Skip to content

Commit 226c0ee

Browse files
Hans VerkuilMauro Carvalho Chehab
authored andcommitted
V4L/DVB: videotext: remove this obsolete API
Remove the vtx (aka videotext aka teletext) API from the v4l2 core. This API was scheduled for removal in kernel 2.6.35. The vtx device nodes have been superseded by vbi device nodes for many years. No applications exist that use the vtx support. Of the two i2c drivers that actually support this API the saa5249 has been impossible to use for a year now and no known hardware that supports this device exists. The saa5246a is theoretically supported by the old mxb boards, but it never actually worked. In summary: there is no hardware that can use this API and there are no applications actually implementing this API. The vtx support still reserves minors 192-223 and we would really like to reuse those for upcoming new functionality. In the unlikely event that new hardware appears that wants to use the functionality provided by the vtx API, then that functionality should be build around the sliced VBI API instead. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 563711f commit 226c0ee

4 files changed

Lines changed: 2 additions & 138 deletions

File tree

‎drivers/media/video/v4l2-dev.c‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static inline unsigned long *devnode_bits(int vfl_type)
8181
/* Any types not assigned to fixed minor ranges must be mapped to
8282
one single bitmap for the purposes of finding a free node number
8383
since all those unassigned types use the same minor range. */
84-
int idx = (vfl_type > VFL_TYPE_VTX) ? VFL_TYPE_MAX - 1 : vfl_type;
84+
int idx = (vfl_type > VFL_TYPE_RADIO) ? VFL_TYPE_MAX - 1 : vfl_type;
8585

8686
return devnode_nums[idx];
8787
}
@@ -377,8 +377,6 @@ static int get_index(struct video_device *vdev)
377377
*
378378
* %VFL_TYPE_GRABBER - A frame grabber
379379
*
380-
* %VFL_TYPE_VTX - A teletext device
381-
*
382380
* %VFL_TYPE_VBI - Vertical blank data (undecoded)
383381
*
384382
* %VFL_TYPE_RADIO - A radio card
@@ -411,9 +409,6 @@ static int __video_register_device(struct video_device *vdev, int type, int nr,
411409
case VFL_TYPE_GRABBER:
412410
name_base = "video";
413411
break;
414-
case VFL_TYPE_VTX:
415-
name_base = "vtx";
416-
break;
417412
case VFL_TYPE_VBI:
418413
name_base = "vbi";
419414
break;
@@ -451,10 +446,6 @@ static int __video_register_device(struct video_device *vdev, int type, int nr,
451446
minor_offset = 64;
452447
minor_cnt = 64;
453448
break;
454-
case VFL_TYPE_VTX:
455-
minor_offset = 192;
456-
minor_cnt = 32;
457-
break;
458449
case VFL_TYPE_VBI:
459450
minor_offset = 224;
460451
minor_cnt = 32;

‎include/linux/Kbuild‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ header-y += veth.h
371371
header-y += vhost.h
372372
header-y += videodev.h
373373
header-y += videodev2.h
374-
header-y += videotext.h
375374
header-y += virtio_9p.h
376375
header-y += virtio_balloon.h
377376
header-y += virtio_blk.h

‎include/linux/videotext.h‎

Lines changed: 0 additions & 125 deletions
This file was deleted.

‎include/media/v4l2-dev.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
#define VFL_TYPE_GRABBER 0
2222
#define VFL_TYPE_VBI 1
2323
#define VFL_TYPE_RADIO 2
24-
#define VFL_TYPE_VTX 3
25-
#define VFL_TYPE_MAX 4
24+
#define VFL_TYPE_MAX 3
2625

2726
struct v4l2_ioctl_callbacks;
2827
struct video_device;

0 commit comments

Comments
 (0)