aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance/cec-compliance.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-12-07 12:36:36 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2016-12-07 12:36:36 +0100
commit188e604d57bec065078ff772c802b93ddb6def4b (patch)
treefb415f8a6f29e959fad4ce286ace24743b0529f4 /utils/cec-compliance/cec-compliance.h
parent20ded57a085630446857ec4c320d7e4ea9ccb882 (diff)
cec-compliance: only test for has_deck_ctl for playback and record devices
The CEC 2.0 has_deck_ctl tests should only be done for playback and record devices. Other devices do not set that feature. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/cec-compliance/cec-compliance.h')
-rw-r--r--utils/cec-compliance/cec-compliance.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/cec-compliance/cec-compliance.h b/utils/cec-compliance/cec-compliance.h
index d59ec1db..44dc6143 100644
--- a/utils/cec-compliance/cec-compliance.h
+++ b/utils/cec-compliance/cec-compliance.h
@@ -287,6 +287,11 @@ static inline bool is_tv(unsigned la, unsigned prim_type)
(cec_has_specific(1 << la) && prim_type == CEC_OP_PRIM_DEVTYPE_TV);
}
+static inline bool is_playback_or_rec(unsigned la)
+{
+ return cec_has_playback(1 << la) || cec_has_record(1 << la);
+}
+
static inline bool cec_msg_status_is_abort(const struct cec_msg *msg)
{
return msg->rx_status & CEC_RX_STATUS_FEATURE_ABORT;

Privacy Policy