From 78b8383a330dce19909413786a4ccb19e8a49442 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 22 Dec 2021 09:44:00 +0900 Subject: [PATCH] ODROID-G12: Fix scale bug for special aspect ratio. The 3840 x 1080 resolution has a problem scaling up for OSD layer. Change-Id: I7baadd1aa34a2332952fc42260f8f3ec766a6ca6 --- drivers/amlogic/media/osd/osd_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/media/osd/osd_hw.c b/drivers/amlogic/media/osd/osd_hw.c index 16cb31320b3b..b4e3672ebb4a 100644 --- a/drivers/amlogic/media/osd/osd_hw.c +++ b/drivers/amlogic/media/osd/osd_hw.c @@ -7149,7 +7149,7 @@ static void osd_set_freescale(u32 index, * in case of higher resolution over 2560x1080. * Other cases, native vertical size is used. */ - if ((dst_height > 1080) && (dst_width >= 2560)) + if ((dst_height >= 1080) && (dst_width >= 2560)) osd_hw.free_scale[index].v_enable = 1; else osd_hw.free_scale[index].v_enable = 0;