提交 a94e7d6e 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] vivid: wrong top/bottom order for FIELD_ALTERNATE

The condition to decide whether the current field is top or bottom
was inverted. Fix this.
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 360565fc
...@@ -427,7 +427,7 @@ static void vivid_fillbuff(struct vivid_dev *dev, struct vivid_buffer *buf) ...@@ -427,7 +427,7 @@ static void vivid_fillbuff(struct vivid_dev *dev, struct vivid_buffer *buf)
* standards. * standards.
*/ */
buf->vb.v4l2_buf.field = ((dev->vid_cap_seq_count & 1) ^ is_60hz) ? buf->vb.v4l2_buf.field = ((dev->vid_cap_seq_count & 1) ^ is_60hz) ?
V4L2_FIELD_TOP : V4L2_FIELD_BOTTOM; V4L2_FIELD_BOTTOM : V4L2_FIELD_TOP;
/* /*
* The sequence counter counts frames, not fields. So divide * The sequence counter counts frames, not fields. So divide
* by two. * by two.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册