dragonboard: add display type configuration
Signed-off-by: August <mingxin.android@gmail.com>
This commit is contained in:
parent
6e3b26154d
commit
e97e74a527
3 changed files with 23 additions and 1 deletions
|
@ -38,6 +38,15 @@ if [ $nand_activated -eq 1 ]; then
|
|||
|
||||
fi
|
||||
|
||||
display_type=`script_fetch "df_view" "display_type"`
|
||||
echo "got display type is $display_type"
|
||||
if [ $display_type -eq 1 ]; then
|
||||
echo "got hdmi display type"
|
||||
insmod /system/vendor/modules/hdmi.ko
|
||||
else
|
||||
echo "got lcd display type"
|
||||
fi
|
||||
|
||||
# insmod touchscreen driver
|
||||
tp_module_path=`script_fetch "tp" "module_path"`
|
||||
if [ -n "$tp_module_path" ]; then
|
||||
|
|
|
@ -2033,13 +2033,25 @@ static int buildin_tc_init(void)
|
|||
int df_view_init(void)
|
||||
{
|
||||
int ret;
|
||||
int display_type;
|
||||
|
||||
db_msg("directfb view init...\n");
|
||||
df_windows_init();
|
||||
df_view_id = register_view("directfb", &df_view_ops);
|
||||
if (df_view_id == 0)
|
||||
return -1;
|
||||
disp_output_type_t=DISP_OUTPUT_TYPE_LCD;
|
||||
|
||||
if (script_fetch("df_view", "display_type", &display_type, 1)){
|
||||
display_type=0;
|
||||
}
|
||||
|
||||
db_error("display_type is %d\n", display_type);
|
||||
|
||||
if(display_type)
|
||||
disp_output_type_t=DISP_OUTPUT_TYPE_HDMI;
|
||||
else
|
||||
disp_output_type_t=DISP_OUTPUT_TYPE_LCD;
|
||||
|
||||
if(disp_output_type_t==DISP_OUTPUT_TYPE_LCD){
|
||||
db_msg("buildin_tc_init...\n");
|
||||
buildin_tc_init();
|
||||
|
|
|
@ -366,6 +366,7 @@ fps = 10
|
|||
; The string display after test case display_name when test Fail.
|
||||
;-------------------------------------------------------------------------------
|
||||
[df_view]
|
||||
display_type = 1
|
||||
tv_scale_factor = 95
|
||||
manual_menu_name = "手动测试项"
|
||||
auto_menu_name = "自动测试项"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue