dv: need update the right osd size for core2 [1/1]

PD#SWPL-14748

Problem:
DV core2 did not update the osd size.

Solution:
monitor the osd size change in dv processing

Verify:
Verifed on U212

Change-Id: Icade183483bd0f12f3d1d5424b38ac97ac1c83d1
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
This commit is contained in:
Brian Zhu
2019-09-30 18:41:33 +08:00
committed by Victor Wan
parent b506506916
commit d5a560e304

View File

@@ -2637,8 +2637,7 @@ static int is_graphic_changed(void)
is_osd_off = false;
ret |= 2;
}
/* do not need to monitor osd change, */
/* because scaler is after dolby core2 */
if ((osd_graphic_width != new_osd_graphic_width) ||
(osd_graphic_height != new_osd_graphic_height)) {
if (debug_dolby & 0x10)
@@ -2647,11 +2646,12 @@ static int is_graphic_changed(void)
osd_graphic_height,
new_osd_graphic_width,
new_osd_graphic_height);
/* ignore osd size change */
/* osd scaler is after dobly core */
/* osd_graphic_width = new_osd_graphic_width; */
/* osd_graphic_height = new_osd_graphic_height; */
/* ret |= 4; */
/* TODO: since tm2 can change osd pps position */
if (!is_osd_off && !is_meson_tm2()) {
osd_graphic_width = new_osd_graphic_width;
osd_graphic_height = new_osd_graphic_height;
ret |= 2;
}
}
return ret;
}