From: Lars Op den Kamp Date: Thu, 3 May 2012 18:18:38 +0000 (+0200) Subject: cec: added CEC 1.4 opcodes X-Git-Tag: upstream/2.2.0~1^2~28^2~30 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=38ba806c19eb7562e6ae98a20ca7b5bececee81e;p=deb_libcec.git cec: added CEC 1.4 opcodes --- diff --git a/include/cectypes.h b/include/cectypes.h index ca065c6..efa5a3c 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -584,6 +584,15 @@ typedef enum cec_opcode CEC_OPCODE_SYSTEM_AUDIO_MODE_REQUEST = 0x70, CEC_OPCODE_SYSTEM_AUDIO_MODE_STATUS = 0x7E, CEC_OPCODE_SET_AUDIO_RATE = 0x9A, + + /* CEC 1.4 */ + CEC_OPCODE_START_ARC = 0xC0, + CEC_OPCODE_REPORT_ARC_STARTED = 0xC1, + CEC_OPCODE_REPORT_ARC_ENDED = 0xC2, + CEC_OPCODE_REQUEST_ARC_START = 0xC3, + CEC_OPCODE_REQUEST_ARC_END = 0xC4, + CEC_OPCODE_END_ARC = 0xC5, + CEC_OPCODE_CDC = 0xF8, /* when this opcode is set, no opcode will be sent to the device. this is one of the reserved numbers */ CEC_OPCODE_NONE = 0xFD } cec_opcode; diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 861a9ac..48a416c 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -1407,6 +1407,20 @@ const char *CCECProcessor::ToString(const cec_opcode opcode) return "system audio mode status"; case CEC_OPCODE_SET_AUDIO_RATE: return "set audio rate"; + case CEC_OPCODE_START_ARC: + return "start ARC"; + case CEC_OPCODE_REPORT_ARC_STARTED: + return "report ARC started"; + case CEC_OPCODE_REPORT_ARC_ENDED: + return "report ARC ended"; + case CEC_OPCODE_REQUEST_ARC_START: + return "request ARC start"; + case CEC_OPCODE_REQUEST_ARC_END: + return "request ARC end"; + case CEC_OPCODE_END_ARC: + return "end ARC"; + case CEC_OPCODE_CDC: + return "CDC"; case CEC_OPCODE_NONE: return "poll"; default: