summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/cx88/cx88-core.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2015-04-03 07:22:40 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-05-01 06:59:03 -0300
commit9450684b7439202f62a37183104b31d884ff0de3 (patch)
tree568825b63319930f481d261bfe8b6ca58700b942 /drivers/media/pci/cx88/cx88-core.c
parent6752d73046bb54efa04afd1072dd3c283aba01f2 (diff)
downloadlinux-stable-9450684b7439202f62a37183104b31d884ff0de3.tar.gz
linux-stable-9450684b7439202f62a37183104b31d884ff0de3.tar.bz2
linux-stable-9450684b7439202f62a37183104b31d884ff0de3.zip
[media] cx88: v4l2-compliance fixes
Fix three v4l2-compliance failures: - the colorspace wasn't set in vidioc_try_fmt_vid_cap(). - the field wasn't set in v4l2_buffer when vb2_buffer_done() was called. - the sequence wasn't set in v4l2_buffer when vb2_buffer_done() was called. This fix also removes the unused buf->count field and starts the count at 0 instead of 1. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/cx88/cx88-core.c')
-rw-r--r--drivers/media/pci/cx88/cx88-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/pci/cx88/cx88-core.c b/drivers/media/pci/cx88/cx88-core.c
index 3501be9f19d8..aab7cf4c9825 100644
--- a/drivers/media/pci/cx88/cx88-core.c
+++ b/drivers/media/pci/cx88/cx88-core.c
@@ -519,6 +519,8 @@ void cx88_wakeup(struct cx88_core *core,
buf = list_entry(q->active.next,
struct cx88_buffer, list);
v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp);
+ buf->vb.v4l2_buf.field = core->field;
+ buf->vb.v4l2_buf.sequence = q->count++;
list_del(&buf->list);
vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE);
}