aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cec-funcs.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2016-07-08 04:52:34 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-08 17:35:42 -0400
commit9ad52b4db79d168867a2ca105eca00fb9cb28fe5 (patch)
tree7a953c5d35d1095d2b949b37e84656958ac0678d /include/linux/cec-funcs.h
parent0c1f8569942695b7a2735301efe45ecd69e2a41f (diff)
[media] cec-funcs.h: add missing 'reply' for short audio descriptor
The cec_msg_request_short_audio_descriptor function was missing the reply argument. That's needed if you want the framework to wait for the reply message. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/linux/cec-funcs.h')
-rw-r--r--include/linux/cec-funcs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/cec-funcs.h b/include/linux/cec-funcs.h
index 455f9df86c43..82c3d3b7269d 100644
--- a/include/linux/cec-funcs.h
+++ b/include/linux/cec-funcs.h
@@ -1494,6 +1494,7 @@ static inline void cec_ops_report_short_audio_descriptor(const struct cec_msg *m
1494} 1494}
1495 1495
1496static inline void cec_msg_request_short_audio_descriptor(struct cec_msg *msg, 1496static inline void cec_msg_request_short_audio_descriptor(struct cec_msg *msg,
1497 bool reply,
1497 __u8 num_descriptors, 1498 __u8 num_descriptors,
1498 const __u8 *audio_format_id, 1499 const __u8 *audio_format_id,
1499 const __u8 *audio_format_code) 1500 const __u8 *audio_format_code)
@@ -1504,6 +1505,7 @@ static inline void cec_msg_request_short_audio_descriptor(struct cec_msg *msg,
1504 num_descriptors = 4; 1505 num_descriptors = 4;
1505 msg->len = 2 + num_descriptors; 1506 msg->len = 2 + num_descriptors;
1506 msg->msg[1] = CEC_MSG_REQUEST_SHORT_AUDIO_DESCRIPTOR; 1507 msg->msg[1] = CEC_MSG_REQUEST_SHORT_AUDIO_DESCRIPTOR;
1508 msg->reply = reply ? CEC_MSG_REPORT_SHORT_AUDIO_DESCRIPTOR : 0;
1507 for (i = 0; i < num_descriptors; i++) 1509 for (i = 0; i < num_descriptors; i++)
1508 msg->msg[2 + i] = (audio_format_id[i] << 6) | 1510 msg->msg[2 + i] = (audio_format_id[i] << 6) |
1509 (audio_format_code[i] & 0x3f); 1511 (audio_format_code[i] & 0x3f);