ODROID-COMMON: osd: Adjust vertical osd scaler setting

Change-Id: I4d04daf48321b28a30a561ef30a87cdba2fbc7cc
This commit is contained in:
Joy Cho
2021-01-04 17:57:54 +09:00
committed by Chris
parent 9ac7382ab2
commit c796bc6aef

View File

@@ -7144,7 +7144,12 @@ static void osd_set_freescale(u32 index,
else
osd_hw.free_scale[index].h_enable = 0;
if (dst_height > 1080)
/*
* On amlogic hwcomposer, fb size is limited to 1920x1080
* in case of higher resolution over 2560x1080.
* Other cases, native vertical size is used.
*/
if ((dst_height > 1080) && (dst_width >= 2560))
osd_hw.free_scale[index].v_enable = 1;
else
osd_hw.free_scale[index].v_enable = 0;