This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: cec-compliance: get_power_status(): check cec_msg_status_is_abort Author: Hans Verkuil <[email protected]> Date: Thu Jun 22 11:47:27 2023 +0200 A FEATURE ABORT is a successful reply, but still means that the power status isn't available, so call cec_msg_status_is_abort() to avoid continuing if the reply was a Feature Abort. Signed-off-by: Hans Verkuil <[email protected]> utils/cec-compliance/cec-test-power.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=16e70e28584c3462b4a0745266cecc39d1fbb945 diff --git a/utils/cec-compliance/cec-test-power.cpp b/utils/cec-compliance/cec-test-power.cpp index 1e485f42a4f4..6ab9b1e36cc0 100644 --- a/utils/cec-compliance/cec-test-power.cpp +++ b/utils/cec-compliance/cec-test-power.cpp @@ -26,7 +26,8 @@ static bool get_power_status(struct node *node, unsigned me, unsigned la, __u8 & power_status = CEC_OP_POWER_STATUS_STANDBY; return true; } - if (res || !(msg.tx_status & CEC_TX_STATUS_OK) || !(msg.rx_status & CEC_RX_STATUS_OK)) + if (res || !(msg.tx_status & CEC_TX_STATUS_OK) || !(msg.rx_status & CEC_RX_STATUS_OK) || + cec_msg_status_is_abort(&msg)) return false; cec_ops_report_power_status(&msg, &power_status); return true; _______________________________________________ linuxtv-commits mailing list [email protected] https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
