video_composer: enable low latency mode for drm. [1/1]

PD#SWPL-173202

Problem:
the delay time for sending the display needs to be optimized.

Solution:
enable low latency mode for drm.

Verify:
S7D

Change-Id: I94e1dd453228f70cf9db29f954e89dcfdb3f7271
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
This commit is contained in:
zhenteng.tian
2024-06-17 16:16:04 +08:00
committed by gerrit autosubmit
parent c969770190
commit 840abb827f
3 changed files with 4 additions and 2 deletions
@@ -66,7 +66,7 @@
#define ADDR_VALUE_8G 0x200000000
static u32 use_low_latency;
u32 use_low_latency;
MODULE_PARM_DESC(use_low_latency, "\n use_low_latency\n");
module_param(use_low_latency, uint, 0664);
@@ -1637,7 +1637,8 @@ int video_display_setframe(int layer_index,
}
ready_count = kfifo_len(&dev->ready_q);
vc_print(layer_index, PRINT_OTHER, "%s: ready_q count is %d.\n", __func__, ready_count);
if (use_low_latency && dev->index == 0)
proc_lowlatency_frame(0);
return 0;
}
EXPORT_SYMBOL(video_display_setframe);
@@ -32,6 +32,7 @@ extern u32 vd_max_hold_count;
extern u32 vd_set_frame_delay[];
extern struct vframe_s *current_display_vf;
extern u32 vpp_drop_count;
extern u32 use_low_latency;
extern u32 vd_test_fps[MAX_VD_LAYERS];
extern u64 vd_test_fps_val[MAX_VD_LAYERS];
extern u64 vd_test_vsync_val[MAX_VD_LAYERS];