Skip to content

Commit

Permalink
Include refresh rate in output.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Sep 8, 2015
1 parent 4e9491c commit b6a46d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions firmware/lm32/ci.c
Expand Up @@ -125,9 +125,10 @@ static void status_print(void)
printf("output0: ");
if(hdmi_out0_fi_enable_read())
printf(
"%dx%d from %s",
"%dx%d@%dHz from %s",
processor_h_active,
processor_v_active,
processor_refresh,
processor_get_source_name(processor_hdmi_out0_source));
else
printf("off");
Expand All @@ -136,9 +137,10 @@ static void status_print(void)
printf("output1: ");
if(hdmi_out1_fi_enable_read())
printf(
"%dx%d from %s",
"%dx%d@%uHz from %s",
processor_h_active,
processor_v_active,
processor_refresh,
processor_get_source_name(processor_hdmi_out1_source));
else
printf("off");
Expand Down
1 change: 1 addition & 0 deletions firmware/lm32/processor.c
Expand Up @@ -362,6 +362,7 @@ void processor_start(int mode)
processor_mode = mode;
processor_h_active = m->h_active;
processor_v_active = m->v_active;
processor_refresh = calculate_refresh_rate(m);

hdmi_out0_fi_enable_write(0);
hdmi_out1_fi_enable_write(0);
Expand Down
1 change: 1 addition & 0 deletions firmware/lm32/processor.h
Expand Up @@ -19,6 +19,7 @@ enum {
extern int processor_mode;
int processor_h_active;
int processor_v_active;
int processor_refresh;
int processor_hdmi_out0_source;
int processor_hdmi_out1_source;
int processor_encoder_source;
Expand Down

0 comments on commit b6a46d7

Please sign in to comment.