aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-03-18 11:09:38 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-03-18 11:09:38 +0100
commit51d148f97e241806f6c6985077012937c7b7d1c0 (patch)
tree280096bfcf5dd7fd357abbe7d61925342c8dd5c3
parent49d9921c0606d3acfef214901542bd2e90b17ef3 (diff)
cec-ctl: don't transmit IMAGE_VIEW_ON every second
If the HPD was low, then the power cycle stress tests would transmit an IMAGE_VIEW_ON message every second. It shouldn't do this: the --test-power-cycle already repeats IMAGE_VIEW_ON once if the first attempt failed, and --stress-test-power-cycle now has the 'repeats' sub-option if more attempts are needed. But for a properly designed display multiple attempts should not be needed. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/cec-ctl/cec-ctl.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp
index 4838a3db..9a6f15d0 100644
--- a/utils/cec-ctl/cec-ctl.cpp
+++ b/utils/cec-ctl/cec-ctl.cpp
@@ -1270,11 +1270,6 @@ static void test_power_cycle(struct node &node, unsigned int max_tries,
if (++tries > max_tries)
break;
sleep(1);
- doioctl(&node, CEC_ADAP_G_LOG_ADDRS, &laddrs);
- if (laddrs.log_addr[0] != CEC_LOG_ADDR_INVALID)
- continue;
-
- doioctl(&node, CEC_TRANSMIT, &msg);
}
if (tries > max_tries) {
@@ -1311,11 +1306,6 @@ static void test_power_cycle(struct node &node, unsigned int max_tries,
break;
}
sleep(1);
- doioctl(&node, CEC_ADAP_G_LOG_ADDRS, &laddrs);
- if (laddrs.log_addr[0] != CEC_LOG_ADDR_INVALID)
- continue;
-
- doioctl(&node, CEC_TRANSMIT, &msg);
}
}
printf(" %d second%s\n", tries, tries == 1 ? "" : "s");
@@ -1503,11 +1493,6 @@ static void stress_test_power_cycle(struct node &node,
break;
}
sleep(1);
- doioctl(&node, CEC_ADAP_G_LOG_ADDRS, &laddrs);
- if (laddrs.log_addr[0] != CEC_LOG_ADDR_INVALID)
- continue;
-
- doioctl(&node, CEC_TRANSMIT, &msg);
}
if (tries <= max_tries)
break;

Privacy Policy