aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-19 08:48:33 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-19 08:48:33 (GMT)
commit4ec24c3d275085de9a15f74b7e73b3d42c723821 (patch)
tree3ce9823d5ce5014bf422e11851ff556815092f40
parent1e2477477bb9513ea89efdb95d1016ef6c3e211a (diff)
cec-compliance: show latencies in ms and check values
Show the audio/video latencies in ms as well, and check that the reported values are not using reserved values. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/cec-compliance/cec-test-audio.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/cec-compliance/cec-test-audio.cpp b/utils/cec-compliance/cec-test-audio.cpp
index 94f50ce..edd5ef3 100644
--- a/utils/cec-compliance/cec-test-audio.cpp
+++ b/utils/cec-compliance/cec-test-audio.cpp
@@ -48,10 +48,12 @@ static int dal_request_current_latency(struct node *node, unsigned me, unsigned
cec_ops_report_current_latency(&msg, &phys_addr, &video_latency, &low_latency_mode,
&audio_out_compensated, &audio_out_delay);
fail_on_test(phys_addr != node->remote[la].phys_addr);
- info("Video latency: %d\n", video_latency);
+ info("Video latency: %d (%dms)\n", video_latency, (video_latency - 1) * 2);
info("Low latency mode: %d\n", low_latency_mode);
info("Audio output compensation: %d\n", audio_out_compensated);
- info("Audio out delay: %d\n", audio_out_delay);
+ info("Audio out delay: %d (%dms)\n", audio_out_delay, (audio_out_delay - 1) * 2);
+ fail_on_test(audio_out_delay == 0 || audio_out_delay > 251);
+ fail_on_test(video_latency == 0 || video_latency > 251);
return 0;
}

Privacy Policy