1 // SPDX-License-Identifier: GPL-2.0+
2 // winfast-usbii-deluxe.h - Keytable for winfast_usbii_deluxe Remote Controller
3 //
4 // keymap imported from ir-keymaps.c
5 //
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
7 
8 #include <media/rc-map.h>
9 #include <linux/module.h>
10 
11 /* Leadtek Winfast TV USB II Deluxe remote
12    Magnus Alm <magnus.alm@gmail.com>
13  */
14 
15 static struct rc_map_table winfast_usbii_deluxe[] = {
16 	{ 0x62, KEY_NUMERIC_0},
17 	{ 0x75, KEY_NUMERIC_1},
18 	{ 0x76, KEY_NUMERIC_2},
19 	{ 0x77, KEY_NUMERIC_3},
20 	{ 0x79, KEY_NUMERIC_4},
21 	{ 0x7a, KEY_NUMERIC_5},
22 	{ 0x7b, KEY_NUMERIC_6},
23 	{ 0x7d, KEY_NUMERIC_7},
24 	{ 0x7e, KEY_NUMERIC_8},
25 	{ 0x7f, KEY_NUMERIC_9},
26 
27 	{ 0x38, KEY_CAMERA},		/* SNAPSHOT */
28 	{ 0x37, KEY_RECORD},		/* RECORD */
29 	{ 0x35, KEY_TIME},		/* TIMESHIFT */
30 
31 	{ 0x74, KEY_VOLUMEUP},		/* VOLUMEUP */
32 	{ 0x78, KEY_VOLUMEDOWN},	/* VOLUMEDOWN */
33 	{ 0x64, KEY_MUTE},		/* MUTE */
34 
35 	{ 0x21, KEY_CHANNEL},		/* SURF */
36 	{ 0x7c, KEY_CHANNELUP},		/* CHANNELUP */
37 	{ 0x60, KEY_CHANNELDOWN},	/* CHANNELDOWN */
38 	{ 0x61, KEY_LAST},		/* LAST CHANNEL (RECALL) */
39 
40 	{ 0x72, KEY_VIDEO},		/* INPUT MODES (TV/FM) */
41 
42 	{ 0x70, KEY_POWER2},		/* TV ON/OFF */
43 
44 	{ 0x39, KEY_CYCLEWINDOWS},	/* MINIMIZE (BOSS) */
45 	{ 0x3a, KEY_NEW},		/* PIP */
46 	{ 0x73, KEY_ZOOM},		/* FULLSECREEN */
47 
48 	{ 0x66, KEY_INFO},		/* OSD (DISPLAY) */
49 
50 	{ 0x31, KEY_DOT},		/* '.' */
51 	{ 0x63, KEY_ENTER},		/* ENTER */
52 
53 };
54 
55 static struct rc_map_list winfast_usbii_deluxe_map = {
56 	.map = {
57 		.scan     = winfast_usbii_deluxe,
58 		.size     = ARRAY_SIZE(winfast_usbii_deluxe),
59 		.rc_proto = RC_PROTO_UNKNOWN,	/* Legacy IR type */
60 		.name     = RC_MAP_WINFAST_USBII_DELUXE,
61 	}
62 };
63 
64 static int __init init_rc_map_winfast_usbii_deluxe(void)
65 {
66 	return rc_map_register(&winfast_usbii_deluxe_map);
67 }
68 
69 static void __exit exit_rc_map_winfast_usbii_deluxe(void)
70 {
71 	rc_map_unregister(&winfast_usbii_deluxe_map);
72 }
73 
74 module_init(init_rc_map_winfast_usbii_deluxe)
75 module_exit(exit_rc_map_winfast_usbii_deluxe)
76 
77 MODULE_LICENSE("GPL");
78 MODULE_AUTHOR("Mauro Carvalho Chehab");
79