diff options
author | Devin Heitmueller <dheitmueller@kernellabs.com> | 2009-09-02 21:23:23 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 22:47:42 -0400 |
commit | 91f6dcec929b37a4568ddf55ef84e007d8fccc34 (patch) | |
tree | 7153eaf1a72ba39b88b8807c98e4d82eb03d5f69 /drivers/media/video/em28xx | |
parent | 28abf083d356bc4ec459ded7a95b6a22a20f6c3d (diff) |
V4L/DVB (12743): em28xx: fix mmap_mapper with vbi
When adding support for both video and VBI, I missed the mmap ioctl. Add
the missing call.
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-video.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c index 7022f7ba61bb..55bc8ea56094 100644 --- a/drivers/media/video/em28xx/em28xx-video.c +++ b/drivers/media/video/em28xx/em28xx-video.c | |||
@@ -2303,7 +2303,10 @@ static int em28xx_v4l2_mmap(struct file *filp, struct vm_area_struct *vma) | |||
2303 | if (unlikely(rc < 0)) | 2303 | if (unlikely(rc < 0)) |
2304 | return rc; | 2304 | return rc; |
2305 | 2305 | ||
2306 | rc = videobuf_mmap_mapper(&fh->vb_vidq, vma); | 2306 | if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) |
2307 | rc = videobuf_mmap_mapper(&fh->vb_vidq, vma); | ||
2308 | else if (fh->type == V4L2_BUF_TYPE_VBI_CAPTURE) | ||
2309 | rc = videobuf_mmap_mapper(&fh->vb_vbiq, vma); | ||
2307 | 2310 | ||
2308 | em28xx_videodbg("vma start=0x%08lx, size=%ld, ret=%d\n", | 2311 | em28xx_videodbg("vma start=0x%08lx, size=%ld, ret=%d\n", |
2309 | (unsigned long)vma->vm_start, | 2312 | (unsigned long)vma->vm_start, |