[media] v4l2-pci-skeleton.c: fix alternate field handling
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 11 Apr 2014 08:02:29 +0000 (05:02 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 16 Apr 2014 21:54:30 +0000 (18:54 -0300)
commit5f26f2501b81190b60a0b72d611668fb6a59dd24
treea46059b71f8e277b4fcef7c5e5a0d2b2ae148159
parentb050b29e071a0b11262ad513700ab073f58c45b2
[media] v4l2-pci-skeleton.c: fix alternate field handling

For interlaced HDTV timings the correct field setting is FIELD_ALTERNATE,
not INTERLACED. Update this template driver accordingly:

- add check for the invalid combination of read() and FIELD_ALTERNATE.
- in the interrupt handler set v4l2_buffer field to alternating TOP and
  BOTTOM.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Documentation/video4linux/v4l2-pci-skeleton.c