mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
media: osd: Limit android fb size to 1920x1080
On Android, higher framebuffer over 1920x1080 will be limited to 1920x1080 except 2560x1080 and osd driver needs to scale the size to fit in actual hdmi output resolution. Change-Id: I7ea24fb3f3d162b87a8a5b43af70d9ca7e5442fc
This commit is contained in:
@@ -6846,15 +6846,21 @@ static void osd_set_freescale(u32 index,
|
||||
dst_height = osd_hw.free_dst_data[index].y_end -
|
||||
osd_hw.free_dst_data[index].y_start + 1;
|
||||
|
||||
/*
|
||||
* On Android, higher framebuffer size over 1920x1080
|
||||
* will be limited to 1920x1080
|
||||
* and osd driver needs to scale the size
|
||||
* to fit in actual hdmi output resolution.
|
||||
*/
|
||||
if (dst_width > 1920)
|
||||
osd_hw.free_scale[index].h_enable = 1;
|
||||
else
|
||||
osd_hw.free_scale[index].h_enable = 0;
|
||||
|
||||
if (dst_height < 2160)
|
||||
osd_hw.free_scale[index].v_enable = 0;
|
||||
else
|
||||
if (dst_height > 1080)
|
||||
osd_hw.free_scale[index].v_enable = 1;
|
||||
else
|
||||
osd_hw.free_scale[index].v_enable = 0;
|
||||
|
||||
osd_hw.free_scale_enable[index] =
|
||||
(((osd_hw.free_scale[index].h_enable << 16) & 0xffff0000)
|
||||
|
||||
Reference in New Issue
Block a user