[media] v4l2: use new V4L2_DV_BT_BLANKING/FRAME defines
Use the new defines to calculate the full blanking and frame sizes. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Scott Jiang <scott.jiang.linux@gmail.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:

gecommit door
Mauro Carvalho Chehab

bovenliggende
7f68127fa1
commit
eacf8f9aa8
@@ -690,10 +690,8 @@ static int vidioc_query_dv_timings(struct file *file, void *_fh,
|
||||
unsigned vsize;
|
||||
unsigned fps;
|
||||
|
||||
hsize = bt->hfrontporch + bt->hsync + bt->hbackporch + bt->width;
|
||||
vsize = bt->vfrontporch + bt->vsync + bt->vbackporch +
|
||||
bt->il_vfrontporch + bt->il_vsync + bt->il_vbackporch +
|
||||
bt->height;
|
||||
hsize = V4L2_DV_BT_FRAME_WIDTH(bt);
|
||||
vsize = V4L2_DV_BT_FRAME_HEIGHT(bt);
|
||||
fps = (unsigned)bt->pixelclock / (hsize * vsize);
|
||||
if (bt->width != vid_info.width ||
|
||||
bt->height != vid_info.height ||
|
||||
|
Verwijs in nieuw issue
Block a user