mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-03-01 05:41:22 +00:00
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 06d0e059b754aef63e8ca0d901d6759fb9ed15e7 Mon Sep 17 00:00:00 2001
|
|
From: OtherCrashOverride <OtherCrashOverride@users.noreply.github.com>
|
|
Date: Fri, 19 May 2017 12:59:51 +0000
|
|
Subject: [PATCH 11/25] MEMEKA: media: s5p-mfc: stop streaming before releasing
|
|
queues
|
|
|
|
If streaming is active when the MFC device is closed, it will generate an IOMMU page-fault.
|
|
|
|
Signed-off-by: memeka <mihailescu2m@gmail.com>
|
|
---
|
|
drivers/media/platform/s5p-mfc/s5p_mfc.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
|
|
index 37f2113a00ec..8c39528be39e 100644
|
|
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
|
|
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
|
|
@@ -941,6 +941,11 @@ static int s5p_mfc_release(struct file *file)
|
|
mfc_debug_enter();
|
|
if (dev)
|
|
mutex_lock(&dev->mfc_mutex);
|
|
+
|
|
+ /* stop streaming */
|
|
+ vb2_streamoff(&ctx->vq_src, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE);
|
|
+ vb2_streamoff(&ctx->vq_dst, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE);
|
|
+
|
|
vb2_queue_release(&ctx->vq_src);
|
|
vb2_queue_release(&ctx->vq_dst);
|
|
if (dev) {
|
|
--
|
|
2.17.1
|
|
|