mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
WIP: media: s5p-mfc: use EAGAIN not EIO for MFCINST_ERROR
Patch from https://forum.odroid.com/viewtopic.php?p=319025&sid=1fbdb9d8f7ea0ebee30dc8824f76d308#p319025 Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
This commit is contained in:
committed by
Mauro (mdrjr) Ribeiro
parent
bfd383cd5f
commit
76977620c7
@@ -632,7 +632,7 @@ static int vidioc_qbuf(struct file *file, void *priv, struct v4l2_buffer *buf)
|
||||
|
||||
if (ctx->state == MFCINST_ERROR) {
|
||||
mfc_err("Call on QBUF after unrecoverable error\n");
|
||||
return -EIO;
|
||||
return -EAGAIN;
|
||||
}
|
||||
if (buf->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE)
|
||||
return vb2_qbuf(&ctx->vq_src, NULL, buf);
|
||||
@@ -652,7 +652,7 @@ static int vidioc_dqbuf(struct file *file, void *priv, struct v4l2_buffer *buf)
|
||||
|
||||
if (ctx->state == MFCINST_ERROR) {
|
||||
mfc_err_limited("Call on DQBUF after unrecoverable error\n");
|
||||
return -EIO;
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
switch (buf->type) {
|
||||
|
||||
Reference in New Issue
Block a user