Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1396247 > unrolled thread

[PATCH 1/3] [media] s5p-mfc: Add handling of buffer freeing reqbufs request

Started byayaka <ayaka@soulik.info>
First post2016-05-07 07:20 +0200
Last post2016-05-07 07:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/3] [media] s5p-mfc: Add handling of buffer freeing reqbufs request ayaka <ayaka@soulik.info> - 2016-05-07 07:20 +0200

#1396247 — [PATCH 1/3] [media] s5p-mfc: Add handling of buffer freeing reqbufs request

Fromayaka <ayaka@soulik.info>
Date2016-05-07 07:20 +0200
Subject[PATCH 1/3] [media] s5p-mfc: Add handling of buffer freeing reqbufs request
Message-ID<rw2OK-3At-1@gated-at.bofh.it>
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@soulik.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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web