[media] cx88: v4l2-compliance fixes
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 3 Apr 2015 10:22:40 +0000 (07:22 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 1 May 2015 09:59:03 +0000 (06:59 -0300)
commit9450684b7439202f62a37183104b31d884ff0de3
tree568825b63319930f481d261bfe8b6ca58700b942
parent6752d73046bb54efa04afd1072dd3c283aba01f2
[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>
drivers/media/pci/cx88/cx88-core.c
drivers/media/pci/cx88/cx88-mpeg.c
drivers/media/pci/cx88/cx88-vbi.c
drivers/media/pci/cx88/cx88-video.c
drivers/media/pci/cx88/cx88.h