aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-05-28 08:23:48 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-05-28 08:23:48 +0200
commitd7d42f2c7bc7d228788149741201cac518e317b7 (patch)
treefda64d00662b67d747e5c5bd4cbaa4c3644ba7a8
parent172709e735382a59c1a9006278e8ed8d33616392 (diff)
cec-compliance: skip warning if audio_out_delay is 1
The warning about an invalid audio_out_delay was shown even if the value was valid (1). Check if it is != 1 first. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/cec-compliance/cec-test-audio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/cec-compliance/cec-test-audio.cpp b/utils/cec-compliance/cec-test-audio.cpp
index 27c3e014..c64b4a73 100644
--- a/utils/cec-compliance/cec-test-audio.cpp
+++ b/utils/cec-compliance/cec-test-audio.cpp
@@ -60,7 +60,7 @@ static int dal_request_current_latency(struct node *node, unsigned me, unsigned
// reserved values.
if (audio_out_delay == 0 || audio_out_delay > 251)
warn("Audio out delay is set to a reserved value (%d), set it to 1 instead (recommended value when this field is unused).\n", audio_out_delay);
- else
+ else if (audio_out_delay != 1)
warn("Audio out delay is %d (%dms), but value 1 is recommended when this field is unused.\n",
audio_out_delay, (audio_out_delay - 1) * 2);
}

Privacy Policy