path: root/include
diff options
authorHans Verkuil <hverkuil@xs4all.nl>2017-11-05 07:36:36 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-08 11:10:00 -0500
commit48ea2e926b5ad29c0747fbd90e605cc56fb78298 (patch)
tree368c7d86ad1cf8640a99f31df7fd5970e14a5ee2 /include
parentcc05c0ba23bbc05d34caeb4773b89e1dfc2598b8 (diff)
media: cec: add the adap_monitor_pin_enable op
Some devices can monitor the CEC pin using an interrupt, but you only want to enable the interrupt if you actually switch to pin monitoring mode. So add a new op that is called when pin monitoring needs to be switched on or off. Also fix a small bug where the initial CEC pin event was sent again when calling S_MODE twice with the same CEC_MODE_MONITOR_PIN mode. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/cec.h b/include/media/cec.h
index 16341210d3ba..dd781e928b72 100644
--- a/include/media/cec.h
+++ b/include/media/cec.h
@@ -122,6 +122,7 @@ struct cec_adap_ops {
/* Low-level callbacks */
int (*adap_enable)(struct cec_adapter *adap, bool enable);
int (*adap_monitor_all_enable)(struct cec_adapter *adap, bool enable);
+ int (*adap_monitor_pin_enable)(struct cec_adapter *adap, bool enable);
int (*adap_log_addr)(struct cec_adapter *adap, u8 logical_addr);
int (*adap_transmit)(struct cec_adapter *adap, u8 attempts,
u32 signal_free_time, struct cec_msg *msg);

Privacy Policy