diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2013-05-21 04:16:29 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-03 15:51:26 -0300 |
commit | 8fdf94a254ab2f90ae79b82e56b1f8e9d7582026 (patch) | |
tree | 808e3a779bf53b12cc3677b9d63dac33db18c72f /drivers/media | |
parent | 8b94ca61d7065fa7fa7bdb08ce31a9385be5205b (diff) | |
download | linux-stable-8fdf94a254ab2f90ae79b82e56b1f8e9d7582026.tar.gz linux-stable-8fdf94a254ab2f90ae79b82e56b1f8e9d7582026.tar.bz2 linux-stable-8fdf94a254ab2f90ae79b82e56b1f8e9d7582026.zip |
[media] coda: v4l2-compliance fix: add VIDIOC_CREATE_BUFS support
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/coda.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 5612329f9ef7..f82e1c668179 100644 --- a/drivers/media/platform/coda.c +++ b/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, |