summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWayne Zou <b36644@freescale.com>2012-08-13 15:26:23 +0800
committerWayne Zou <b36644@freescale.com>2012-08-13 16:19:06 +0800
commitcef228084ed439a34c0ae7afaa8ed322133fcd39 (patch)
tree7ee9bbd0d36eccb4a7ac2f1220e7a4848a091f58 /drivers
parentdf8c1c22bd02a4e9df823cd127b0139e6f4c02b2 (diff)
ENGR00216786-3 V4L2 output: Allocate DMA buffer from DMA zone
Allocate DMA buffer from DMA zone, and the system can configure reserve dma size through proc fs file under /proc/sys/vm/lowmem_reserve_ratio. Signed-off-by: Wayne Zou <b36644@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/mxc/output/mxc_vout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/mxc/output/mxc_vout.c b/drivers/media/video/mxc/output/mxc_vout.c
index 4b3617f89b08..366d27a92286 100644
--- a/drivers/media/video/mxc/output/mxc_vout.c
+++ b/drivers/media/video/mxc/output/mxc_vout.c
@@ -244,7 +244,7 @@ static int alloc_dma_buf(struct mxc_vout_output *vout, struct dma_mem *buf)
{
buf->vaddr = dma_alloc_coherent(vout->vbq.dev, buf->size, &buf->paddr,
- GFP_KERNEL);
+ GFP_DMA | GFP_KERNEL);
if (!buf->vaddr) {
v4l2_err(vout->vfd->v4l2_dev,
"cannot get dma buf size:0x%x\n", buf->size);