1 /* rc-rc5-streamzap.c - Keytable for Streamzap PC Remote, for use
2 * with the Streamzap PC Remote IR Receiver.
4 * Copyright (c) 2010 by Jarod Wilson <jarod@redhat.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
12 #include <media/rc-map.h>
14 static struct ir_scancode rc5_streamzap
[] = {
15 { 0x00, KEY_NUMERIC_0
},
16 { 0x01, KEY_NUMERIC_1
},
17 { 0x02, KEY_NUMERIC_2
},
18 { 0x03, KEY_NUMERIC_3
},
19 { 0x04, KEY_NUMERIC_4
},
20 { 0x05, KEY_NUMERIC_5
},
21 { 0x06, KEY_NUMERIC_6
},
22 { 0x07, KEY_NUMERIC_7
},
23 { 0x08, KEY_NUMERIC_8
},
26 { 0x0c, KEY_CHANNELUP
},
27 { 0x0d, KEY_VOLUMEUP
},
28 { 0x0e, KEY_CHANNELDOWN
},
29 { 0x0f, KEY_VOLUMEDOWN
},
41 { 0x1b, KEY_FORWARD
},
44 { 0x1e, KEY_FASTFORWARD
},
52 static struct rc_keymap rc5_streamzap_map
= {
54 .scan
= rc5_streamzap
,
55 .size
= ARRAY_SIZE(rc5_streamzap
),
56 .ir_type
= IR_TYPE_RC5
,
57 .name
= RC_MAP_RC5_STREAMZAP
,
61 static int __init
init_rc_map_rc5_streamzap(void)
63 return ir_register_map(&rc5_streamzap_map
);
66 static void __exit
exit_rc_map_rc5_streamzap(void)
68 ir_unregister_map(&rc5_streamzap_map
);
71 module_init(init_rc_map_rc5_streamzap
)
72 module_exit(exit_rc_map_rc5_streamzap
)
74 MODULE_LICENSE("GPL");
75 MODULE_AUTHOR("Jarod Wilson <jarod@redhat.com>");