diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-06 21:32:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-06 21:32:12 -0500 |
commit | 9e9bc9736756f25d6c47b4eba0ebf25b20a6f153 (patch) | |
tree | 647240f479c5f23910c3e6194d1c35b6ba54d75e /drivers/media/common/saa7146_video.c | |
parent | 3c0cb7c31c206aaedb967e44b98442bbeb17a6c4 (diff) | |
parent | e3c92215198cb6aa00ad38db2780faa6b72e0a3f (diff) |
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (255 commits)
[media] radio-aimslab.c: Fix gcc 4.5+ bug
[media] cx25821: Fix compilation breakage due to BKL dependency
[media] v4l2-compat-ioctl32: fix compile warning
[media] zoran: fix compiler warning
[media] tda18218: fix compile warning
[media] ngene: fix compile warning
[media] DVB: IR support for TechnoTrend CT-3650
[media] cx23885, cimax2.c: Fix case of two CAM insertion irq
[media] ir-nec-decoder: fix repeat key issue
[media] staging: se401 depends on USB
[media] staging: usbvideo/vicam depends on USB
[media] soc_camera: Add the ability to bind regulators to soc_camedra devices
[media] V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV2640 sensor
[media] v4l: soc-camera: switch to .unlocked_ioctl
[media] v4l: ov772x: simplify pointer dereference
[media] ov9640: fix OmniVision OV9640 sensor driver's priv data retrieving
[media] ov9640: use macro to request OmniVision OV9640 sensor private data
[media] ivtv-i2c: Fix two warnings
[media] staging/lirc: Update lirc TODO files
[media] cx88: Remove the obsolete i2c_adapter.id field
...
Diffstat (limited to 'drivers/media/common/saa7146_video.c')
-rw-r--r-- | drivers/media/common/saa7146_video.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/media/common/saa7146_video.c b/drivers/media/common/saa7146_video.c index d246910129e8..0ac5c619aecf 100644 --- a/drivers/media/common/saa7146_video.c +++ b/drivers/media/common/saa7146_video.c | |||
@@ -1129,35 +1129,6 @@ static int vidioc_g_chip_ident(struct file *file, void *__fh, | |||
1129 | core, g_chip_ident, chip); | 1129 | core, g_chip_ident, chip); |
1130 | } | 1130 | } |
1131 | 1131 | ||
1132 | #ifdef CONFIG_VIDEO_V4L1_COMPAT | ||
1133 | static int vidiocgmbuf(struct file *file, void *__fh, struct video_mbuf *mbuf) | ||
1134 | { | ||
1135 | struct saa7146_fh *fh = __fh; | ||
1136 | struct videobuf_queue *q = &fh->video_q; | ||
1137 | int err, i; | ||
1138 | |||
1139 | /* fixme: number of capture buffers and sizes for v4l apps */ | ||
1140 | int gbuffers = 2; | ||
1141 | int gbufsize = 768 * 576 * 4; | ||
1142 | |||
1143 | DEB_D(("VIDIOCGMBUF \n")); | ||
1144 | |||
1145 | q = &fh->video_q; | ||
1146 | err = videobuf_mmap_setup(q, gbuffers, gbufsize, | ||
1147 | V4L2_MEMORY_MMAP); | ||
1148 | if (err < 0) | ||
1149 | return err; | ||
1150 | |||
1151 | gbuffers = err; | ||
1152 | memset(mbuf, 0, sizeof(*mbuf)); | ||
1153 | mbuf->frames = gbuffers; | ||
1154 | mbuf->size = gbuffers * gbufsize; | ||
1155 | for (i = 0; i < gbuffers; i++) | ||
1156 | mbuf->offsets[i] = i * gbufsize; | ||
1157 | return 0; | ||
1158 | } | ||
1159 | #endif | ||
1160 | |||
1161 | const struct v4l2_ioctl_ops saa7146_video_ioctl_ops = { | 1132 | const struct v4l2_ioctl_ops saa7146_video_ioctl_ops = { |
1162 | .vidioc_querycap = vidioc_querycap, | 1133 | .vidioc_querycap = vidioc_querycap, |
1163 | .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap, | 1134 | .vidioc_enum_fmt_vid_cap = vidioc_enum_fmt_vid_cap, |
@@ -1186,9 +1157,6 @@ const struct v4l2_ioctl_ops saa7146_video_ioctl_ops = { | |||
1186 | .vidioc_streamon = vidioc_streamon, | 1157 | .vidioc_streamon = vidioc_streamon, |
1187 | .vidioc_streamoff = vidioc_streamoff, | 1158 | .vidioc_streamoff = vidioc_streamoff, |
1188 | .vidioc_g_parm = vidioc_g_parm, | 1159 | .vidioc_g_parm = vidioc_g_parm, |
1189 | #ifdef CONFIG_VIDEO_V4L1_COMPAT | ||
1190 | .vidiocgmbuf = vidiocgmbuf, | ||
1191 | #endif | ||
1192 | }; | 1160 | }; |
1193 | 1161 | ||
1194 | /*********************************************************************************/ | 1162 | /*********************************************************************************/ |