1 /* purpletv.h - Keytable for purpletv Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <media/rc-map.h>
14 #include <linux/module.h>
16 static struct rc_map_table purpletv
[] = {
19 { 0x10, KEY_BACKSPACE
}, /* Recall */
31 { 0x12, KEY_DOT
}, /* 100+ */
33 { 0x07, KEY_VOLUMEUP
},
34 { 0x0b, KEY_VOLUMEDOWN
},
36 { 0x18, KEY_KPMINUS
},
39 { 0x0f, KEY_CHANNELUP
},
40 { 0x13, KEY_CHANNELDOWN
},
43 { 0x1b, KEY_VIDEO
}, /* Video source */
44 { 0x1f, KEY_CAMERA
}, /* Snapshot */
45 { 0x49, KEY_LANGUAGE
}, /* MTS Select */
46 { 0x19, KEY_SEARCH
}, /* Auto Scan */
50 { 0x45, KEY_PAUSE
}, /* Pause */
52 { 0x43, KEY_TIME
}, /* Time Shift */
53 { 0x17, KEY_CHANNEL
}, /* SURF CH */
54 { 0x40, KEY_FORWARD
}, /* Forward ? */
55 { 0x42, KEY_REWIND
}, /* Backward ? */
59 static struct rc_map_list purpletv_map
= {
62 .size
= ARRAY_SIZE(purpletv
),
63 .rc_type
= RC_TYPE_UNKNOWN
, /* Legacy IR type */
64 .name
= RC_MAP_PURPLETV
,
68 static int __init
init_rc_map_purpletv(void)
70 return rc_map_register(&purpletv_map
);
73 static void __exit
exit_rc_map_purpletv(void)
75 rc_map_unregister(&purpletv_map
);
78 module_init(init_rc_map_purpletv
)
79 module_exit(exit_rc_map_purpletv
)
81 MODULE_LICENSE("GPL");
82 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");