History

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.

Hans Verkuil committed 7 years ago

Commit d7ca5af1 parent 9b211f91 file · +14 −14Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/cec-funcs.h+14−14
@@ -1304,17 +1304,17 @@ static inline void cec_msg_user_control_pressed(struct cec_msg *msg, · 1303 unmodified lines
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, · 12 unmodified lines
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;