diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-05-09 06:20:40 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-20 23:04:37 -0400 |
commit | 8f56aaa3e65d675b756fac67b8abc8f2acaaf2f2 (patch) | |
tree | 51c5c3f7dee0a25fbb3198d0b62e5c837b35ca56 /drivers/media/video/tvp514x.c | |
parent | d3ca77595f4b1f17a6d41a89f942fea2b3b17d0c (diff) |
V4L/DVB: tvp514x: remove obsolete enum/try/s/g_fmt
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tvp514x.c')
-rw-r--r-- | drivers/media/video/tvp514x.c | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/drivers/media/video/tvp514x.c b/drivers/media/video/tvp514x.c index c0308c16e21f..45bcf0358a1d 100644 --- a/drivers/media/video/tvp514x.c +++ b/drivers/media/video/tvp514x.c | |||
@@ -949,31 +949,6 @@ tvp514x_enum_mbus_fmt(struct v4l2_subdev *sd, unsigned index, | |||
949 | } | 949 | } |
950 | 950 | ||
951 | /** | 951 | /** |
952 | * tvp514x_enum_fmt_cap() - V4L2 decoder interface handler for enum_fmt | ||
953 | * @sd: pointer to standard V4L2 sub-device structure | ||
954 | * @fmt: standard V4L2 VIDIOC_ENUM_FMT ioctl structure | ||
955 | * | ||
956 | * Implement the VIDIOC_ENUM_FMT ioctl to enumerate supported formats | ||
957 | */ | ||
958 | static int | ||
959 | tvp514x_enum_fmt_cap(struct v4l2_subdev *sd, struct v4l2_fmtdesc *fmt) | ||
960 | { | ||
961 | if (fmt == NULL || fmt->index) | ||
962 | return -EINVAL; | ||
963 | |||
964 | if (fmt->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) | ||
965 | /* only capture is supported */ | ||
966 | return -EINVAL; | ||
967 | |||
968 | /* only one format */ | ||
969 | fmt->flags = 0; | ||
970 | strlcpy(fmt->description, "8-bit UYVY 4:2:2 Format", | ||
971 | sizeof(fmt->description)); | ||
972 | fmt->pixelformat = V4L2_PIX_FMT_UYVY; | ||
973 | return 0; | ||
974 | } | ||
975 | |||
976 | /** | ||
977 | * tvp514x_mbus_fmt_cap() - V4L2 decoder interface handler for try/s/g_mbus_fmt | 952 | * tvp514x_mbus_fmt_cap() - V4L2 decoder interface handler for try/s/g_mbus_fmt |
978 | * @sd: pointer to standard V4L2 sub-device structure | 953 | * @sd: pointer to standard V4L2 sub-device structure |
979 | * @f: pointer to the mediabus format structure | 954 | * @f: pointer to the mediabus format structure |
@@ -1004,48 +979,6 @@ tvp514x_mbus_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *f) | |||
1004 | } | 979 | } |
1005 | 980 | ||
1006 | /** | 981 | /** |
1007 | * tvp514x_fmt_cap() - V4L2 decoder interface handler for try/s/g_fmt | ||
1008 | * @sd: pointer to standard V4L2 sub-device structure | ||
1009 | * @f: pointer to standard V4L2 VIDIOC_TRY_FMT ioctl structure | ||
1010 | * | ||
1011 | * Implement the VIDIOC_TRY/S/G_FMT ioctl for the CAPTURE buffer type. This | ||
1012 | * ioctl is used to negotiate the image capture size and pixel format. | ||
1013 | */ | ||
1014 | static int | ||
1015 | tvp514x_fmt_cap(struct v4l2_subdev *sd, struct v4l2_format *f) | ||
1016 | { | ||
1017 | struct tvp514x_decoder *decoder = to_decoder(sd); | ||
1018 | struct v4l2_pix_format *pix; | ||
1019 | enum tvp514x_std current_std; | ||
1020 | |||
1021 | if (f == NULL) | ||
1022 | return -EINVAL; | ||
1023 | |||
1024 | if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) | ||
1025 | return -EINVAL; | ||
1026 | |||
1027 | pix = &f->fmt.pix; | ||
1028 | |||
1029 | /* Calculate height and width based on current standard */ | ||
1030 | current_std = decoder->current_std; | ||
1031 | |||
1032 | pix->pixelformat = V4L2_PIX_FMT_UYVY; | ||
1033 | pix->width = decoder->std_list[current_std].width; | ||
1034 | pix->height = decoder->std_list[current_std].height; | ||
1035 | pix->field = V4L2_FIELD_INTERLACED; | ||
1036 | pix->bytesperline = pix->width * 2; | ||
1037 | pix->sizeimage = pix->bytesperline * pix->height; | ||
1038 | pix->colorspace = V4L2_COLORSPACE_SMPTE170M; | ||
1039 | pix->priv = 0; | ||
1040 | |||
1041 | v4l2_dbg(1, debug, sd, "FMT: bytesperline - %d" | ||
1042 | "Width - %d, Height - %d\n", | ||
1043 | pix->bytesperline, | ||
1044 | pix->width, pix->height); | ||
1045 | return 0; | ||
1046 | } | ||
1047 | |||
1048 | /** | ||
1049 | * tvp514x_g_parm() - V4L2 decoder interface handler for g_parm | 982 | * tvp514x_g_parm() - V4L2 decoder interface handler for g_parm |
1050 | * @sd: pointer to standard V4L2 sub-device structure | 983 | * @sd: pointer to standard V4L2 sub-device structure |
1051 | * @a: pointer to standard V4L2 VIDIOC_G_PARM ioctl structure | 984 | * @a: pointer to standard V4L2 VIDIOC_G_PARM ioctl structure |
@@ -1181,10 +1114,6 @@ static const struct v4l2_subdev_core_ops tvp514x_core_ops = { | |||
1181 | static const struct v4l2_subdev_video_ops tvp514x_video_ops = { | 1114 | static const struct v4l2_subdev_video_ops tvp514x_video_ops = { |
1182 | .s_routing = tvp514x_s_routing, | 1115 | .s_routing = tvp514x_s_routing, |
1183 | .querystd = tvp514x_querystd, | 1116 | .querystd = tvp514x_querystd, |
1184 | .enum_fmt = tvp514x_enum_fmt_cap, | ||
1185 | .g_fmt = tvp514x_fmt_cap, | ||
1186 | .try_fmt = tvp514x_fmt_cap, | ||
1187 | .s_fmt = tvp514x_fmt_cap, | ||
1188 | .enum_mbus_fmt = tvp514x_enum_mbus_fmt, | 1117 | .enum_mbus_fmt = tvp514x_enum_mbus_fmt, |
1189 | .g_mbus_fmt = tvp514x_mbus_fmt, | 1118 | .g_mbus_fmt = tvp514x_mbus_fmt, |
1190 | .try_mbus_fmt = tvp514x_mbus_fmt, | 1119 | .try_mbus_fmt = tvp514x_mbus_fmt, |