path: root/utils/cec-compliance
diff options
authorHans Verkuil <hansverk@cisco.com>2018-06-26 13:12:59 +0200
committerHans Verkuil <hansverk@cisco.com>2018-06-26 13:12:59 +0200
commit899a03c51a1043837490b79ad804dbf23723e952 (patch)
tree8eb34e4ed149451b520214fa3577dd6856e6a7a7 /utils/cec-compliance
parentd7f7df0fcff4c133a960febd633b933f74e81fe8 (diff)
cec-compliance: send ACTIVE_SOURCE after IMAGE/TEXT_VIEW_ON
Some devices will ignore a STANDBY command after an IMAGE/TEXT_VIEW_ON if it is received on an input that is not the current input. So transmit an ACTIVE_SOURCE after the display wakes up following an IMAGE/TEXT_VIEW_ON. Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Diffstat (limited to 'utils/cec-compliance')
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/cec-compliance/cec-test-power.cpp b/utils/cec-compliance/cec-test-power.cpp
index 794ba806..e0772cde 100644
--- a/utils/cec-compliance/cec-test-power.cpp
+++ b/utils/cec-compliance/cec-test-power.cpp
@@ -518,6 +518,12 @@ static int standby_resume_wakeup_view_on(struct node *node, unsigned me, unsigne
fail_on_test(!poll_stable_power_status(node, me, la, CEC_OP_POWER_STATUS_ON, unresponsive_time));
fail_on_test(interactive && !question("Is the device in On state?"));
+ struct cec_msg msg = {};
+ cec_msg_init(&msg, me, la);
+ cec_msg_active_source(&msg, node->phys_addr);
+ fail_on_test(!transmit_timeout(node, &msg));
if (unresponsive_time > 0)
warn("The device went correctly out of standby, but became unresponsive for %d s during the transition.\n",

Privacy Policy