aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-03-08 10:14:23 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2018-03-08 10:14:23 +0100
commit362241b6350b30238e7b45f79c5842b4d27e987b (patch)
treefffd2c04190dc09f8059fe8625849b4cc1deef3f /utils/cec-compliance
parent93dc5f20727fede5097d67f8b9adabe4b8046d5b (diff)
cec-compliance: remove outdated comment
The comment about waiting X seconds before sending Image View On was outdated. Just remove it. The other comment explaining why we send Image View On was moved up a few lines to just before where we create the CEC message instead of where we call the CEC_TRANSMIT ioctl. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/cec-compliance')
-rw-r--r--utils/cec-compliance/cec-compliance.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/utils/cec-compliance/cec-compliance.cpp b/utils/cec-compliance/cec-compliance.cpp
index 099d9e08..286035fc 100644
--- a/utils/cec-compliance/cec-compliance.cpp
+++ b/utils/cec-compliance/cec-compliance.cpp
@@ -817,19 +817,15 @@ static bool wait_for_hpd(struct node *node, bool send_image_view_on)
break;
}
- /*
- * If the HPD doesn't return after TX_WAIT_FOR_HPD seconds,
- * then send a IMAGE_VIEW_ON message (if possible).
- */
if (send_image_view_on && time(NULL) - t > TX_WAIT_FOR_HPD) {
struct cec_msg image_view_on_msg;
- cec_msg_init(&image_view_on_msg, CEC_LOG_ADDR_UNREGISTERED,
- CEC_LOG_ADDR_TV);
- cec_msg_image_view_on(&image_view_on_msg);
// So the HPD is gone (possibly due to a standby), but
// some TVs still have a working CEC bus, so send Image
// View On to attempt to wake it up again.
+ cec_msg_init(&image_view_on_msg, CEC_LOG_ADDR_UNREGISTERED,
+ CEC_LOG_ADDR_TV);
+ cec_msg_image_view_on(&image_view_on_msg);
doioctl(node, CEC_TRANSMIT, &image_view_on_msg);
send_image_view_on = false;
}

Privacy Policy