1 /* winfast.h - Keytable for winfast Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <media/rc-map.h>
14 #include <linux/module.h>
16 /* Table for Leadtek Winfast Remote Controls - used by both bttv and cx88 */
18 static struct rc_map_table winfast
[] = {
32 { 0x1b, KEY_AUDIO
}, /* Audio Source */
33 { 0x02, KEY_TUNER
}, /* TV/FM, not on Y0400052 */
34 { 0x1e, KEY_VIDEO
}, /* Video Source */
35 { 0x16, KEY_INFO
}, /* Display information */
40 { 0x03, KEY_ZOOM
}, /* fullscreen */
41 { 0x1f, KEY_TEXT
}, /* closed caption/teletext */
43 { 0x29, KEY_CLEAR
}, /* boss key */
49 { 0x18, KEY_KPPLUS
}, /* fine tune + , not on Y040052 */
50 { 0x19, KEY_KPMINUS
}, /* fine tune - , not on Y040052 */
51 { 0x2a, KEY_TV2
}, /* PIP (Picture in picture */
54 { 0x11, KEY_LAST
}, /* Recall (last channel */
55 { 0x22, KEY_PREVIOUS
},
56 { 0x23, KEY_PLAYPAUSE
},
58 { 0x25, KEY_TIME
}, /* Time Shifting */
61 { 0x28, KEY_CAMERA
}, /* Screenshot */
64 { 0x31, KEY_CHANNEL
}, /* Channel Surf */
65 { 0x32, KEY_SUBTITLE
},
66 { 0x33, KEY_LANGUAGE
},
68 { 0x35, KEY_FASTFORWARD
},
70 { 0x37, KEY_RADIO
}, /* FM */
73 { 0x1a, KEY_MODE
}, /* change to MCE mode on Y04G0051 */
74 { 0x3e, KEY_VOLUMEUP
}, /* MCE +VOL, on Y04G0033 */
75 { 0x3a, KEY_VOLUMEDOWN
}, /* MCE -VOL, on Y04G0033 */
76 { 0x3b, KEY_CHANNELUP
}, /* MCE +CH, on Y04G0033 */
77 { 0x3f, KEY_CHANNELDOWN
} /* MCE -CH, on Y04G0033 */
80 static struct rc_map_list winfast_map
= {
83 .size
= ARRAY_SIZE(winfast
),
84 .rc_type
= RC_TYPE_UNKNOWN
, /* Legacy IR type */
85 .name
= RC_MAP_WINFAST
,
89 static int __init
init_rc_map_winfast(void)
91 return rc_map_register(&winfast_map
);
94 static void __exit
exit_rc_map_winfast(void)
96 rc_map_unregister(&winfast_map
);
99 module_init(init_rc_map_winfast
)
100 module_exit(exit_rc_map_winfast
)
102 MODULE_LICENSE("GPL");
103 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");