aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-follower/cec-processing.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-02-16 12:01:07 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2017-02-22 12:22:53 -0800
commit27b8492c4b9e33f2080a69364ebe9a1a4e92601d (patch)
treeb8e7609f8859eea0263eb740685caf25016496da /utils/cec-follower/cec-processing.cpp
parentbffb0f1448db4e3c20bc82b2118174cea10d87c4 (diff)
cec: fix wrong initiator of poll messages
The initiator of a poll message should be the current logical address, not 0xf. Note: due to a bug in the CEC framework in kernels 4.8 and 4.9 this fails for those kernels. Starting with kernel 4.10 (when the CEC framework was moved out of staging) this has been fixed. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/cec-follower/cec-processing.cpp')
-rw-r--r--utils/cec-follower/cec-processing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index 8e771f70..d26deec5 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -1000,7 +1000,7 @@ static void poll_remote_devs(struct node *node, unsigned me)
for (unsigned i = 0; i < 15; i++) {
struct cec_msg msg;
- cec_msg_init(&msg, 0xf, i);
+ cec_msg_init(&msg, me, i);
doioctl(node, CEC_TRANSMIT, &msg);
if (msg.tx_status & CEC_TX_STATUS_OK) {
@@ -1108,7 +1108,7 @@ void testProcessing(struct node *node)
ts_to_ms(ts_now - la_info[poll_la].ts) > POLL_PERIOD) {
struct cec_msg msg = {};
- cec_msg_init(&msg, 0xf, poll_la);
+ cec_msg_init(&msg, me, poll_la);
transmit(node, &msg);
if (msg.tx_status & CEC_TX_STATUS_NACK) {
dev_info("Logical address %d stopped responding to polling message.\n", poll_la);

Privacy Policy