0001
0002
0003
0004
0005
0006
0007
0008 #include <media/rc-map.h>
0009 #include <linux/module.h>
0010
0011 static struct rc_map_table pinnacle_grey[] = {
0012 { 0x3a, KEY_NUMERIC_0 },
0013 { 0x31, KEY_NUMERIC_1 },
0014 { 0x32, KEY_NUMERIC_2 },
0015 { 0x33, KEY_NUMERIC_3 },
0016 { 0x34, KEY_NUMERIC_4 },
0017 { 0x35, KEY_NUMERIC_5 },
0018 { 0x36, KEY_NUMERIC_6 },
0019 { 0x37, KEY_NUMERIC_7 },
0020 { 0x38, KEY_NUMERIC_8 },
0021 { 0x39, KEY_NUMERIC_9 },
0022
0023 { 0x2f, KEY_POWER },
0024
0025 { 0x2e, KEY_P },
0026 { 0x1f, KEY_L },
0027 { 0x2b, KEY_I },
0028
0029 { 0x2d, KEY_SCREEN },
0030 { 0x1e, KEY_ZOOM },
0031 { 0x1b, KEY_VOLUMEUP },
0032 { 0x0f, KEY_VOLUMEDOWN },
0033 { 0x17, KEY_CHANNELUP },
0034 { 0x1c, KEY_CHANNELDOWN },
0035 { 0x25, KEY_INFO },
0036
0037 { 0x3c, KEY_MUTE },
0038
0039 { 0x3d, KEY_LEFT },
0040 { 0x3b, KEY_RIGHT },
0041
0042 { 0x3f, KEY_UP },
0043 { 0x3e, KEY_DOWN },
0044 { 0x1a, KEY_ENTER },
0045
0046 { 0x1d, KEY_MENU },
0047 { 0x19, KEY_AGAIN },
0048 { 0x16, KEY_PREVIOUSSONG },
0049 { 0x13, KEY_NEXTSONG },
0050 { 0x15, KEY_PAUSE },
0051 { 0x0e, KEY_REWIND },
0052 { 0x0d, KEY_PLAY },
0053 { 0x0b, KEY_STOP },
0054 { 0x07, KEY_FORWARD },
0055 { 0x27, KEY_RECORD },
0056 { 0x26, KEY_TUNER },
0057 { 0x29, KEY_TEXT },
0058 { 0x2a, KEY_MEDIA },
0059 { 0x18, KEY_EPG },
0060 };
0061
0062 static struct rc_map_list pinnacle_grey_map = {
0063 .map = {
0064 .scan = pinnacle_grey,
0065 .size = ARRAY_SIZE(pinnacle_grey),
0066 .rc_proto = RC_PROTO_UNKNOWN,
0067 .name = RC_MAP_PINNACLE_GREY,
0068 }
0069 };
0070
0071 static int __init init_rc_map_pinnacle_grey(void)
0072 {
0073 return rc_map_register(&pinnacle_grey_map);
0074 }
0075
0076 static void __exit exit_rc_map_pinnacle_grey(void)
0077 {
0078 rc_map_unregister(&pinnacle_grey_map);
0079 }
0080
0081 module_init(init_rc_map_pinnacle_grey)
0082 module_exit(exit_rc_map_pinnacle_grey)
0083
0084 MODULE_LICENSE("GPL");
0085 MODULE_AUTHOR("Mauro Carvalho Chehab");