aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/v4l2-core/v4l2-mem2mem.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/media/v4l2-core/v4l2-mem2mem.c b/drivers/media/v4l2-core/v4l2-mem2mem.c
index 9ac39b5d5830..a756170dbe7b 100644
--- a/drivers/media/v4l2-core/v4l2-mem2mem.c
+++ b/drivers/media/v4l2-core/v4l2-mem2mem.c
@@ -372,6 +372,20 @@ int v4l2_m2m_dqbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
372EXPORT_SYMBOL_GPL(v4l2_m2m_dqbuf); 372EXPORT_SYMBOL_GPL(v4l2_m2m_dqbuf);
373 373
374/** 374/**
375 * v4l2_m2m_create_bufs() - create a source or destination buffer, depending
376 * on the type
377 */
378int v4l2_m2m_create_bufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
379 struct v4l2_create_buffers *create)
380{
381 struct vb2_queue *vq;
382
383 vq = v4l2_m2m_get_vq(m2m_ctx, create->format.type);
384 return vb2_create_bufs(vq, create);
385}
386EXPORT_SYMBOL_GPL(v4l2_m2m_create_bufs);
387
388/**
375 * v4l2_m2m_expbuf() - export a source or destination buffer, depending on 389 * v4l2_m2m_expbuf() - export a source or destination buffer, depending on
376 * the type 390 * the type
377 */ 391 */