osd: support dim color debugging and blank functions for legacy viu2 osd [1/1]

PD#SWPL-145446

Problem:
dim color debugging and blank functions are not supported

Solution:
add this support

Verify:
t5d

Change-Id: Iceebb81648264e96848adb9d2a870ecc5c5fc30e
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
This commit is contained in:
Jian Cao
2023-11-30 15:11:12 +08:00
committed by gerrit autosubmit
parent ba72e92731
commit f5d6a3a083
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -4468,6 +4468,8 @@ static struct device_attribute osd_attrs_viu2[] = {
show_fence_count, NULL),
__ATTR(game_mode, 0644,
show_game_mode, store_game_mode),
__ATTR(force_dim, 0644,
show_force_dimm, store_force_dimm),
};
#ifdef CONFIG_PM
+6
View File
@@ -13603,6 +13603,12 @@ static void osd_setting_viux(u32 output_index)
osd_hw.reg[OSD_ENABLE]
.update_func(index);
}
/* if osd is disabled, use black dim color */
if (osd_hw.enable[index] == DISABLE) {
osd_hw.dim_layer[index] = 1;
osd_hw.dim_color[index] = 0;
}
if (!osd_hw.dim_layer[index]) {
VSYNCOSD_WR_MPEG_REG(osd_reg->osd_dimm_ctrl,
0x00000000);