1 // SPDX-License-Identifier: GPL-2.0+
2 // pv951.h - Keytable for pv951 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 /* Mark Phalan <phalanm@o2.ie> */
13 static struct rc_map_table pv951
[] = {
27 { 0x1f, KEY_VOLUMEDOWN
},
28 { 0x1b, KEY_VOLUMEUP
},
29 { 0x1a, KEY_CHANNELUP
},
30 { 0x1e, KEY_CHANNELDOWN
},
32 { 0x1d, KEY_PAGEDOWN
},
35 { 0x18, KEY_KPPLUSMINUS
}, /* CH +/- */
36 { 0x16, KEY_SUBTITLE
}, /* CC */
37 { 0x0d, KEY_TEXT
}, /* TTX */
38 { 0x0b, KEY_TV
}, /* AIR/CBL */
39 { 0x11, KEY_PC
}, /* PC/TV */
40 { 0x17, KEY_OK
}, /* CH RTN */
41 { 0x19, KEY_MODE
}, /* FUNC */
42 { 0x0c, KEY_SEARCH
}, /* AUTOSCAN */
44 /* Not sure what to do with these ones! */
45 { 0x0f, KEY_VIDEO
}, /* SOURCE */
46 { 0x0a, KEY_KPPLUS
}, /* +100 */
47 { 0x14, KEY_EQUAL
}, /* SYNC */
48 { 0x1c, KEY_TV
}, /* PC/TV */
51 static struct rc_map_list pv951_map
= {
54 .size
= ARRAY_SIZE(pv951
),
55 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
60 static int __init
init_rc_map_pv951(void)
62 return rc_map_register(&pv951_map
);
65 static void __exit
exit_rc_map_pv951(void)
67 rc_map_unregister(&pv951_map
);
70 module_init(init_rc_map_pv951
)
71 module_exit(exit_rc_map_pv951
)
73 MODULE_LICENSE("GPL");
74 MODULE_AUTHOR("Mauro Carvalho Chehab");