aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-10-12 19:30:59 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2016-10-12 19:30:59 +0200
commit79186f9d3d9d3b6bee44444a611bd92435d11807 (patch)
treee23739aa496091db689d9674b0e66d6ef24a03ca
parent9f5f5e4692e316ed7cb2bb0d5e0a7c72f132f4d3 (diff)
cec-follower: remove obsolete cec_msg_record_on workaround.
The cec_msg_record_on function in cec-funcs.h was missing the reply argument. That's now been fixed, so the workaround in the code can be dropped. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/cec-follower/cec-processing.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index 93f8549c..8bc70bd0 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -46,40 +46,6 @@
#include "cec-follower.h"
-/*
- * cec-funcs.h doesn't have the reply argument for this CEC message.
- * A fix is pending but not yet merged. Once it is merged this workaround
- * can be removed.
- */
-static inline void cec_msg_record_on_reply(struct cec_msg *msg,
- bool reply,
- const struct cec_op_record_src *rec_src)
-{
- switch (rec_src->type) {
- case CEC_OP_RECORD_SRC_OWN:
- cec_msg_record_on_own(msg);
- break;
- case CEC_OP_RECORD_SRC_DIGITAL:
- cec_msg_record_on_digital(msg, &rec_src->digital);
- break;
- case CEC_OP_RECORD_SRC_ANALOG:
- cec_msg_record_on_analog(msg,
- rec_src->analog.ana_bcast_type,
- rec_src->analog.ana_freq,
- rec_src->analog.bcast_system);
- break;
- case CEC_OP_RECORD_SRC_EXT_PLUG:
- cec_msg_record_on_plug(msg, rec_src->ext_plug.plug);
- break;
- case CEC_OP_RECORD_SRC_EXT_PHYS_ADDR:
- cec_msg_record_on_phys_addr(msg,
- rec_src->ext_phys_addr.phys_addr);
- break;
- }
- msg->reply = reply ? CEC_MSG_RECORD_STATUS : 0;
-}
-#define cec_msg_record_on cec_msg_record_on_reply
-
#define VOLUME_MAX 0x64
#define VOLUME_MIN 0

Privacy Policy