[PATCH] cec-follower: check for Routing Information from TV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Johan Fjeldtvedt <jaffe1@xxxxxxxxx>
---
 utils/cec-follower/cec-processing.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index 771eb2d..34d65e4 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -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 */
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux