Skip to contentSkip to conversation

cec-follower: check for Routing Information from TV

PATCH New Johan Fjeldtvedt 1 participant 1 message Aug 22, 2016 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cec-follower: check for Routing Information from TV

A TV shall not send a Routing Information message as initiator.

---
 utils/cec-follower/cec-processing.cpp | 6 ++++++
 1 file changed, 6 insertions(+)
utils/cec-follower/cec-processing.cpp +6 -0
index 771eb2d..34d65e4 100644
@@ -408,6 +408,12 @@ static void processMsg(struct node *node, struct cec_msg &msg, unsigned me)
 		dev_info("Stream Path is directed to this device\n");
 		return;
 	}
+	case CEC_MSG_ROUTING_INFORMATION: {
+		__u8 la = cec_msg_initiator(&msg);
+
+		if (cec_has_tv(1 << la) && la_info[la].phys_addr == 0)
+			warn("TV (0) at 0.0.0.0 sent Routing Information.");
+	}
 
 
 		/* System Information */
Signature · 1 line
2.7.4