]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] v4l2-dv-timings: add support for reduced blanking v2
authorPrashant Laddha <prladdha@cisco.com>
Wed, 10 Jun 2015 16:51:42 +0000 (13:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 6 Jul 2015 11:25:49 +0000 (08:25 -0300)
commit5fea1bb703c360f323c62f6d34b5e947d0590e80
tree4e642dc86404ba2441f412d6e5d9d035a5052c3d
parent30533ad10b7c3d7c05b757382aee28458167ab75
[media] v4l2-dv-timings: add support for reduced blanking v2

Added support for reduced blanking version 2 (RB v2) in cvt timings.
Standard specifies a fixed vsync pulse of 8 lines to indicate RB v2
timings. Vertical back porch is fixed at 6 lines and vertical front
porch is remainder of vertical blanking time.

For RB v2, horizontal blanking is fixed at 80 pixels. Horizontal sync
is fixed at 32. All horizontal timing counts (active pixels, front,
back porches) can be specified upto a precision of 1.

RB v2 allows for non standard aspect ratios. In RB v2 vsync does not
indicate aspect ratio. In absence of aspect ratio v4l2_detect_cvt()
cannot calculate image width from image height. Hence extending the
v4l2_detect_cvt() to pass image width in case of RB v2.

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