aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-25 09:29:59 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-25 09:29:59 +0100
commit495e916cddb25e45eaa27ab47331c124385cb28f (patch)
tree17834950a07c3024b3404eade342bdad8661c85c
parent5da0a28799f730f8f795ebdc06de633de5237aea (diff)
cec-compliance: fix audio output delay check
The check for invalid audio output delay values should only take place if the audio output is partially compensated by the TV. Only if that's true is the audio output delay value used. 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 edd5ef3f..8611350e 100644
--- a/utils/cec-compliance/cec-test-audio.cpp
+++ b/utils/cec-compliance/cec-test-audio.cpp
@@ -51,8 +51,10 @@ static int dal_request_current_latency(struct node *node, unsigned me, unsigned
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 (%dms)\n", audio_out_delay, (audio_out_delay - 1) * 2);
- fail_on_test(audio_out_delay == 0 || audio_out_delay > 251);
+ if (audio_out_compensated == CEC_OP_AUD_OUT_COMPENSATED_PARTIAL_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