mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
osd: Update overscan logic at booting stage
Change-Id: I0df7d807e55452604b228a46df9e83027ef19211
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user