diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-12-24 08:33:19 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:17:07 -0500 |
commit | 08af245de0cf6ab5f4ed008ee2bb99273774fce0 (patch) | |
tree | d07a9b38eb4b9442ef0e935063a5f7f40248e19e /drivers/media/video/pwc | |
parent | b69a219e0e97441dbeb0262cf85468b61a161399 (diff) |
[media] V4L: remove V4L1 compatibility mode
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pwc')
-rw-r--r-- | drivers/media/video/pwc/pwc-v4l.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/media/video/pwc/pwc-v4l.c b/drivers/media/video/pwc/pwc-v4l.c index 2ef1668638f9..8ca4d22b4384 100644 --- a/drivers/media/video/pwc/pwc-v4l.c +++ b/drivers/media/video/pwc/pwc-v4l.c | |||
@@ -362,23 +362,6 @@ long pwc_video_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
362 | 362 | ||
363 | 363 | ||
364 | switch (cmd) { | 364 | switch (cmd) { |
365 | #ifdef CONFIG_VIDEO_V4L1_COMPAT | ||
366 | /* mmap() functions */ | ||
367 | case VIDIOCGMBUF: | ||
368 | { | ||
369 | /* Tell the user program how much memory is needed for a mmap() */ | ||
370 | struct video_mbuf *vm = arg; | ||
371 | int i; | ||
372 | |||
373 | memset(vm, 0, sizeof(*vm)); | ||
374 | vm->size = pwc_mbufs * pdev->len_per_image; | ||
375 | vm->frames = pwc_mbufs; /* double buffering should be enough for most applications */ | ||
376 | for (i = 0; i < pwc_mbufs; i++) | ||
377 | vm->offsets[i] = i * pdev->len_per_image; | ||
378 | break; | ||
379 | } | ||
380 | #endif | ||
381 | |||
382 | /* V4L2 Layer */ | 365 | /* V4L2 Layer */ |
383 | case VIDIOC_QUERYCAP: | 366 | case VIDIOC_QUERYCAP: |
384 | { | 367 | { |