aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-follower/cec-processing.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-09-24 10:31:44 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2017-09-24 10:31:44 +0200
commite44cb0520fca23d950066bf7d1660ed054afca26 (patch)
treedc6493ff8d89408e05ec4cbb64e48cb01702b48d /utils/cec-follower/cec-processing.cpp
parent3bec26ca3a07ff6248a9626708da5d5dbf1f43d3 (diff)
cec-ctl/cec-follower: support new HPD pin events
Add support for the new HPD pin events to cec-ctl. Add support for both the CEC and HPD pin events to cec-follower. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/cec-follower/cec-processing.cpp')
-rw-r--r--utils/cec-follower/cec-processing.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index f1803cd2..ddd8a5cf 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -191,6 +191,18 @@ static void log_event(struct cec_event &ev)
case CEC_EVENT_LOST_MSGS:
printf("Event: Lost Messages\n");
break;
+ case CEC_EVENT_PIN_HPD_LOW:
+ case CEC_EVENT_PIN_HPD_HIGH:
+ printf("Event: HPD Pin %s\n",
+ ev.event == CEC_EVENT_PIN_HPD_HIGH ? "High" : "Low");
+ warn("Unexpected HPD pin event!\n");
+ break;
+ case CEC_EVENT_PIN_CEC_LOW:
+ case CEC_EVENT_PIN_CEC_HIGH:
+ printf("Event: CEC Pin %s\n",
+ ev.event == CEC_EVENT_PIN_CEC_HIGH ? "High" : "Low");
+ warn("Unexpected CEC pin event!\n");
+ break;
default:
printf("Event: Unknown (0x%x)\n", ev.event);
break;

Privacy Policy