[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:

committed by
Mauro Carvalho Chehab

parent
7f68127fa1
commit
eacf8f9aa8
@@ -445,10 +445,8 @@ static int ad9389b_log_status(struct v4l2_subdev *sd)
|
||||
}
|
||||
if (state->dv_timings.type == V4L2_DV_BT_656_1120) {
|
||||
struct v4l2_bt_timings *bt = bt = &state->dv_timings.bt;
|
||||
u32 frame_width = bt->width + bt->hfrontporch +
|
||||
bt->hsync + bt->hbackporch;
|
||||
u32 frame_height = bt->height + bt->vfrontporch +
|
||||
bt->vsync + bt->vbackporch;
|
||||
u32 frame_width = V4L2_DV_BT_FRAME_WIDTH(bt);
|
||||
u32 frame_height = V4L2_DV_BT_FRAME_HEIGHT(bt);
|
||||
u32 frame_size = frame_width * frame_height;
|
||||
|
||||
v4l2_info(sd, "timings: %ux%u%s%u (%ux%u). Pix freq. = %u Hz. Polarities = 0x%x\n",
|
||||
|
Reference in New Issue
Block a user