Add support for low-level CEC pin monitoring. This adds a new monitor mode, a new capability and two new events.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -318,6 +318,7 @@ static inline int cec_is_unconfigured(__u16 log_addr_mask) · 317 unmodified lines | ||
| 318 | 318 | #define CEC_MODE_FOLLOWER (0x1 << 4) |
| 319 | 319 | #define CEC_MODE_EXCL_FOLLOWER (0x2 << 4) |
| 320 | 320 | #define CEC_MODE_EXCL_FOLLOWER_PASSTHRU (0x3 << 4) |
| 321 | +#define CEC_MODE_MONITOR_PIN (0xd << 4) | |
| 321 | 322 | #define CEC_MODE_MONITOR (0xe << 4) |
| 322 | 323 | #define CEC_MODE_MONITOR_ALL (0xf << 4) |
| 323 | 324 | #define CEC_MODE_FOLLOWER_MSK 0xf0 |
| @@ -338,6 +339,8 @@ static inline int cec_is_unconfigured(__u16 log_addr_mask) · 14 unmodified lines | ||
| 338 | 339 | #define CEC_CAP_MONITOR_ALL (1 << 5) |
| 339 | 340 | /* Hardware can use CEC only if the HDMI HPD pin is high. */ |
| 340 | 341 | #define CEC_CAP_NEEDS_HPD (1 << 6) |
| 342 | +/* Hardware can monitor CEC pin transitions */ | |
| 343 | +#define CEC_CAP_MONITOR_PIN (1 << 7) | |
| 341 | 344 | |
| 342 | 345 | /** |
| 343 | 346 | * struct cec_caps - CEC capabilities structure. |
| @@ -405,6 +408,8 @@ struct cec_log_addrs { · 61 unmodified lines | ||
| 405 | 408 | * didn't empty the message queue in time |
| 406 | 409 | */ |
| 407 | 410 | #define CEC_EVENT_LOST_MSGS 2 |
| 411 | +#define CEC_EVENT_PIN_LOW 3 | |
| 412 | +#define CEC_EVENT_PIN_HIGH 4 | |
| 408 | 413 | |
| 409 | 414 | #define CEC_EVENT_FL_INITIAL_STATE (1 << 0) |
| 410 | 415 | |