diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2018-06-28 07:43:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-07-25 07:11:48 -0400 |
commit | 4786b0d6f3ca6da8db02b0a58cd2b785cb0b80ab (patch) | |
tree | 81105439c95a742d86411de731972f12faf20659 /include/media/cec.h | |
parent | f48a534adbd321362c3199140008c9e2f2a81b3a (diff) | |
download | lwn-4786b0d6f3ca6da8db02b0a58cd2b785cb0b80ab.tar.gz lwn-4786b0d6f3ca6da8db02b0a58cd2b785cb0b80ab.zip |
media: cec: add support for 5V signal testing
Add support for the new 5V CEC events
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'include/media/cec.h')
-rw-r--r-- | include/media/cec.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/media/cec.h b/include/media/cec.h index 580ab1042898..ff9847f7f99d 100644 --- a/include/media/cec.h +++ b/include/media/cec.h @@ -79,7 +79,7 @@ struct cec_event_entry { }; #define CEC_NUM_CORE_EVENTS 2 -#define CEC_NUM_EVENTS CEC_EVENT_PIN_HPD_HIGH +#define CEC_NUM_EVENTS CEC_EVENT_PIN_5V_HIGH struct cec_fh { struct list_head list; @@ -309,6 +309,16 @@ void cec_queue_pin_cec_event(struct cec_adapter *adap, bool is_high, void cec_queue_pin_hpd_event(struct cec_adapter *adap, bool is_high, ktime_t ts); /** + * cec_queue_pin_5v_event() - queue a pin event with a given timestamp. + * + * @adap: pointer to the cec adapter + * @is_high: when true the 5V pin is high, otherwise it is low + * @ts: the timestamp for this event + * + */ +void cec_queue_pin_5v_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 |