summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/cec.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-08-15 10:07:25 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-09-23 07:43:04 -0400
commit333ef6bd10c3ffdaf6da94e34dc6cae675ed27fc (patch)
tree0f01c42950d43741dcac85bb4a31397cd3fb5e56 /include/uapi/linux/cec.h
parentda634f623e4879d7716029a84791fc596ebac24d (diff)
downloadtalos-op-linux-333ef6bd10c3ffdaf6da94e34dc6cae675ed27fc.tar.gz
talos-op-linux-333ef6bd10c3ffdaf6da94e34dc6cae675ed27fc.zip
media: cec: add CEC_EVENT_PIN_HPD_LOW/HIGH events
Add support for two new low-level events: PIN_HPD_LOW and PIN_HPD_HIGH. This is specifically meant for use with the upcoming cec-gpio driver and makes it possible to trace when the HPD pin changes. Some HDMI sinks do strange things with the HPD and this makes it easy to debug this. Note that this also moves the initialization of a devnode mutex and list to the allocate_adapter function: if the HPD is high, then as soon as the HPD interrupt is created an interrupt occurs and cec_queue_pin_hpd_event() is called which requires that the devnode mutex and list are initialized. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/uapi/linux/cec.h')
-rw-r--r--include/uapi/linux/cec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/cec.h b/include/uapi/linux/cec.h
index 4351c3481aea..b9f8df3a0477 100644
--- a/include/uapi/linux/cec.h
+++ b/include/uapi/linux/cec.h
@@ -410,6 +410,8 @@ struct cec_log_addrs {
#define CEC_EVENT_LOST_MSGS 2
#define CEC_EVENT_PIN_CEC_LOW 3
#define CEC_EVENT_PIN_CEC_HIGH 4
+#define CEC_EVENT_PIN_HPD_LOW 5
+#define CEC_EVENT_PIN_HPD_HIGH 6
#define CEC_EVENT_FL_INITIAL_STATE (1 << 0)
#define CEC_EVENT_FL_DROPPED_EVENTS (1 << 1)
OpenPOWER on IntegriCloud