aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-08-08 16:40:09 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2016-08-08 16:40:09 +0200
commitf8fd63de08f8d781972e8d2650b654cfd910d9ff (patch)
tree0d3770409c355ac979306f46903bc4d07ca8291a
parentfe4a1619d245971919c52b1421956537571e9937 (diff)
cec-funcs.h: add reply argument for Record On/Off
A reply parameter is added to the cec_msg_record_on/off functions in cec-funcs.h. The standard mandates that Record Status shall be replied to Record On, and it may be replied to Record Off. Signed-off-by: Johan Fjeldtvedt <jaffe1@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--include/linux/cec-funcs.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/cec-funcs.h b/include/linux/cec-funcs.h
index 714c9c6f..9c8f0a20 100644
--- a/include/linux/cec-funcs.h
+++ b/include/linux/cec-funcs.h
@@ -121,10 +121,11 @@ static __inline__ void cec_msg_standby(struct cec_msg *msg)
/* One Touch Record Feature */
-static __inline__ void cec_msg_record_off(struct cec_msg *msg)
+static __inline__ void cec_msg_record_off(struct cec_msg *msg, bool reply)
{
msg->len = 2;
msg->msg[1] = CEC_MSG_RECORD_OFF;
+ msg->reply = reply ? CEC_MSG_RECORD_STATUS : 0;
}
struct cec_op_arib_data {
@@ -282,7 +283,8 @@ static __inline__ void cec_msg_record_on_phys_addr(struct cec_msg *msg,
}
static __inline__ void cec_msg_record_on(struct cec_msg *msg,
- const struct cec_op_record_src *rec_src)
+ bool reply,
+ const struct cec_op_record_src *rec_src)
{
switch (rec_src->type) {
case CEC_OP_RECORD_SRC_OWN:
@@ -305,6 +307,7 @@ static __inline__ void cec_msg_record_on(struct cec_msg *msg,
rec_src->ext_phys_addr.phys_addr);
break;
}
+ msg->reply = reply ? CEC_MSG_RECORD_STATUS : 0;
}
static __inline__ void cec_ops_record_on(const struct cec_msg *msg,

Privacy Policy