aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance
diff options
context:
space:
mode:
authorHans Verkuil <hansverk@cisco.com>2018-03-01 14:38:15 +0100
committerHans Verkuil <hansverk@cisco.com>2018-03-01 14:38:15 +0100
commitff14bf4192d28408afefb968b36850dc5ee19f53 (patch)
treeef40b4364e74bd91ad1a97a2ddf8d19afeac5d54 /utils/cec-compliance
parent9277ce4c18b609e72f938bc7bb0238dac0d50c9b (diff)
cec-compliance: don't poll, just send Image View On
If the PA is invalid, then we attempt to wake up the display by sending Image View On. Don't send a poll first as this can confuse the display. Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Diffstat (limited to 'utils/cec-compliance')
-rw-r--r--utils/cec-compliance/cec-compliance.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/cec-compliance/cec-compliance.cpp b/utils/cec-compliance/cec-compliance.cpp
index e0e8266d..099d9e08 100644
--- a/utils/cec-compliance/cec-compliance.cpp
+++ b/utils/cec-compliance/cec-compliance.cpp
@@ -1288,17 +1288,16 @@ int main(int argc, char **argv)
/*
* Special corner case: if PA is invalid, then you can still try
- * to poll a TV. If found, try to wake it up.
+ * to wake up a TV.
*/
cec_msg_init(&msg, CEC_LOG_ADDR_UNREGISTERED, CEC_LOG_ADDR_TV);
+ cec_msg_image_view_on(&msg);
fail_on_test(doioctl(&node, CEC_TRANSMIT, &msg));
if (msg.tx_status & CEC_TX_STATUS_OK) {
time_t cnt = 0;
- cec_msg_image_view_on(&msg);
- fail_on_test(doioctl(&node, CEC_TRANSMIT, &msg));
- while ((msg.tx_status & CEC_TX_STATUS_OK) && cnt++ <= long_timeout) {
+ while (cnt++ <= long_timeout) {
fail_on_test(doioctl(&node, CEC_ADAP_G_PHYS_ADDR, &node.phys_addr));
if (node.phys_addr != CEC_PHYS_ADDR_INVALID) {
doioctl(&node, CEC_ADAP_G_LOG_ADDRS, &laddrs);

Privacy Policy