diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2013-05-21 03:16:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-03 14:51:26 -0400 |
commit | 8fdf94a254ab2f90ae79b82e56b1f8e9d7582026 (patch) | |
tree | 808e3a779bf53b12cc3677b9d63dac33db18c72f | |
parent | 8b94ca61d7065fa7fa7bdb08ce31a9385be5205b (diff) |
[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>
-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) | |||
571 | return v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf); | 571 | return v4l2_m2m_dqbuf(file, ctx->m2m_ctx, buf); |
572 | } | 572 | } |
573 | 573 | ||
574 | static int vidioc_create_bufs(struct file *file, void *priv, | ||
575 | struct v4l2_create_buffers *create) | ||
576 | { | ||
577 | struct coda_ctx *ctx = fh_to_ctx(priv); | ||
578 | |||
579 | return v4l2_m2m_create_bufs(file, ctx->m2m_ctx, create); | ||
580 | } | ||
581 | |||
574 | static int vidioc_streamon(struct file *file, void *priv, | 582 | static int vidioc_streamon(struct file *file, void *priv, |
575 | enum v4l2_buf_type type) | 583 | enum v4l2_buf_type type) |
576 | { | 584 | { |
@@ -605,6 +613,7 @@ static const struct v4l2_ioctl_ops coda_ioctl_ops = { | |||
605 | 613 | ||
606 | .vidioc_qbuf = vidioc_qbuf, | 614 | .vidioc_qbuf = vidioc_qbuf, |
607 | .vidioc_dqbuf = vidioc_dqbuf, | 615 | .vidioc_dqbuf = vidioc_dqbuf, |
616 | .vidioc_create_bufs = vidioc_create_bufs, | ||
608 | 617 | ||
609 | .vidioc_streamon = vidioc_streamon, | 618 | .vidioc_streamon = vidioc_streamon, |
610 | .vidioc_streamoff = vidioc_streamoff, | 619 | .vidioc_streamoff = vidioc_streamoff, |