This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: edid-decode: show the delta in ms since last Ri' change Author: Hans Verkuil <hverk...@xs4all.nl> Date: Fri Jan 17 11:28:30 2025 +0100 When detecting that the Ri' value changed, show how long since the last change in ms. Signed-off-by: Hans Verkuil <hverk...@xs4all.nl> utils/edid-decode/ddc.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=28fedf47cb158afefa9ded863c4798c2371ccaf6 diff --git a/utils/edid-decode/ddc.cpp b/utils/edid-decode/ddc.cpp index d7f6eab5b226..eacea38d919e 100644 --- a/utils/edid-decode/ddc.cpp +++ b/utils/edid-decode/ddc.cpp @@ -462,6 +462,7 @@ static int read_hdcp_ri_register(int adapter_fd, __u16 *v) int read_hdcp_ri(int adapter_fd, double ri_time) { + __u64 last_ts = current_ts(); bool first = true; __u16 ri = 0; @@ -469,13 +470,17 @@ int read_hdcp_ri(int adapter_fd, double ri_time) gettimeofday(&start_timeofday, nullptr); while (1) { + __u64 ts = current_ts(); __u16 last = ri; - printf("Timestamp: %s", ts2s(current_ts()).c_str()); + printf("Timestamp: %s", ts2s(ts).c_str()); if (!read_hdcp_ri_register(adapter_fd, &ri)) printf(" Ri': %04x", ri); - if (!first && ri != last) - printf(" (changed from %04x)", last); + if (!first && ri != last) { + printf(" (changed from %04x after %llu ms)", + last, (ts - last_ts) / 1000000); + last_ts = ts; + } printf("\n"); fflush(stdout); first = false;