Commit 86824694 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

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: 7aca565e ("media: vim2m: use v4l2_m2m_buf_copy_data")
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 3f122df4
...@@ -241,7 +241,7 @@ static int device_process(struct vim2m_ctx *ctx, ...@@ -241,7 +241,7 @@ static int device_process(struct vim2m_ctx *ctx,
out_vb->sequence = out_vb->sequence =
get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE)->sequence++; get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE)->sequence++;
in_vb->sequence = q_data->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) { switch (ctx->mode) {
case MEM2MEM_HFLIP | MEM2MEM_VFLIP: case MEM2MEM_HFLIP | MEM2MEM_VFLIP:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment