]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l2-dv-timings: add interlace support in detect cvt/gtf
authorPrashant Laddha <prladdha@cisco.com>
Fri, 22 May 2015 05:27:34 +0000 (02:27 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 9 Jun 2015 20:44:42 +0000 (17:44 -0300)
commitca47df3cf7e9bc46b21cfb146fb73dacbb662a46
tree0ba7f6cdccf47edc82af869a09783031c292ec7e
parent0e0f975a0da9d35fe7c73074b6ac90961c523c3b
[media] v4l2-dv-timings: add interlace support in detect cvt/gtf

Extend detect_cvt/gtf API to indicate the format type (interlaced
or progressive). In case of interlaced, the vertical front and back
porch and vsync values for both (odd,even) fields are considered to
derive image height. Populated vsync, vertical front, back porch
values in bt timing structure for even and odd fields and updated
the flags appropriately.

Also modified the functions calling the detect_cvt/gtf(). As of now
these functions are calling detect_cvt/gtf() with interlaced flag
set to false.

Cc: Martin Bugge <marbugge@cisco.com>
Cc: Mats Randgaard <matrandg@cisco.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Prashant Laddha <prladdha@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/adv7604.c
drivers/media/i2c/adv7842.c
drivers/media/platform/vivid/vivid-vid-cap.c
drivers/media/v4l2-core/v4l2-dv-timings.c
include/media/v4l2-dv-timings.h