summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2018-10-24 06:51:30 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-01-07 13:16:59 -0500
commit96bddd5ff590e11b47255cf06af5a0d5ccaa7807 (patch)
tree0bf08af94e26c10ace9040c603f19d112735265f
parent7aca565ee3d0febeb980545a5ce72452b401ac90 (diff)
downloadlinux-stable-96bddd5ff590e11b47255cf06af5a0d5ccaa7807.tar.gz
linux-stable-96bddd5ff590e11b47255cf06af5a0d5ccaa7807.tar.bz2
linux-stable-96bddd5ff590e11b47255cf06af5a0d5ccaa7807.zip
media: vicodec: use v4l2_m2m_buf_copy_data
Use the new v4l2_m2m_buf_copy_data() function in vicodec. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--drivers/media/platform/vicodec/vicodec-core.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/media/platform/vicodec/vicodec-core.c b/drivers/media/platform/vicodec/vicodec-core.c
index 0d7876f5acf0..2378582d9790 100644
--- a/drivers/media/platform/vicodec/vicodec-core.c
+++ b/drivers/media/platform/vicodec/vicodec-core.c
@@ -190,18 +190,8 @@ static int device_process(struct vicodec_ctx *ctx,
}
dst_vb->sequence = q_dst->sequence++;
- dst_vb->vb2_buf.timestamp = src_vb->vb2_buf.timestamp;
-
- if (src_vb->flags & V4L2_BUF_FLAG_TIMECODE)
- dst_vb->timecode = src_vb->timecode;
- dst_vb->field = src_vb->field;
dst_vb->flags &= ~V4L2_BUF_FLAG_LAST;
- dst_vb->flags |= src_vb->flags &
- (V4L2_BUF_FLAG_TIMECODE |
- V4L2_BUF_FLAG_KEYFRAME |
- V4L2_BUF_FLAG_PFRAME |
- V4L2_BUF_FLAG_BFRAME |
- V4L2_BUF_FLAG_TSTAMP_SRC_MASK);
+ v4l2_m2m_buf_copy_data(src_vb, dst_vb, !ctx->is_enc);
return 0;
}