aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Tipnis <pranav.tipnis@linaro.org>2013-07-09 18:20:41 +0530
committerTushar Behera <tushar.behera@linaro.org>2013-07-11 15:21:15 +0530
commit5a93c058f6bd377fc5edad3e07b1f4d9f18f0c32 (patch)
tree23f6453ecfa1eaf76748d35dfd42c5c5acd877f8
parentbde3280088cbf2d61c3caa2bf476526acbbaf294 (diff)
media: vb2: Activate display as soon as mmap is calledsamsung-lt-v3.9-5samsung-android-3.9-2013.08samsung-android-3.9-2013.07
This patch activates the display by calling the underlying V4L2 driver's qbuf and streamon as soon as the userspace mmaps the framebuffer. Signed-off-by: Pranav Tipnis <pranav.tipnis@linaro.org> Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r--drivers/media/v4l2-core/videobuf2-fb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/v4l2-core/videobuf2-fb.c b/drivers/media/v4l2-core/videobuf2-fb.c
index 03211e563b8b..ee47f9914735 100644
--- a/drivers/media/v4l2-core/videobuf2-fb.c
+++ b/drivers/media/v4l2-core/videobuf2-fb.c
@@ -94,6 +94,8 @@ static struct fmt_desc fmt_conv_table[] = {
/* TODO: add more format descriptors */
};
+static int vb2_fb_blank(int blank_mode, struct fb_info *info);
+
/**
* vb2_drv_lock() - a shortcut to call driver specific lock()
* @q: videobuf2 queue
@@ -426,6 +428,8 @@ static int vb2_fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
ret = vb2_mmap(data->q, vma);
vb2_drv_unlock(data->q);
+ ret = vb2_fb_blank(FB_BLANK_UNBLANK, info);
+
return ret;
}