[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1462597526-31559-2-git-send-email-ayaka@soulik.info>
Date: Sat, 7 May 2016 13:05:24 +0800
From: ayaka <ayaka@...lik.info>
To: linux-kernel@...r.kernel.org
Cc: m.szyprowski@...sung.com, nicolas.dufresne@...labora.com,
shuahkh@....samsung.com, javier@....samsung.com,
mchehab@....samsung.com, k.debski@...sung.com,
jtp.park@...sung.com, kyungmin.park@...sung.com,
linux-arm-kernel@...ts.infradead.org, linux-media@...r.kernel.org,
ayaka <ayaka@...lik.info>
Subject: [PATCH 1/3] [media] s5p-mfc: Add handling of buffer freeing reqbufs request
The encoder forget the work to call hardware to release its buffers.
This patch came from chromium project. I just change its code
style and make the API match with new kernel.
Signed-off-by: ayaka <ayaka@...lik.info>
---
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
index 034b5c1..a66a9f9 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
@@ -1144,7 +1144,10 @@ static int vidioc_reqbufs(struct file *file, void *priv,
return -EINVAL;
if (reqbufs->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
if (reqbufs->count == 0) {
+ mfc_debug(2, "Freeing buffers\n");
ret = vb2_reqbufs(&ctx->vq_dst, reqbufs);
+ s5p_mfc_hw_call(dev->mfc_ops, release_codec_buffers,
+ ctx);
ctx->capture_state = QUEUE_FREE;
return ret;
}
--
2.5.5
Powered by blists - more mailing lists