xref: /linux/drivers/media/rc/keymaps/rc-pixelview.c (revision 32cf86f6d16367db5a10039c1dd938a2427d697c)
1*32cf86f6SMauro Carvalho Chehab /* pixelview.h - Keytable for pixelview Remote Controller
2*32cf86f6SMauro Carvalho Chehab  *
3*32cf86f6SMauro Carvalho Chehab  * keymap imported from ir-keymaps.c
4*32cf86f6SMauro Carvalho Chehab  *
5*32cf86f6SMauro Carvalho Chehab  * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
6*32cf86f6SMauro Carvalho Chehab  *
7*32cf86f6SMauro Carvalho Chehab  * This program is free software; you can redistribute it and/or modify
8*32cf86f6SMauro Carvalho Chehab  * it under the terms of the GNU General Public License as published by
9*32cf86f6SMauro Carvalho Chehab  * the Free Software Foundation; either version 2 of the License, or
10*32cf86f6SMauro Carvalho Chehab  * (at your option) any later version.
11*32cf86f6SMauro Carvalho Chehab  */
12*32cf86f6SMauro Carvalho Chehab 
13*32cf86f6SMauro Carvalho Chehab #include <media/rc-map.h>
14*32cf86f6SMauro Carvalho Chehab 
15*32cf86f6SMauro Carvalho Chehab static struct ir_scancode pixelview[] = {
16*32cf86f6SMauro Carvalho Chehab 
17*32cf86f6SMauro Carvalho Chehab 	{ 0x1e, KEY_POWER },	/* power */
18*32cf86f6SMauro Carvalho Chehab 	{ 0x07, KEY_MEDIA },	/* source */
19*32cf86f6SMauro Carvalho Chehab 	{ 0x1c, KEY_SEARCH },	/* scan */
20*32cf86f6SMauro Carvalho Chehab 
21*32cf86f6SMauro Carvalho Chehab 
22*32cf86f6SMauro Carvalho Chehab 	{ 0x03, KEY_TUNER },		/* TV/FM */
23*32cf86f6SMauro Carvalho Chehab 
24*32cf86f6SMauro Carvalho Chehab 	{ 0x00, KEY_RECORD },
25*32cf86f6SMauro Carvalho Chehab 	{ 0x08, KEY_STOP },
26*32cf86f6SMauro Carvalho Chehab 	{ 0x11, KEY_PLAY },
27*32cf86f6SMauro Carvalho Chehab 
28*32cf86f6SMauro Carvalho Chehab 	{ 0x1a, KEY_PLAYPAUSE },	/* freeze */
29*32cf86f6SMauro Carvalho Chehab 	{ 0x19, KEY_ZOOM },		/* zoom */
30*32cf86f6SMauro Carvalho Chehab 	{ 0x0f, KEY_TEXT },		/* min */
31*32cf86f6SMauro Carvalho Chehab 
32*32cf86f6SMauro Carvalho Chehab 	{ 0x01, KEY_1 },
33*32cf86f6SMauro Carvalho Chehab 	{ 0x0b, KEY_2 },
34*32cf86f6SMauro Carvalho Chehab 	{ 0x1b, KEY_3 },
35*32cf86f6SMauro Carvalho Chehab 	{ 0x05, KEY_4 },
36*32cf86f6SMauro Carvalho Chehab 	{ 0x09, KEY_5 },
37*32cf86f6SMauro Carvalho Chehab 	{ 0x15, KEY_6 },
38*32cf86f6SMauro Carvalho Chehab 	{ 0x06, KEY_7 },
39*32cf86f6SMauro Carvalho Chehab 	{ 0x0a, KEY_8 },
40*32cf86f6SMauro Carvalho Chehab 	{ 0x12, KEY_9 },
41*32cf86f6SMauro Carvalho Chehab 	{ 0x02, KEY_0 },
42*32cf86f6SMauro Carvalho Chehab 	{ 0x10, KEY_LAST },		/* +100 */
43*32cf86f6SMauro Carvalho Chehab 	{ 0x13, KEY_LIST },		/* recall */
44*32cf86f6SMauro Carvalho Chehab 
45*32cf86f6SMauro Carvalho Chehab 	{ 0x1f, KEY_CHANNELUP },	/* chn down */
46*32cf86f6SMauro Carvalho Chehab 	{ 0x17, KEY_CHANNELDOWN },	/* chn up */
47*32cf86f6SMauro Carvalho Chehab 	{ 0x16, KEY_VOLUMEUP },		/* vol down */
48*32cf86f6SMauro Carvalho Chehab 	{ 0x14, KEY_VOLUMEDOWN },	/* vol up */
49*32cf86f6SMauro Carvalho Chehab 
50*32cf86f6SMauro Carvalho Chehab 	{ 0x04, KEY_KPMINUS },		/* <<< */
51*32cf86f6SMauro Carvalho Chehab 	{ 0x0e, KEY_SETUP },		/* function */
52*32cf86f6SMauro Carvalho Chehab 	{ 0x0c, KEY_KPPLUS },		/* >>> */
53*32cf86f6SMauro Carvalho Chehab 
54*32cf86f6SMauro Carvalho Chehab 	{ 0x0d, KEY_GOTO },		/* mts */
55*32cf86f6SMauro Carvalho Chehab 	{ 0x1d, KEY_REFRESH },		/* reset */
56*32cf86f6SMauro Carvalho Chehab 	{ 0x18, KEY_MUTE },		/* mute/unmute */
57*32cf86f6SMauro Carvalho Chehab };
58*32cf86f6SMauro Carvalho Chehab 
59*32cf86f6SMauro Carvalho Chehab static struct rc_keymap pixelview_map = {
60*32cf86f6SMauro Carvalho Chehab 	.map = {
61*32cf86f6SMauro Carvalho Chehab 		.scan    = pixelview,
62*32cf86f6SMauro Carvalho Chehab 		.size    = ARRAY_SIZE(pixelview),
63*32cf86f6SMauro Carvalho Chehab 		.ir_type = IR_TYPE_UNKNOWN,	/* Legacy IR type */
64*32cf86f6SMauro Carvalho Chehab 		.name    = RC_MAP_PIXELVIEW,
65*32cf86f6SMauro Carvalho Chehab 	}
66*32cf86f6SMauro Carvalho Chehab };
67*32cf86f6SMauro Carvalho Chehab 
68*32cf86f6SMauro Carvalho Chehab static int __init init_rc_map_pixelview(void)
69*32cf86f6SMauro Carvalho Chehab {
70*32cf86f6SMauro Carvalho Chehab 	return ir_register_map(&pixelview_map);
71*32cf86f6SMauro Carvalho Chehab }
72*32cf86f6SMauro Carvalho Chehab 
73*32cf86f6SMauro Carvalho Chehab static void __exit exit_rc_map_pixelview(void)
74*32cf86f6SMauro Carvalho Chehab {
75*32cf86f6SMauro Carvalho Chehab 	ir_unregister_map(&pixelview_map);
76*32cf86f6SMauro Carvalho Chehab }
77*32cf86f6SMauro Carvalho Chehab 
78*32cf86f6SMauro Carvalho Chehab module_init(init_rc_map_pixelview)
79*32cf86f6SMauro Carvalho Chehab module_exit(exit_rc_map_pixelview)
80*32cf86f6SMauro Carvalho Chehab 
81*32cf86f6SMauro Carvalho Chehab MODULE_LICENSE("GPL");
82*32cf86f6SMauro Carvalho Chehab MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
83