1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* keytable for Terratec Cinergy C PCI Remote Controller
4 * Copyright (c) 2010 by Igor M. Liplianin <liplianin@me.by>
7 #include <media/rc-map.h>
8 #include <linux/module.h>
10 static struct rc_map_table terratec_cinergy_c_pci
[] = {
12 { 0x3d, KEY_NUMERIC_1
},
13 { 0x3c, KEY_NUMERIC_2
},
14 { 0x3b, KEY_NUMERIC_3
},
15 { 0x3a, KEY_NUMERIC_4
},
16 { 0x39, KEY_NUMERIC_5
},
17 { 0x38, KEY_NUMERIC_6
},
18 { 0x37, KEY_NUMERIC_7
},
19 { 0x36, KEY_NUMERIC_8
},
20 { 0x35, KEY_NUMERIC_9
},
21 { 0x34, KEY_VIDEO_NEXT
}, /* AV */
22 { 0x33, KEY_NUMERIC_0
},
35 { 0x24, KEY_CHANNELUP
},
36 { 0x23, KEY_VOLUMEUP
},
38 { 0x21, KEY_VOLUMEDOWN
},
39 { 0x20, KEY_CHANNELDOWN
},
42 { 0x1d, KEY_MENU
}, /* DVD Menu */
43 { 0x1c, KEY_SUBTITLE
},
44 { 0x1b, KEY_TEXT
}, /* Teletext */
50 { 0x15, KEY_AUDIO
}, /* Music */
51 { 0x14, KEY_SCREEN
}, /* Pic */
55 { 0x10, KEY_FASTFORWARD
},
56 { 0x0b, KEY_PREVIOUS
},
62 static struct rc_map_list terratec_cinergy_c_pci_map
= {
64 .scan
= terratec_cinergy_c_pci
,
65 .size
= ARRAY_SIZE(terratec_cinergy_c_pci
),
66 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
67 .name
= RC_MAP_TERRATEC_CINERGY_C_PCI
,
71 static int __init
init_rc_map_terratec_cinergy_c_pci(void)
73 return rc_map_register(&terratec_cinergy_c_pci_map
);
76 static void __exit
exit_rc_map_terratec_cinergy_c_pci(void)
78 rc_map_unregister(&terratec_cinergy_c_pci_map
);
81 module_init(init_rc_map_terratec_cinergy_c_pci
);
82 module_exit(exit_rc_map_terratec_cinergy_c_pci
);
84 MODULE_LICENSE("GPL");