aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-12-16 15:00:27 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2016-12-16 15:00:27 +0100
commit5dc0466b93c8f6aa133641cb00fd32f48ae164be (patch)
tree09375253bca21dd9931063d311b50150c62a70c1
parent64bd806b13c07cae66cd41432891f730cfa37d35 (diff)
cec-compliance: remove bogus Menu Status test
This is not a valid test. It's only sent as reply to --menu-request, so sending this message to a remote CEC adapter is meaningless. This only makes sense in the follower, not in the compliance test. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/cec-compliance/cec-test.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/utils/cec-compliance/cec-test.cpp b/utils/cec-compliance/cec-test.cpp
index 88972221..469ba417 100644
--- a/utils/cec-compliance/cec-test.cpp
+++ b/utils/cec-compliance/cec-test.cpp
@@ -577,27 +577,8 @@ static int dev_menu_ctl_request(struct node *node, unsigned me, unsigned la, boo
return 0;
}
-static int dev_menu_ctl_status(struct node *node, unsigned me, unsigned la, bool interactive)
-{
- struct cec_msg msg = {};
-
- cec_msg_init(&msg, me, la);
- cec_msg_menu_status(&msg, CEC_OP_MENU_STATE_ACTIVATED);
- fail_on_test(!transmit_timeout(node, &msg));
- if (unrecognized_op(&msg))
- return NOTSUPPORTED;
- if (refused(&msg))
- return REFUSED;
- if (cec_msg_status_is_abort(&msg))
- return PRESUMED_OK;
- if (node->remote[la].cec_version >= CEC_OP_CEC_VERSION_2_0)
- warn("The Device Menu Control feature is deprecated in CEC 2.0\n");
-
- return 0;
-}
static struct remote_subtest dev_menu_ctl_subtests[] = {
{ "Menu Request", (__u16)~CEC_LOG_ADDR_MASK_TV, dev_menu_ctl_request },
- { "Menu Status", CEC_LOG_ADDR_MASK_TV, dev_menu_ctl_status },
{ "User Control Pressed", CEC_LOG_ADDR_MASK_ALL, rc_passthrough_user_ctrl_pressed },
{ "User Control Released", CEC_LOG_ADDR_MASK_ALL, rc_passthrough_user_ctrl_released },
};

Privacy Policy