38 lines
1.6 KiB
Diff
38 lines
1.6 KiB
Diff
From 4a37ac1ffc2952fb6dedec914dcd336dbaf5dff5 Mon Sep 17 00:00:00 2001
|
|
From: Song Bing <bing.song@nxp.com>
|
|
Date: Fri, 21 Oct 2016 11:24:05 +0800
|
|
Subject: [PATCH 4/4] MMFMWK-7274 [mx8dv] Enable camera on mx8dv
|
|
|
|
Set memory allocate by camera as physical continuoues.
|
|
|
|
Signed-off-by: Song Bing bing.song@nxp.com
|
|
---
|
|
sys/v4l2/gstv4l2allocator.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/sys/v4l2/gstv4l2allocator.c b/sys/v4l2/gstv4l2allocator.c
|
|
index 2047383..ecab01e 100644
|
|
--- a/sys/v4l2/gstv4l2allocator.c
|
|
+++ b/sys/v4l2/gstv4l2allocator.c
|
|
@@ -818,7 +818,7 @@ gst_v4l2_allocator_alloc_mmap (GstV4l2Allocator * allocator)
|
|
"mmap buffer length %d, data offset %d, plane %d",
|
|
group->planes[i].length, group->planes[i].data_offset, i);
|
|
|
|
- group->mem[i] = (GstMemory *) _v4l2mem_new (0, GST_ALLOCATOR (allocator),
|
|
+ group->mem[i] = (GstMemory *) _v4l2mem_new (GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS, GST_ALLOCATOR (allocator),
|
|
NULL, group->planes[i].length, 0, 0, group->planes[i].length, i,
|
|
data, -1, group);
|
|
} else {
|
|
@@ -879,7 +879,7 @@ gst_v4l2_allocator_alloc_dmabuf (GstV4l2Allocator * allocator,
|
|
GST_LOG_OBJECT (allocator, "exported DMABUF as fd %i plane %d",
|
|
expbuf.fd, i);
|
|
|
|
- group->mem[i] = (GstMemory *) _v4l2mem_new (0, GST_ALLOCATOR (allocator),
|
|
+ group->mem[i] = (GstMemory *) _v4l2mem_new (GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS, GST_ALLOCATOR (allocator),
|
|
NULL, group->planes[i].length, 0, 0, group->planes[i].length, i,
|
|
NULL, expbuf.fd, group);
|
|
} else {
|
|
--
|
|
1.9.1
|
|
|