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/video/videobuf-core.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/video/videobuf-core.c')
-rw-r--r-- | drivers/media/video/videobuf-core.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c index 8979f91fa8e5..de4fa4eb8844 100644 --- a/drivers/media/video/videobuf-core.c +++ b/drivers/media/video/videobuf-core.c | |||
@@ -1202,33 +1202,3 @@ int videobuf_mmap_mapper(struct videobuf_queue *q, struct vm_area_struct *vma) | |||
1202 | return rc; | 1202 | return rc; |
1203 | } | 1203 | } |
1204 | EXPORT_SYMBOL_GPL(videobuf_mmap_mapper); | 1204 | EXPORT_SYMBOL_GPL(videobuf_mmap_mapper); |
1205 | |||
1206 | #ifdef CONFIG_VIDEO_V4L1_COMPAT | ||
1207 | int videobuf_cgmbuf(struct videobuf_queue *q, | ||
1208 | struct video_mbuf *mbuf, int count) | ||
1209 | { | ||
1210 | struct v4l2_requestbuffers req; | ||
1211 | int rc, i; | ||
1212 | |||
1213 | MAGIC_CHECK(q->int_ops->magic, MAGIC_QTYPE_OPS); | ||
1214 | |||
1215 | memset(&req, 0, sizeof(req)); | ||
1216 | req.type = q->type; | ||
1217 | req.count = count; | ||
1218 | req.memory = V4L2_MEMORY_MMAP; | ||
1219 | rc = videobuf_reqbufs(q, &req); | ||
1220 | if (rc < 0) | ||
1221 | return rc; | ||
1222 | |||
1223 | mbuf->frames = req.count; | ||
1224 | mbuf->size = 0; | ||
1225 | for (i = 0; i < mbuf->frames; i++) { | ||
1226 | mbuf->offsets[i] = q->bufs[i]->boff; | ||
1227 | mbuf->size += PAGE_ALIGN(q->bufs[i]->bsize); | ||
1228 | } | ||
1229 | |||
1230 | return 0; | ||
1231 | } | ||
1232 | EXPORT_SYMBOL_GPL(videobuf_cgmbuf); | ||
1233 | #endif | ||
1234 | |||