Skip to content

Commit

Permalink
Merge pull request #490 from ligenxxxx/switch-to-hdmi-in-without-sig-…
Browse files Browse the repository at this point in the history
…det-when-source-is-hdmi-in

do not check hdmi in source if quickly enter hdmi in mode after power on
  • Loading branch information
ligenxxxx authored Mar 4, 2025
2 parents 2dfef69 + 6ae0608 commit 352e2a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
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

0 comments on commit 352e2a7

Please sign in to comment.