Skip to content

Commit d7ca5af

Browse files
Hans Verkuilmchehab
authored andcommitted
media: cec-funcs.h: use new CEC_OP_UI_CMD defines
When the new CEC_OP_UI_CMD defines were added I forgot to update this header to use these new defines. This is now fixed. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent 9b211f9 commit d7ca5af

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

‎include/uapi/linux/cec-funcs.h‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,17 +1304,17 @@ static inline void cec_msg_user_control_pressed(struct cec_msg *msg,
13041304
if (!ui_cmd->has_opt_arg)
13051305
return;
13061306
switch (ui_cmd->ui_cmd) {
1307-
case 0x56:
1308-
case 0x57:
1309-
case 0x60:
1310-
case 0x68:
1311-
case 0x69:
1312-
case 0x6a:
1307+
case CEC_OP_UI_CMD_SELECT_BROADCAST_TYPE:
1308+
case CEC_OP_UI_CMD_SELECT_SOUND_PRESENTATION:
1309+
case CEC_OP_UI_CMD_PLAY_FUNCTION:
1310+
case CEC_OP_UI_CMD_SELECT_MEDIA_FUNCTION:
1311+
case CEC_OP_UI_CMD_SELECT_AV_INPUT_FUNCTION:
1312+
case CEC_OP_UI_CMD_SELECT_AUDIO_INPUT_FUNCTION:
13131313
/* The optional operand is one byte for all these ui commands */
13141314
msg->len++;
13151315
msg->msg[3] = ui_cmd->play_mode;
13161316
break;
1317-
case 0x67:
1317+
case CEC_OP_UI_CMD_TUNE_FUNCTION:
13181318
msg->len += 4;
13191319
msg->msg[3] = (ui_cmd->channel_identifier.channel_number_fmt << 2) |
13201320
(ui_cmd->channel_identifier.major >> 8);
@@ -1333,17 +1333,17 @@ static inline void cec_ops_user_control_pressed(const struct cec_msg *msg,
13331333
if (msg->len == 3)
13341334
return;
13351335
switch (ui_cmd->ui_cmd) {
1336-
case 0x56:
1337-
case 0x57:
1338-
case 0x60:
1339-
case 0x68:
1340-
case 0x69:
1341-
case 0x6a:
1336+
case CEC_OP_UI_CMD_SELECT_BROADCAST_TYPE:
1337+
case CEC_OP_UI_CMD_SELECT_SOUND_PRESENTATION:
1338+
case CEC_OP_UI_CMD_PLAY_FUNCTION:
1339+
case CEC_OP_UI_CMD_SELECT_MEDIA_FUNCTION:
1340+
case CEC_OP_UI_CMD_SELECT_AV_INPUT_FUNCTION:
1341+
case CEC_OP_UI_CMD_SELECT_AUDIO_INPUT_FUNCTION:
13421342
/* The optional operand is one byte for all these ui commands */
13431343
ui_cmd->play_mode = msg->msg[3];
13441344
ui_cmd->has_opt_arg = 1;
13451345
break;
1346-
case 0x67:
1346+
case CEC_OP_UI_CMD_TUNE_FUNCTION:
13471347
if (msg->len < 7)
13481348
break;
13491349
ui_cmd->has_opt_arg = 1;

0 commit comments

Comments
 (0)