osd: Update overscan logic at booting stage

Change-Id: I0df7d807e55452604b228a46df9e83027ef19211
This commit is contained in:
Joy Cho
2019-03-20 11:12:26 +09:00
parent f7300ee716
commit 2c85c1f633

View File

@@ -424,14 +424,18 @@ static void osd_set_fb_parameters(int index, const struct vinfo_s *vinfo)
osd_set_free_scale_mode_hw(index, 1);
osd_set_free_scale_axis_hw(index, 0, 0,
(vinfo->width - 1), (vinfo->height - 1));
/* OVERSCAN */
overscan_window(vinfo, overscan_ratio, &left, &top, &width, &height);
osd_set_window_axis_hw(index, left, top, width, height);
osd_set_free_scale_enable_hw(index, 0x10001);
if (overscan_ratio == 100) {
osd_set_window_axis_hw(index, 0, 0,
(vinfo->width - 1), (vinfo->height - 1));
} else {
/* OVERSCAN */
overscan_window(vinfo, overscan_ratio,
&left, &top, &width, &height);
osd_set_window_axis_hw(index, left, top, width, height);
osd_set_free_scale_enable_hw(index, 0x10001);
}
osd_enable_hw(index, 1);
}
static int __init overscan_setup(char *str)