build/patch/kernel/archive/odroidxu4-5.13/0058-ODROID-XU4-s5p-mfc-Try-again-after-error.patch

42 lines
1.5 KiB
Diff

From 638b0e4a50b8527f2446c63f9596e75920bb0d2f Mon Sep 17 00:00:00 2001
From: MastaG <mastag@gmail.com>
Date: Mon, 4 Jan 2021 14:05:08 +0100
Subject: [PATCH 058/109] ODROID-XU4: s5p-mfc: Try again after error.
This is a fix by AreaScout which makes sure that we can try to play new videos in Kodi.
Change-Id: I50181bebeb16aec6148468315ed67a7ce1bc7adb
---
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
index a71753d459ba..a85dd2df1a3c 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
@@ -600,8 +600,8 @@ static int vidioc_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf)
struct s5p_mfc_ctx *ctx = fh_to_ctx(priv);
if (ctx->state == MFCINST_ERROR) {
- mfc_err("Call on QBUF after unrecoverable error\n");
- return -EIO;
+ //mfc_err("Call on QBUF after unrecoverable error\n");
+ return -EAGAIN;
}
if (buf->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE)
return vb2_qbuf(&ctx->vq_src, NULL, buf);
@@ -620,8 +620,8 @@ static int vidioc_dqbuf(struct file *file, void *priv, struct v4l2_buffer *buf)
int ret;
if (ctx->state == MFCINST_ERROR) {
- mfc_err_limited("Call on DQBUF after unrecoverable error\n");
- return -EIO;
+ //mfc_err_limited("Call on DQBUF after unrecoverable error\n");
+ return -EAGAIN;
}
switch (buf->type) {
--
2.25.1