]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l2-dv-timings: fix GTF calculation
authorMartin Bugge <marbugge@cisco.com>
Thu, 23 Jan 2014 09:40:00 +0000 (06:40 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 4 Feb 2014 08:45:47 +0000 (06:45 -0200)
commit897ff94e11f21133a15687f091658ce76efbf750
tree524f3a8eb48bd3cac14290c83141b1f4efebc445
parentbb207e9a1d0ead65a7da1e964d67aa162f785532
[media] v4l2-dv-timings: fix GTF calculation

Round off image width to nearest 8 (GTF_CELL_GRAN)

A source sending a GTF (Generalized Timing Formula) format have no means of
signalling image width. The assumed aspect ratio may result in an odd image
width but according to the standard image width should be in multiple of 8.

Cc: Mats Randgaard <matrandg@cisco.com>
Signed-off-by: Martin Bugge <marbugge@cisco.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-dv-timings.c