Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux/fpc-iii.git] / drivers / media / rc / keymaps / rc-streamzap.c
blobf9a07578d985957da91ed5324b4bf8393d6d75ea
1 /* rc-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>
13 #include <linux/module.h>
15 static struct rc_map_table streamzap[] = {
17 * The Streamzap remote is almost, but not quite, RC-5, as it has an extra
18 * bit in it, which throws the in-kernel RC-5 decoder for a loop. Currently,
19 * an additional RC-5-sz decoder is being deployed to support it, but it
20 * may be possible to merge it back with the standard RC-5 decoder.
22 { 0x28c0, KEY_NUMERIC_0 },
23 { 0x28c1, KEY_NUMERIC_1 },
24 { 0x28c2, KEY_NUMERIC_2 },
25 { 0x28c3, KEY_NUMERIC_3 },
26 { 0x28c4, KEY_NUMERIC_4 },
27 { 0x28c5, KEY_NUMERIC_5 },
28 { 0x28c6, KEY_NUMERIC_6 },
29 { 0x28c7, KEY_NUMERIC_7 },
30 { 0x28c8, KEY_NUMERIC_8 },
31 { 0x28c9, KEY_NUMERIC_9 },
32 { 0x28ca, KEY_POWER },
33 { 0x28cb, KEY_MUTE },
34 { 0x28cc, KEY_CHANNELUP },
35 { 0x28cd, KEY_VOLUMEUP },
36 { 0x28ce, KEY_CHANNELDOWN },
37 { 0x28cf, KEY_VOLUMEDOWN },
38 { 0x28d0, KEY_UP },
39 { 0x28d1, KEY_LEFT },
40 { 0x28d2, KEY_OK },
41 { 0x28d3, KEY_RIGHT },
42 { 0x28d4, KEY_DOWN },
43 { 0x28d5, KEY_MENU },
44 { 0x28d6, KEY_EXIT },
45 { 0x28d7, KEY_PLAY },
46 { 0x28d8, KEY_PAUSE },
47 { 0x28d9, KEY_STOP },
48 { 0x28da, KEY_BACK },
49 { 0x28db, KEY_FORWARD },
50 { 0x28dc, KEY_RECORD },
51 { 0x28dd, KEY_REWIND },
52 { 0x28de, KEY_FASTFORWARD },
53 { 0x28e0, KEY_RED },
54 { 0x28e1, KEY_GREEN },
55 { 0x28e2, KEY_YELLOW },
56 { 0x28e3, KEY_BLUE },
60 static struct rc_map_list streamzap_map = {
61 .map = {
62 .scan = streamzap,
63 .size = ARRAY_SIZE(streamzap),
64 .rc_type = RC_TYPE_RC5_SZ,
65 .name = RC_MAP_STREAMZAP,
69 static int __init init_rc_map_streamzap(void)
71 return rc_map_register(&streamzap_map);
74 static void __exit exit_rc_map_streamzap(void)
76 rc_map_unregister(&streamzap_map);
79 module_init(init_rc_map_streamzap)
80 module_exit(exit_rc_map_streamzap)
82 MODULE_LICENSE("GPL");
83 MODULE_AUTHOR("Jarod Wilson <jarod@redhat.com>");