From aa9bbf12dfd3fd6ae3c7bc19c08e9bc61af5d5b8 Mon Sep 17 00:00:00 2001
From: Philipp Zabel
Date: Tue, 21 May 2013 04:16:29 -0300
Subject: [PATCH] --- yaml --- r: 377185 b: refs/heads/master c:
8fdf94a254ab2f90ae79b82e56b1f8e9d7582026 h: refs/heads/master i: 377183:
92c826d45ce9a6dae4ca83664c28ba142530d809 v: v3
---
[refs] | 2 +-
trunk/drivers/media/platform/coda.c | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/[refs] b/[refs]
index ac7f18a6fad4..4ab8cc258fe7 100644
--- a/[refs]
+++ b/[refs]
@@ -1,2 +1,2 @@
---
-refs/heads/master: 8b94ca61d7065fa7fa7bdb08ce31a9385be5205b
+refs/heads/master: 8fdf94a254ab2f90ae79b82e56b1f8e9d7582026
diff --git a/trunk/drivers/media/platform/coda.c b/trunk/drivers/media/platform/coda.c
index 5612329f9ef7..f82e1c668179 100644
--- a/trunk/drivers/media/platform/coda.c
+++ b/trunk/drivers/media/platform/coda.c
@@ -571,6 +571,14 @@ static int vidioc_dqbuf(struct file *file, void *priv, struct v4l2_buffer *buf)
return v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf);
}
+static int vidioc_create_bufs(struct file *file, void *priv,
+ struct v4l2_create_buffers *create)
+{
+ struct coda_ctx *ctx = fh_to_ctx(priv);
+
+ return v4l2_m2m_create_bufs(file, ctx->m2m_ctx, create);
+}
+
static int vidioc_streamon(struct file *file, void *priv,
enum v4l2_buf_type type)
{
@@ -605,6 +613,7 @@ static const struct v4l2_ioctl_ops coda_ioctl_ops = {
.vidioc_qbuf = vidioc_qbuf,
.vidioc_dqbuf = vidioc_dqbuf,
+ .vidioc_create_bufs = vidioc_create_bufs,
.vidioc_streamon = vidioc_streamon,
.vidioc_streamoff = vidioc_streamoff,