|
26 | 26 | #include <media/v4l2-fh.h> |
27 | 27 | #include <media/v4l2-ioctl.h> |
28 | 28 |
|
29 | | -#if defined(CONFIG_VIDEO_V4L2_SUBDEV_API) |
30 | | -/* |
31 | | - * The Streams API is an experimental feature. To use the Streams API, set |
32 | | - * 'v4l2_subdev_enable_streams_api' to 1 below. |
33 | | - */ |
34 | | - |
35 | | -static bool v4l2_subdev_enable_streams_api; |
36 | | -#endif |
37 | | - |
38 | 29 | /* |
39 | 30 | * Maximum stream ID is 63 for now, as we use u64 bitmask to represent a set |
40 | 31 | * of streams. |
@@ -565,13 +556,6 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg, |
565 | 556 | V4L2_SUBDEV_CLIENT_CAP_STREAMS; |
566 | 557 | int rval; |
567 | 558 |
|
568 | | - /* |
569 | | - * If the streams API is not enabled, remove V4L2_SUBDEV_CAP_STREAMS. |
570 | | - * Remove this when the API is no longer experimental. |
571 | | - */ |
572 | | - if (!v4l2_subdev_enable_streams_api) |
573 | | - streams_subdev = false; |
574 | | - |
575 | 559 | switch (cmd) { |
576 | 560 | case VIDIOC_SUBDEV_QUERYCAP: { |
577 | 561 | struct v4l2_subdev_capability *cap = arg; |
@@ -913,9 +897,6 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg, |
913 | 897 | struct v4l2_subdev_krouting krouting = {}; |
914 | 898 | unsigned int i; |
915 | 899 |
|
916 | | - if (!v4l2_subdev_enable_streams_api) |
917 | | - return -ENOIOCTLCMD; |
918 | | - |
919 | 900 | if (!(sd->flags & V4L2_SUBDEV_FL_STREAMS)) |
920 | 901 | return -ENOIOCTLCMD; |
921 | 902 |
|
@@ -986,9 +967,6 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg, |
986 | 967 | struct v4l2_subdev_routing *routing = arg; |
987 | 968 | struct v4l2_subdev_krouting *krouting; |
988 | 969 |
|
989 | | - if (!v4l2_subdev_enable_streams_api) |
990 | | - return -ENOIOCTLCMD; |
991 | | - |
992 | 970 | if (!(sd->flags & V4L2_SUBDEV_FL_STREAMS)) |
993 | 971 | return -ENOIOCTLCMD; |
994 | 972 |
|
@@ -1016,14 +994,6 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg, |
1016 | 994 | case VIDIOC_SUBDEV_S_CLIENT_CAP: { |
1017 | 995 | struct v4l2_subdev_client_capability *client_cap = arg; |
1018 | 996 |
|
1019 | | - /* |
1020 | | - * Clear V4L2_SUBDEV_CLIENT_CAP_STREAMS if streams API is not |
1021 | | - * enabled. Remove this when streams API is no longer |
1022 | | - * experimental. |
1023 | | - */ |
1024 | | - if (!v4l2_subdev_enable_streams_api) |
1025 | | - client_cap->capabilities &= ~V4L2_SUBDEV_CLIENT_CAP_STREAMS; |
1026 | | - |
1027 | 997 | /* Filter out unsupported capabilities */ |
1028 | 998 | client_cap->capabilities &= V4L2_SUBDEV_CLIENT_CAP_STREAMS; |
1029 | 999 |
|
|
0 commit comments