1 /* asus-ps3-100.h - Keytable for asus_ps3_100 Remote Controller
3 * Copyright (c) 2012 by Mauro Carvalho Chehab
5 * Based on a previous patch from Remi Schwartz <remi.schwartz@gmail.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 asus_ps3_100
[] = {
17 { 0x081c, KEY_HOME
}, /* home */
18 { 0x081e, KEY_TV
}, /* tv */
19 { 0x0803, KEY_TEXT
}, /* teletext */
20 { 0x0829, KEY_POWER
}, /* close */
22 { 0x080b, KEY_RED
}, /* red */
23 { 0x080d, KEY_YELLOW
}, /* yellow */
24 { 0x0806, KEY_BLUE
}, /* blue */
25 { 0x0807, KEY_GREEN
}, /* green */
39 { 0x0815, KEY_VOLUMEUP
},
40 { 0x0826, KEY_VOLUMEDOWN
},
41 { 0x0835, KEY_CHANNELUP
}, /* channel / program + */
42 { 0x0824, KEY_CHANNELDOWN
}, /* channel / program - */
47 { 0x0810, KEY_RIGHT
},
48 { 0x0825, KEY_ENTER
}, /* enter */
50 { 0x0822, KEY_EXIT
}, /* back */
51 { 0x082c, KEY_AB
}, /* recall */
53 { 0x0820, KEY_AUDIO
}, /* TV audio */
54 { 0x0837, KEY_SCREEN
}, /* snapshot */
55 { 0x082e, KEY_ZOOM
}, /* full screen */
56 { 0x0802, KEY_MUTE
}, /* mute */
58 { 0x0831, KEY_REWIND
}, /* backward << */
59 { 0x0811, KEY_RECORD
}, /* recording */
61 { 0x0805, KEY_FASTFORWARD
}, /* forward >> */
62 { 0x0821, KEY_PREVIOUS
}, /* rew */
63 { 0x081a, KEY_PAUSE
}, /* pause */
64 { 0x0839, KEY_PLAY
}, /* play */
65 { 0x0819, KEY_NEXT
}, /* forward */
68 static struct rc_map_list asus_ps3_100_map
= {
71 .size
= ARRAY_SIZE(asus_ps3_100
),
72 .rc_type
= RC_TYPE_RC5
,
73 .name
= RC_MAP_ASUS_PS3_100
,
77 static int __init
init_rc_map_asus_ps3_100(void)
79 return rc_map_register(&asus_ps3_100_map
);
82 static void __exit
exit_rc_map_asus_ps3_100(void)
84 rc_map_unregister(&asus_ps3_100_map
);
87 module_init(init_rc_map_asus_ps3_100
)
88 module_exit(exit_rc_map_asus_ps3_100
)
90 MODULE_LICENSE("GPL");
91 MODULE_AUTHOR("Mauro Carvalho Chehab");