mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
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:
committed by
gerrit autosubmit
parent
ba72e92731
commit
f5d6a3a083
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user