No idea if this is a problem, I'm just skimming code and noticed the status
code is not the same for hdmi_in0 and hdmi_in1
The #endif is in a different place:

clearly see it here:
https://github.com/timvideos/HDMI2USB-litex-firmware/blob/master/firmware/ci.c#L465
https://github.com/timvideos/HDMI2USB-litex-firmware/blob/master/firmware/ci.c#L465

kinda see it here:

static void status_print(void)
{
unsigned int underflows;
#ifdef CSR_HDMI_IN0_BASE
wprintf(
"input0: %dx%d",
hdmi_in0_resdetection_hres_read(),
hdmi_in0_resdetection_vres_read());
#ifdef CSR_HDMI_IN0_FREQ_BASE
wprintf(" (@" REFRESH_RATE_PRINTF " MHz)",
REFRESH_RATE_PRINTF_ARGS(hdmi_in0_freq_value_read() / 10000));
if(hdmi_in0_status()) {
wprintf(" (capturing)");
} else {
wprintf(" (disabled)");
}
#endif
wputchar('\n');
#endif

#ifdef CSR_HDMI_IN1_BASE
wprintf(
"input1: %dx%d",
hdmi_in1_resdetection_hres_read(),
hdmi_in1_resdetection_vres_read());
#ifdef CSR_HDMI_IN1_FREQ_BASE
wprintf(" (@" REFRESH_RATE_PRINTF " MHz)",
REFRESH_RATE_PRINTF_ARGS(hdmi_in1_freq_value_read() / 10000));
#endif
if(hdmi_in1_status()) {
wprintf(" (capturing)");
} else {
wprintf(" (disabled)");
}
wputchar('\n');
#endif


-- 
Carl K

-- 
You received this message because you are subscribed to the Google Groups 
"hdmi2usb - A HDMI capture solution" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hdmi2usb+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/hdmi2usb/CADmzSSh71DtAaSnt1PqDc_dkT-0-yz4xVzOOXCpSD%2BAaN_0Fnw%40mail.gmail.com.

Reply via email to