summaryrefslogtreecommitdiffstats
path: root/include/linux/cec.h
diff options
context:
space:
mode:
authorHans Verkuil2016-11-01 11:55:05 +0100
committerMauro Carvalho Chehab2016-11-16 18:32:56 +0100
commitadc0c622783978ab0c740af77f98fc8f65c87d66 (patch)
tree800c4fccd3da0fe3616b144d10c3e21ba208f695 /include/linux/cec.h
parent[media] cec: add flag to cec_log_addrs to enable RC passthrough (diff)
downloadkernel-qcow2-linux-adc0c622783978ab0c740af77f98fc8f65c87d66.tar.gz
kernel-qcow2-linux-adc0c622783978ab0c740af77f98fc8f65c87d66.tar.xz
kernel-qcow2-linux-adc0c622783978ab0c740af77f98fc8f65c87d66.zip
[media] cec: add CEC_MSG_FL_REPLY_TO_FOLLOWERS
Give the caller more control over how replies to a transmit are handled. By default the reply will only go to the filehandle that called CEC_TRANSMIT. If this new flag is set, then the reply will also go to all followers. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/linux/cec.h')
-rw-r--r--include/linux/cec.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/cec.h b/include/linux/cec.h
index 825455fae3cc..3f2f076027b1 100644
--- a/include/linux/cec.h
+++ b/include/linux/cec.h
@@ -175,7 +175,10 @@ static inline void cec_msg_set_reply_to(struct cec_msg *msg,
msg->reply = msg->timeout = 0;
}
-/* cec status field */
+/* cec_msg flags field */
+#define CEC_MSG_FL_REPLY_TO_FOLLOWERS (1 << 0)
+
+/* cec_msg tx/rx_status field */
#define CEC_TX_STATUS_OK (1 << 0)
#define CEC_TX_STATUS_ARB_LOST (1 << 1)
#define CEC_TX_STATUS_NACK (1 << 2)