hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/rc/keymaps/rc-it913x-v2.c
....@@ -1,11 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* ITE Generic remotes Version 2
23 *
34 * Copyright (C) 2012 Malcolm Priestley (tvboxspy@gmail.com)
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
95 */
106
117 #include <media/rc-map.h>
....@@ -24,31 +20,31 @@
2420 { 0x807f04, KEY_VOLUMEUP }, /* Volume- */
2521 { 0x807f05, KEY_SCREEN }, /* FullScreen */
2622 { 0x807f06, KEY_VOLUMEDOWN }, /* Volume- */
27
- { 0x807f07, KEY_0 }, /* 0 */
23
+ { 0x807f07, KEY_NUMERIC_0 }, /* 0 */
2824 { 0x807f08, KEY_CHANNELDOWN }, /* Channel- */
2925 { 0x807f09, KEY_PREVIOUS }, /* Recall */
30
- { 0x807f0a, KEY_1 }, /* 1 */
31
- { 0x807f1b, KEY_2 }, /* 2 */
32
- { 0x807f1f, KEY_3 }, /* 3 */
33
- { 0x807f0c, KEY_4 }, /* 4 */
34
- { 0x807f0d, KEY_5 }, /* 5 */
35
- { 0x807f0e, KEY_6 }, /* 6 */
36
- { 0x807f00, KEY_7 }, /* 7 */
37
- { 0x807f0f, KEY_8 }, /* 8 */
38
- { 0x807f19, KEY_9 }, /* 9 */
26
+ { 0x807f0a, KEY_NUMERIC_1 }, /* 1 */
27
+ { 0x807f1b, KEY_NUMERIC_2 }, /* 2 */
28
+ { 0x807f1f, KEY_NUMERIC_3 }, /* 3 */
29
+ { 0x807f0c, KEY_NUMERIC_4 }, /* 4 */
30
+ { 0x807f0d, KEY_NUMERIC_5 }, /* 5 */
31
+ { 0x807f0e, KEY_NUMERIC_6 }, /* 6 */
32
+ { 0x807f00, KEY_NUMERIC_7 }, /* 7 */
33
+ { 0x807f0f, KEY_NUMERIC_8 }, /* 8 */
34
+ { 0x807f19, KEY_NUMERIC_9 }, /* 9 */
3935
4036 /* Type 2 */
4137 /* keys stereo, snapshot unassigned */
42
- { 0x866b00, KEY_0 },
43
- { 0x866b01, KEY_1 },
44
- { 0x866b02, KEY_2 },
45
- { 0x866b03, KEY_3 },
46
- { 0x866b04, KEY_4 },
47
- { 0x866b05, KEY_5 },
48
- { 0x866b06, KEY_6 },
49
- { 0x866b07, KEY_7 },
50
- { 0x866b08, KEY_8 },
51
- { 0x866b09, KEY_9 },
38
+ { 0x866b00, KEY_NUMERIC_0 },
39
+ { 0x866b01, KEY_NUMERIC_1 },
40
+ { 0x866b02, KEY_NUMERIC_2 },
41
+ { 0x866b03, KEY_NUMERIC_3 },
42
+ { 0x866b04, KEY_NUMERIC_4 },
43
+ { 0x866b05, KEY_NUMERIC_5 },
44
+ { 0x866b06, KEY_NUMERIC_6 },
45
+ { 0x866b07, KEY_NUMERIC_7 },
46
+ { 0x866b08, KEY_NUMERIC_8 },
47
+ { 0x866b09, KEY_NUMERIC_9 },
5248 { 0x866b12, KEY_POWER },
5349 { 0x866b13, KEY_MUTE },
5450 { 0x866b0a, KEY_PREVIOUS }, /* Recall */
....@@ -72,7 +68,7 @@
7268 .map = {
7369 .scan = it913x_v2_rc,
7470 .size = ARRAY_SIZE(it913x_v2_rc),
75
- .rc_proto = RC_PROTO_NEC,
71
+ .rc_proto = RC_PROTO_NECX,
7672 .name = RC_MAP_IT913X_V2,
7773 }
7874 };