This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: v4l-utils: sync to latest cec-funcs.h
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Mon Oct 7 13:05:14 2019 +0200

Update cec-funcs.h from the media_tree master branch.

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 include/linux/cec-funcs.h | 34 ++++++++++++++++++----------------
 1 file changed, 18 insertions(+), 16 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=e8c0f0c869778a7db691b2924fe9f3d5dd24dc11
diff --git a/include/linux/cec-funcs.h b/include/linux/cec-funcs.h
index 6daa73d0dbe3..9932239b7f4e 100644
--- a/include/linux/cec-funcs.h
+++ b/include/linux/cec-funcs.h
@@ -923,7 +923,8 @@ static __inline__ void cec_msg_give_deck_status(struct 
cec_msg *msg,
        msg->len = 3;
        msg->msg[1] = CEC_MSG_GIVE_DECK_STATUS;
        msg->msg[2] = status_req;
-       msg->reply = reply ? CEC_MSG_DECK_STATUS : 0;
+       msg->reply = (reply && status_req != CEC_OP_STATUS_REQ_OFF) ?
+                               CEC_MSG_DECK_STATUS : 0;
 }
 
 static __inline__ void cec_ops_give_deck_status(const struct cec_msg *msg,
@@ -1027,7 +1028,8 @@ static __inline__ void 
cec_msg_give_tuner_device_status(struct cec_msg *msg,
        msg->len = 3;
        msg->msg[1] = CEC_MSG_GIVE_TUNER_DEVICE_STATUS;
        msg->msg[2] = status_req;
-       msg->reply = reply ? CEC_MSG_TUNER_DEVICE_STATUS : 0;
+       msg->reply = (reply && status_req != CEC_OP_STATUS_REQ_OFF) ?
+                               CEC_MSG_TUNER_DEVICE_STATUS : 0;
 }
 
 static __inline__ void cec_ops_give_tuner_device_status(const struct cec_msg 
*msg,
@@ -1302,17 +1304,17 @@ static __inline__ void 
cec_msg_user_control_pressed(struct cec_msg *msg,
        if (!ui_cmd->has_opt_arg)
                return;
        switch (ui_cmd->ui_cmd) {
-       case 0x56:
-       case 0x57:
-       case 0x60:
-       case 0x68:
-       case 0x69:
-       case 0x6a:
+       case CEC_OP_UI_CMD_SELECT_BROADCAST_TYPE:
+       case CEC_OP_UI_CMD_SELECT_SOUND_PRESENTATION:
+       case CEC_OP_UI_CMD_PLAY_FUNCTION:
+       case CEC_OP_UI_CMD_SELECT_MEDIA_FUNCTION:
+       case CEC_OP_UI_CMD_SELECT_AV_INPUT_FUNCTION:
+       case CEC_OP_UI_CMD_SELECT_AUDIO_INPUT_FUNCTION:
                /* The optional operand is one byte for all these ui commands */
                msg->len++;
                msg->msg[3] = ui_cmd->play_mode;
                break;
-       case 0x67:
+       case CEC_OP_UI_CMD_TUNE_FUNCTION:
                msg->len += 4;
                msg->msg[3] = (ui_cmd->channel_identifier.channel_number_fmt << 
2) |
                              (ui_cmd->channel_identifier.major >> 8);
@@ -1331,17 +1333,17 @@ static __inline__ void 
cec_ops_user_control_pressed(const struct cec_msg *msg,
        if (msg->len == 3)
                return;
        switch (ui_cmd->ui_cmd) {
-       case 0x56:
-       case 0x57:
-       case 0x60:
-       case 0x68:
-       case 0x69:
-       case 0x6a:
+       case CEC_OP_UI_CMD_SELECT_BROADCAST_TYPE:
+       case CEC_OP_UI_CMD_SELECT_SOUND_PRESENTATION:
+       case CEC_OP_UI_CMD_PLAY_FUNCTION:
+       case CEC_OP_UI_CMD_SELECT_MEDIA_FUNCTION:
+       case CEC_OP_UI_CMD_SELECT_AV_INPUT_FUNCTION:
+       case CEC_OP_UI_CMD_SELECT_AUDIO_INPUT_FUNCTION:
                /* The optional operand is one byte for all these ui commands */
                ui_cmd->play_mode = msg->msg[3];
                ui_cmd->has_opt_arg = 1;
                break;
-       case 0x67:
+       case CEC_OP_UI_CMD_TUNE_FUNCTION:
                if (msg->len < 7)
                        break;
                ui_cmd->has_opt_arg = 1;

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to