upstream: [media] v4l2-dv-timings: fix GTF calculation
authorMartin Bugge <marbugge@cisco.com>
Thu, 23 Jan 2014 09:40:00 +0000 (06:40 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:26:25 +0000 (14:26 +0900)
commitbeee126652e31f15d6cac17c3d4eccdd78955194
treeb05b7b718fe01cfc8d6603fed1259734aefb75a5
parent4edbfd6b3ef4e4dbccf21eee35da8d6f3ae9b5b5
upstream: [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