diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2017-11-23 09:05:06 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-12-08 11:10:37 -0500 |
commit | 15ae0be9c671e912a6749d821bc69ccfff766c19 (patch) | |
tree | d87f98d8b942b7914724b49aa4d8915374e98017 | |
parent | 48ea2e926b5ad29c0747fbd90e605cc56fb78298 (diff) | |
download | linux-stable-15ae0be9c671e912a6749d821bc69ccfff766c19.tar.gz linux-stable-15ae0be9c671e912a6749d821bc69ccfff766c19.tar.bz2 linux-stable-15ae0be9c671e912a6749d821bc69ccfff766c19.zip |
media: cec-core.rst: document the new adap_monitor_pin_enable op
Document what this op does.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | Documentation/media/kapi/cec-core.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/media/kapi/cec-core.rst b/Documentation/media/kapi/cec-core.rst index d37e107f2fde..62b9a1448177 100644 --- a/Documentation/media/kapi/cec-core.rst +++ b/Documentation/media/kapi/cec-core.rst @@ -103,6 +103,7 @@ your driver: /* 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); @@ -144,6 +145,19 @@ called if the CEC_CAP_MONITOR_ALL capability is set. This callback is optional Note that adap_monitor_all_enable must return 0 if enable is false. +To enable/disable the 'monitor pin' mode: + +.. c:function:: + int (*adap_monitor_pin_enable)(struct cec_adapter *adap, bool enable); + +If enabled, then the adapter should be put in a mode to also monitor CEC pin +changes. Not all hardware supports this and this function is only called if +the CEC_CAP_MONITOR_PIN capability is set. This callback is optional +(some hardware may always be in 'monitor pin' mode). + +Note that adap_monitor_pin_enable must return 0 if enable is false. + + To program a new logical address: .. c:function:: |