1 // SPDX-License-Identifier: GPL-2.0+
2 // videomate-s350.h - Keytable for videomate_s350 Remote Controller
4 // keymap imported from ir-keymaps.c
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 static struct rc_map_table videomate_s350
[] = {
15 { 0x05, KEY_VIDEO
}, /* TV/Video */
17 { 0x08, KEY_PLAYPAUSE
},
19 { 0x0f, KEY_FASTFORWARD
},
20 { 0x10, KEY_CHANNELUP
},
21 { 0x12, KEY_VOLUMEUP
},
22 { 0x13, KEY_CHANNELDOWN
},
24 { 0x15, KEY_VOLUMEDOWN
},
25 { 0x16, KEY_NUMERIC_1
},
26 { 0x17, KEY_NUMERIC_2
},
27 { 0x18, KEY_NUMERIC_3
},
28 { 0x19, KEY_NUMERIC_4
},
29 { 0x1a, KEY_NUMERIC_5
},
30 { 0x1b, KEY_NUMERIC_6
},
31 { 0x1c, KEY_NUMERIC_7
},
32 { 0x1d, KEY_NUMERIC_8
},
33 { 0x1e, KEY_NUMERIC_9
},
34 { 0x1f, KEY_NUMERIC_0
},
37 { 0x25, KEY_LAST
}, /* Recall */
38 { 0x26, KEY_SUBTITLE
}, /* CC */
39 { 0x27, KEY_LANGUAGE
}, /* MTS */
40 { 0x29, KEY_CHANNEL
}, /* SURF */
43 { 0x2f, KEY_CAMERA
}, /* Snapshot */
45 { 0x02, KEY_PREVIOUSSONG
},
46 { 0x06, KEY_NEXTSONG
},
49 { 0x22, KEY_BACKSPACE
},
58 static struct rc_map_list videomate_s350_map
= {
60 .scan
= videomate_s350
,
61 .size
= ARRAY_SIZE(videomate_s350
),
62 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
63 .name
= RC_MAP_VIDEOMATE_S350
,
67 static int __init
init_rc_map_videomate_s350(void)
69 return rc_map_register(&videomate_s350_map
);
72 static void __exit
exit_rc_map_videomate_s350(void)
74 rc_map_unregister(&videomate_s350_map
);
77 module_init(init_rc_map_videomate_s350
)
78 module_exit(exit_rc_map_videomate_s350
)
80 MODULE_LICENSE("GPL");
81 MODULE_AUTHOR("Mauro Carvalho Chehab");