mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-15 19:09:46 +00:00
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
From 566615d14dd8b4a5dbc06f158cb35450b1105e35 Mon Sep 17 00:00:00 2001
|
|
From: Jernej Skrabec <jernej.skrabec@gmail.com>
|
|
Date: Tue, 4 Oct 2022 20:36:18 +0200
|
|
Subject: [PATCH] media: cedrus: Don't CPU map source buffers
|
|
|
|
There is no need to access source buffers via CPU, so let's disable
|
|
that. This will lower amount of virtual memory needed on 32-bit ARM
|
|
SoCs.
|
|
|
|
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
|
|
---
|
|
drivers/staging/media/sunxi/cedrus/cedrus_video.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_video.c b/drivers/staging/media/sunxi/cedrus/cedrus_video.c
|
|
index f1eb94197a3d6c..8967f221f359f9 100644
|
|
--- a/drivers/staging/media/sunxi/cedrus/cedrus_video.c
|
|
+++ b/drivers/staging/media/sunxi/cedrus/cedrus_video.c
|
|
@@ -601,6 +601,7 @@ int cedrus_queue_init(void *priv, struct vb2_queue *src_vq,
|
|
|
|
src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT;
|
|
src_vq->io_modes = VB2_MMAP | VB2_DMABUF;
|
|
+ src_vq->dma_attrs = DMA_ATTR_NO_KERNEL_MAPPING;
|
|
src_vq->drv_priv = ctx;
|
|
src_vq->buf_struct_size = sizeof(struct cedrus_buffer);
|
|
src_vq->ops = &cedrus_qops;
|