aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-04-24 09:33:33 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2018-04-24 09:33:33 +0200
commit9efc4a32405286255269c459deb119eb07d6298b (patch)
tree315c6ba03370815d7ef68cdf2459c602eb5b8851 /utils/cec-compliance
parent9a4acdbe53884e5a433c1295eead61e45b0718e7 (diff)
cec-compliance: improve standby_resume_active_source_nowake
This shouldn't be CEC 2.0 specific, it is also valid for 1.4. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/cec-compliance')
-rw-r--r--utils/cec-compliance/cec-test-power.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/cec-compliance/cec-test-power.cpp b/utils/cec-compliance/cec-test-power.cpp
index 0868b769..ccea49ce 100644
--- a/utils/cec-compliance/cec-test-power.cpp
+++ b/utils/cec-compliance/cec-test-power.cpp
@@ -376,15 +376,18 @@ static int standby_resume_active_source_nowake(struct node *node, unsigned me, u
node->remote[la].in_standby = false;
- /* In CEC 2.0 it is specified that a device shall not go out of standby
- if an Active Source message is received. */
+ /*
+ * In CEC 2.0 it is specified that a device shall not go out of standby
+ * if an Active Source message is received. The CEC 1.4 implies this as
+ * well, even though it is not as clear about this as the 2.0 spec.
+ */
announce("Sending Active Source message.");
cec_msg_init(&msg, me, la);
cec_msg_active_source(&msg, node->phys_addr);
int res = doioctl(node, CEC_TRANSMIT, &msg);
fail_on_test(res && res != ENONET);
fail_on_test(wait_changing_power_status(node, me, la, new_status, unresponsive_time));
- fail_on_test_v2_warn(node->remote[la].cec_version, new_status != CEC_OP_POWER_STATUS_STANDBY);
+ fail_on_test(new_status != CEC_OP_POWER_STATUS_STANDBY);
node->remote[la].in_standby = true;
if (unresponsive_time > 0)
warn("The device stayed correctly in standby, but became unresponsive for %d s.\n",

Privacy Policy