welp.. I made a branch, made the change, pushed it to my repo, made a PR and it included a bunch of other commits too. some of them have already been accepted, so I'm not sure what is going on.
I can't figure out how to do a PR with just this one fix. Can you do it? On Mon, Sep 9, 2019 at 4:49 AM Rohit Kumar Singh <rohit91.2...@gmail.com> wrote: > Hi Carl, > > As far as I can tell, the code of the hdmi_in1 is ideally the correct one. > > Reason: The highlighted part (wprint) depends on a peripheral (frequency > detector) which may or may not be present in the gateware. So, we include > the printf code only if that peripheral (frequency detector for HDMI_IN1) > is present in the gateware. > > #ifdef CSR_HDMI_IN1_FREQ_BASE > *wprintf(" (@" REFRESH_RATE_PRINTF " MHz)",* > *REFRESH_RATE_PRINTF_ARGS(hdmi_in1_freq_value_read() / 10000));* > #endif > > Whereas the `hdmi_in1_status()` section of code is dependent on whether > `CSR_HDMI_IN1_BASE` > is defined or not. > > Thanks! > > Best regards, > Rohit > > > On Mon, Sep 9, 2019 at 3:22 AM Carl Karsten <c...@nextdayvideo.com> wrote: > >> 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 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 >> 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 >> <https://groups.google.com/d/msgid/hdmi2usb/CADmzSSh71DtAaSnt1PqDc_dkT-0-yz4xVzOOXCpSD%2BAaN_0Fnw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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/CANE3fL4EBd_nGR%3DveFsh%2BscnD8D0zichmyc8RmYxCCuWxehBYA%40mail.gmail.com > <https://groups.google.com/d/msgid/hdmi2usb/CANE3fL4EBd_nGR%3DveFsh%2BscnD8D0zichmyc8RmYxCCuWxehBYA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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/CADmzSSgC_CQo_ua3sZSrFJw9LDw4%3DeDEXWUKjY3EGp0a07_SFg%40mail.gmail.com.