summaryrefslogtreecommitdiff
path: root/drivers/media/platform/vim2m.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2019-01-11 06:43:12 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-01-16 13:43:49 -0500
commit86824694184642a4dc1be0c050df9854da5f51d3 (patch)
tree0246172734b9e696fdc3f29b2dc2a40666555372 /drivers/media/platform/vim2m.c
parent3f122df4a2ba6704ccf51f5caec583443514644f (diff)
media: vim2m: the v4l2_m2m_buf_copy_data args were swapped
The buffer arguments to v4l2_m2m_buf_copy_data args were swapped. The reason is confusing naming conventions in vim2m. It certainly could be improved. Fixes: 7aca565ee3d0 ("media: vim2m: use v4l2_m2m_buf_copy_data") Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/vim2m.c')
-rw-r--r--drivers/media/platform/vim2m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c
index 33397d4a1402..a7a152fb3075 100644
--- a/drivers/media/platform/vim2m.c
+++ b/drivers/media/platform/vim2m.c
@@ -241,7 +241,7 @@ static int device_process(struct vim2m_ctx *ctx,
out_vb->sequence =
get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE)->sequence++;
in_vb->sequence = q_data->sequence++;
- v4l2_m2m_buf_copy_data(out_vb, in_vb, true);
+ v4l2_m2m_buf_copy_data(in_vb, out_vb, true);
switch (ctx->mode) {
case MEM2MEM_HFLIP | MEM2MEM_VFLIP: