Skip to content

Commit b52c2ed

Browse files
Hans Verkuilmchehab
authored andcommitted
media: cec/cec-adap.c: use new UI_CMD defines
Instead of hardcoding the UI Command key values, use the new defines. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent eeabc18 commit b52c2ed

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎drivers/media/cec/cec-adap.c‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,7 +1976,7 @@ static int cec_receive_notify(struct cec_adapter *adap, struct cec_msg *msg,
19761976
* Play function, this message can have variable length
19771977
* depending on the specific play function that is used.
19781978
*/
1979-
case 0x60:
1979+
case CEC_OP_UI_CMD_PLAY_FUNCTION:
19801980
if (msg->len == 2)
19811981
rc_keydown(adap->rc, RC_PROTO_CEC,
19821982
msg->msg[2], 0);
@@ -1993,8 +1993,12 @@ static int cec_receive_notify(struct cec_adapter *adap, struct cec_msg *msg,
19931993
* For the time being these messages are not processed by the
19941994
* framework and are simply forwarded to the user space.
19951995
*/
1996-
case 0x56: case 0x57:
1997-
case 0x67: case 0x68: case 0x69: case 0x6a:
1996+
case CEC_OP_UI_CMD_SELECT_BROADCAST_TYPE:
1997+
case CEC_OP_UI_CMD_SELECT_SOUND_PRESENTATION:
1998+
case CEC_OP_UI_CMD_TUNE_FUNCTION:
1999+
case CEC_OP_UI_CMD_SELECT_MEDIA_FUNCTION:
2000+
case CEC_OP_UI_CMD_SELECT_AV_INPUT_FUNCTION:
2001+
case CEC_OP_UI_CMD_SELECT_AUDIO_INPUT_FUNCTION:
19982002
break;
19992003
default:
20002004
rc_keydown(adap->rc, RC_PROTO_CEC, msg->msg[2], 0);

0 commit comments

Comments
 (0)