aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Chen <b02280@freescale.com>2011-10-27 10:21:29 +0800
committerEric Miao <eric.miao@canonical.com>2011-11-10 07:39:04 +0800
commitb190911e2af2d94377dfc3ba5c604666433a567f (patch)
treebbec00ffd56d579aca3cb7c67a67755d1d9eb6ac
parent6eed68698b78764fbba0933b12963ab524886c16 (diff)
downloadlinux-linaro-b190911e2af2d94377dfc3ba5c604666433a567f.tar.gz
ENGR00160876 videobuf: add timestamp for user point buffer
1. add timestamp for userpoint buffer 2. use pgprot_writecombine for mmap Signed-off-by: Jason Chen <b02280@freescale.com>
-rw-r--r--drivers/media/video/videobuf-core.c1
-rw-r--r--drivers/media/video/videobuf-dma-contig.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c
index de4fa4eb884..2149f4dbfba 100644
--- a/drivers/media/video/videobuf-core.c
+++ b/drivers/media/video/videobuf-core.c
@@ -600,6 +600,7 @@ int videobuf_qbuf(struct videobuf_queue *q, struct v4l2_buffer *b)
buf->baddr != b->m.userptr)
q->ops->buf_release(q, buf);
buf->baddr = b->m.userptr;
+ buf->ts = b->timestamp;
break;
case V4L2_MEMORY_OVERLAY:
buf->boff = b->m.offset;
diff --git a/drivers/media/video/videobuf-dma-contig.c b/drivers/media/video/videobuf-dma-contig.c
index c47195b5b45..af7ff78c925 100644
--- a/drivers/media/video/videobuf-dma-contig.c
+++ b/drivers/media/video/videobuf-dma-contig.c
@@ -298,7 +298,7 @@ static int __videobuf_mmap_mapper(struct videobuf_queue *q,
size = vma->vm_end - vma->vm_start;
size = (size < mem->size) ? size : mem->size;
- vma->vm_page_prot = pgprot_writethru(vma->vm_page_prot);
+ vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
retval = remap_pfn_range(vma, vma->vm_start,
mem->dma_handle >> PAGE_SHIFT,
size, vma->vm_page_prot);