diff --git a/drivers/amlogic/media/osd/osd_fb.c b/drivers/amlogic/media/osd/osd_fb.c index 77724e5571f4..0bec6097851d 100644 --- a/drivers/amlogic/media/osd/osd_fb.c +++ b/drivers/amlogic/media/osd/osd_fb.c @@ -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)