media: vivid: Fix V4L2_FIELD_ALTERNATE new frame check
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 20 Jul 2018 14:09:16 +0000 (10:09 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 27 Jul 2018 11:51:09 +0000 (07:51 -0400)
commit43bd1dce39cea87a75e8691aad4ce11a9b457d8e
treee8249a7b6d66a33f1f076f8df8d40e1478d0df17
parent915ffab02193371e99453ac94160d69ef58273bc
media: vivid: Fix V4L2_FIELD_ALTERNATE new frame check

The vivid driver will overlay stream time on generated frames. Though,
in interlacing mode V4L2_FIELD_ALTERNATE, each field is separate and
must have the same time to ensure proper render. Though, this time was
only updated every 2 frames as the code was checking against the wrong
counter (frame counter rather then field counter).

Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vivid/vivid-kthread-cap.c