Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
do not check hdmi in source if quickly enter hdmi in mode after power on
  • Loading branch information
Ligen94 committed Feb 26, 2025
commit 6ae0608719ebec2f62005ed93bb079638b3389a8
16 changes: 8 additions & 8 deletions src/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ void start_running(void) {
g_source_info.source = SOURCE_AV_IN;
} else { // HDMI in
sleep(2);
g_source_info.hdmi_in_status = IT66021_Sig_det();
if (g_source_info.hdmi_in_status) {
app_switch_to_hdmi_in();
g_source_info.source = SOURCE_HDMI_IN;
} else {
g_source_info.source = SOURCE_HDZERO;
app_state_push(APP_STATE_MAINMENU);
}
// g_source_info.hdmi_in_status = IT66021_Sig_det();
// if (g_source_info.hdmi_in_status) {
app_switch_to_hdmi_in();
g_source_info.source = SOURCE_HDMI_IN;
//} else {
// g_source_info.source = SOURCE_HDZERO;
// app_state_push(APP_STATE_MAINMENU);
//}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/driver/hardware.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ void hw_stat_init() {
g_hw_stat.av_valid[0] = g_hw_stat.av_valid[1] = 0;

g_hw_stat.hdmiin_valid = 0;
g_hw_stat.hdmiin_vtmg = HDMIIN_VTMG_UNKNOW;
g_hw_stat.hdmiin_vtmg = HDMIIN_VTMG_1080P50;
g_hw_stat.IS_TP2825_L = 0;

pthread_mutex_init(&hardware_mutex, NULL);
Expand Down