1 // SPDX-License-Identifier: GPL-2.0+
2 // terratec-cinergy-xs.h - Keytable for terratec_cinergy_xs Remote Controller
4 // keymap imported from ir-keymaps.c
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 /* Terratec Cinergy Hybrid T USB XS
12 Devin Heitmueller <dheitmueller@linuxtv.org>
15 static struct rc_map_table terratec_cinergy_xs
[] = {
19 { 0x02, KEY_NUMERIC_1
},
20 { 0x03, KEY_NUMERIC_2
},
21 { 0x04, KEY_NUMERIC_3
},
22 { 0x43, KEY_SUBTITLE
},
23 { 0x05, KEY_NUMERIC_4
},
24 { 0x06, KEY_NUMERIC_5
},
25 { 0x07, KEY_NUMERIC_6
},
27 { 0x08, KEY_NUMERIC_7
},
28 { 0x09, KEY_NUMERIC_8
},
29 { 0x0a, KEY_NUMERIC_9
},
32 { 0x0c, KEY_NUMERIC_0
},
45 { 0x4d, KEY_BACKSPACE
},
46 { 0x1c, KEY_VOLUMEUP
},
48 { 0x1b, KEY_CHANNELUP
},
49 { 0x1e, KEY_VOLUMEDOWN
},
51 { 0x1f, KEY_CHANNELDOWN
},
61 { 0x4f, KEY_FASTFORWARD
},
65 static struct rc_map_list terratec_cinergy_xs_map
= {
67 .scan
= terratec_cinergy_xs
,
68 .size
= ARRAY_SIZE(terratec_cinergy_xs
),
69 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
70 .name
= RC_MAP_TERRATEC_CINERGY_XS
,
74 static int __init
init_rc_map_terratec_cinergy_xs(void)
76 return rc_map_register(&terratec_cinergy_xs_map
);
79 static void __exit
exit_rc_map_terratec_cinergy_xs(void)
81 rc_map_unregister(&terratec_cinergy_xs_map
);
84 module_init(init_rc_map_terratec_cinergy_xs
)
85 module_exit(exit_rc_map_terratec_cinergy_xs
)
87 MODULE_LICENSE("GPL");
88 MODULE_AUTHOR("Mauro Carvalho Chehab");