aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/mtk-vcodec/venc_drv_if.h
diff options
context:
space:
mode:
authorTomasz Figa <tfiga@chromium.org>2018-11-21 01:37:59 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-03 14:29:14 -0500
commit8b8130f0c76abb422b5fd98aba401cd97e0b88b9 (patch)
treec9b3d265462f5bc7cf62aa007af93cdddfcfa6df /drivers/media/platform/mtk-vcodec/venc_drv_if.h
parentmedia: camss: Take in account sensor skip frames (diff)
downloadlinux-dev-8b8130f0c76abb422b5fd98aba401cd97e0b88b9.tar.xz
linux-dev-8b8130f0c76abb422b5fd98aba401cd97e0b88b9.zip
media: mtk-vcodec: Remove VA from encoder frame buffers
The encoder driver has no need to do any CPU access to the source frame buffers. Use a separate structure for holding DMA addresses and sizes for those and remove, so we do not end up introducing any erroneous dereferences of those VAs. This fixes DMA-buf import from exporters that do not provide contiguous kernel mappings, which includes the MTK DRM driver. Signed-off-by: Tomasz Figa <tfiga@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to '')
-rw-r--r--drivers/media/platform/mtk-vcodec/venc_drv_if.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/mtk-vcodec/venc_drv_if.h b/drivers/media/platform/mtk-vcodec/venc_drv_if.h
index a6e7d32e55cb..55ecda844894 100644
--- a/drivers/media/platform/mtk-vcodec/venc_drv_if.h
+++ b/drivers/media/platform/mtk-vcodec/venc_drv_if.h
@@ -106,7 +106,7 @@ struct venc_enc_param {
* @fb_addr: plane frame buffer addresses
*/
struct venc_frm_buf {
- struct mtk_vcodec_mem fb_addr[MTK_VCODEC_MAX_PLANES];
+ struct mtk_vcodec_fb fb_addr[MTK_VCODEC_MAX_PLANES];
};
/*