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.
Showing the changes to include/uapi/linux (1 of 6 files). Show all
Unified · Split
| @@ -410,6 +410,8 @@ struct cec_log_addrs { · 409 unmodified lines | ||
| 410 | 410 | #define CEC_EVENT_LOST_MSGS 2 |
| 411 | 411 | #define CEC_EVENT_PIN_CEC_LOW 3 |
| 412 | 412 | #define CEC_EVENT_PIN_CEC_HIGH 4 |
| 413 | +#define CEC_EVENT_PIN_HPD_LOW 5 | |
| 414 | +#define CEC_EVENT_PIN_HPD_HIGH 6 | |
| 413 | 415 | |
| 414 | 416 | #define CEC_EVENT_FL_INITIAL_STATE (1 << 0) |
| 415 | 417 | #define CEC_EVENT_FL_DROPPED_EVENTS (1 << 1) |