cec-ctl: only generate eob for CEC pin events

An end-of-bit event is generated if a CEC pin event arrives that
indicates that the CEC bus remained high for longer than a bit period,
which means that it was the end of the message.

But this was also done for HPD/5V events, which is incorrect.
Especially since HPD/5V events might have a timestamp that is
later than a CEC event (probably due to a driver or framework
bug). In any case, the eob generator has nothing to do with HPD/5V
events.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp
index 2020784..b0073b3 100644
--- a/utils/cec-ctl/cec-ctl.cpp
+++ b/utils/cec-ctl/cec-ctl.cpp
@@ -972,7 +972,9 @@
 			    ev.event == CEC_EVENT_PIN_5V_LOW ||
 			    ev.event == CEC_EVENT_PIN_5V_HIGH)
 				pin_event = true;
-			generate_eob_event(ev.ts, fstore);
+			if (ev.event == CEC_EVENT_PIN_CEC_LOW ||
+			    ev.event == CEC_EVENT_PIN_CEC_HIGH)
+				generate_eob_event(ev.ts, fstore);
 			if (pin_event && fstore) {
 				unsigned int v = ev.event - CEC_EVENT_PIN_CEC_LOW;