aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-follower/cec-processing.cpp
diff options
context:
space:
mode:
authorJiunn Chang <c0d1n61at3@gmail.com>2019-09-09 09:26:53 -0500
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-09-09 16:43:20 +0200
commit76686657fe76453cbdeda4acd2a5be018af22c10 (patch)
treea47f99d38e7df92315beb2cdbcc36e10b58eadce /utils/cec-follower/cec-processing.cpp
parent78953a1166aba23e9a7c40e597a741c7d71a847c (diff)
cec-compliance: rename has_arc_rx, has_arc_tx
Renaming has_arc_rx and has_arc_tx to better match the macros defined in cec.h: - CEC_OP_FEAT_DEV_SOURCE_HAS_ARC_RX - CEC_OP_FEAT_DEV_SINK_HAS_ARC_TX For devices on a HDMI ARC link, sources can only receive ARC and sinks can only transmit ARC. Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> [hverkuil-cisco@xs4all.nl: slight rewording of the commit text]
Diffstat (limited to 'utils/cec-follower/cec-processing.cpp')
-rw-r--r--utils/cec-follower/cec-processing.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index a38f664b..fa7687c9 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -753,7 +753,7 @@ static void processMsg(struct node *node, struct cec_msg &msg, unsigned me)
/* Audio Return Channel Control */
case CEC_MSG_INITIATE_ARC:
- if (node->has_arc_tx) {
+ if (node->sink_has_arc_tx) {
if (!pa_is_upstream_from(node->phys_addr, remote_pa) ||
!pa_are_adjacent(node->phys_addr, remote_pa)) {
cec_msg_reply_feature_abort(&msg, CEC_OP_ABORT_REFUSED);
@@ -769,7 +769,7 @@ static void processMsg(struct node *node, struct cec_msg &msg, unsigned me)
}
break;
case CEC_MSG_TERMINATE_ARC:
- if (node->has_arc_tx) {
+ if (node->sink_has_arc_tx) {
if (!pa_is_upstream_from(node->phys_addr, remote_pa) ||
!pa_are_adjacent(node->phys_addr, remote_pa)) {
cec_msg_reply_feature_abort(&msg, CEC_OP_ABORT_REFUSED);
@@ -785,7 +785,7 @@ static void processMsg(struct node *node, struct cec_msg &msg, unsigned me)
}
break;
case CEC_MSG_REQUEST_ARC_INITIATION:
- if (node->has_arc_rx) {
+ if (node->source_has_arc_rx) {
if (pa_is_upstream_from(node->phys_addr, remote_pa) ||
!pa_are_adjacent(node->phys_addr, remote_pa)) {
cec_msg_reply_feature_abort(&msg, CEC_OP_ABORT_REFUSED);
@@ -800,7 +800,7 @@ static void processMsg(struct node *node, struct cec_msg &msg, unsigned me)
}
break;
case CEC_MSG_REQUEST_ARC_TERMINATION:
- if (node->has_arc_rx) {
+ if (node->source_has_arc_rx) {
if (pa_is_upstream_from(node->phys_addr, remote_pa) ||
!pa_are_adjacent(node->phys_addr, remote_pa)) {
cec_msg_reply_feature_abort(&msg, CEC_OP_ABORT_REFUSED);

Privacy Policy