projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
627530c
)
[media] em28xx-v4l: fix video buffer field order reporting in progressive mode
author
Frank Schaefer
<
[email protected]
>
Sat, 9 Aug 2014 09:37:21 +0000
(06:37 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Thu, 21 Aug 2014 20:25:38 +0000
(15:25 -0500)
The correct field order in progressive mode is V4L2_FIELD_NONE, not V4L2_FIELD_INTERLACED.
Cc: <
[email protected]
>
Signed-off-by: Frank Schäfer <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/usb/em28xx/em28xx-video.c
patch
|
blob
|
history
diff --git
a/drivers/media/usb/em28xx/em28xx-video.c
b/drivers/media/usb/em28xx/em28xx-video.c
index 9db219d513dbab5c5b3cf8027c3152ac38e0460e..f6cf99fa30b28d9592ff14b7626f88dac0d472a5 100644
(file)
--- a/
drivers/media/usb/em28xx/em28xx-video.c
+++ b/
drivers/media/usb/em28xx/em28xx-video.c
@@
-435,7
+435,10
@@
static inline void finish_buffer(struct em28xx *dev,
em28xx_isocdbg("[%p/%d] wakeup\n", buf, buf->top_field);
buf->vb.v4l2_buf.sequence = dev->v4l2->field_count++;
- buf->vb.v4l2_buf.field = V4L2_FIELD_INTERLACED;
+ if (dev->v4l2->progressive)
+ buf->vb.v4l2_buf.field = V4L2_FIELD_NONE;
+ else
+ buf->vb.v4l2_buf.field = V4L2_FIELD_INTERLACED;
v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp);
vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE);