Skip to content

Commit 6fb7195

Browse files
seanyoungmchehab
authored andcommitted
media: rc: imon-rsc keymap has incorrect mappings
KEY_MAX is not a key but designates the highest value a linux keycode can ever have. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent 46e4a26 commit 6fb7195

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/media/rc/keymaps/rc-imon-rsc.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
//
99
// Note that this remote has a stick which its own IR protocol,
10-
// with 16 directions. This is not supported yet.
10+
// with 16 directions. This is supported by the imon_rsc BPF decoder
11+
// in v4l-utils.
1112
//
1213
static struct rc_map_table imon_rsc[] = {
1314
{ 0x801010, KEY_EXIT },
@@ -25,7 +26,7 @@ static struct rc_map_table imon_rsc[] = {
2526
{ 0x80105c, KEY_NUMERIC_9 },
2627
{ 0x801081, KEY_SCREEN }, /* Desktop */
2728
{ 0x80105d, KEY_NUMERIC_0 },
28-
{ 0x801082, KEY_MAX },
29+
{ 0x801082, KEY_ZOOM }, /* Maximise */
2930
{ 0x801048, KEY_ESC },
3031
{ 0x80104b, KEY_MEDIA }, /* Windows key */
3132
{ 0x801083, KEY_MENU },
@@ -52,7 +53,7 @@ static struct rc_map_table imon_rsc[] = {
5253
{ 0x80104e, KEY_STOP },
5354
{ 0x801052, KEY_REWIND },
5455
{ 0x801053, KEY_FASTFORWARD },
55-
{ 0x801089, KEY_ZOOM } /* full screen */
56+
{ 0x801089, KEY_FULL_SCREEN } /* full screen */
5657
};
5758

5859
static struct rc_map_list imon_rsc_map = {

0 commit comments

Comments
 (0)