summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-07-11 03:30:41 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-18 12:55:38 -0300
commitb8d62f50b1df2571afcf47107bbbe9cd60f8aafd (patch)
treeb4b95eddddecdcdc902b3bb64470b65e9b6044f4 /include/media
parentfdb8c88e9213f9d87bbfe56724e20cfd9ff8ef9d (diff)
downloadlinux-b8d62f50b1df2571afcf47107bbbe9cd60f8aafd.tar.gz
linux-b8d62f50b1df2571afcf47107bbbe9cd60f8aafd.tar.bz2
linux-b8d62f50b1df2571afcf47107bbbe9cd60f8aafd.zip
media: cec: add core support for low-level CEC pin monitoring
Add support for the new MONITOR_PIN mode. Add the cec_pin_event function that the CEC pin code will call to queue pin change events. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/cec.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/media/cec.h b/include/media/cec.h
index 6cc862af74e5..d983960b37ad 100644
--- a/include/media/cec.h
+++ b/include/media/cec.h
@@ -177,6 +177,7 @@ struct cec_adapter {
bool is_configuring;
bool is_configured;
u32 monitor_all_cnt;
+ u32 monitor_pin_cnt;
u32 follower_cnt;
struct cec_fh *cec_follower;
struct cec_fh *cec_initiator;
@@ -272,6 +273,16 @@ static inline void cec_received_msg(struct cec_adapter *adap,
}
/**
+ * cec_queue_pin_event() - queue a pin event with a given timestamp.
+ *
+ * @adap: pointer to the cec adapter
+ * @is_high: when true the pin is high, otherwise it is low
+ * @ts: the timestamp for this event
+ *
+ */
+void cec_queue_pin_event(struct cec_adapter *adap, bool is_high, ktime_t ts);
+
+/**
* cec_get_edid_phys_addr() - find and return the physical address
*
* @edid: pointer to the EDID data