1 // SPDX-License-Identifier: GPL-2.0+
2 // eztv.h - Keytable for eztv 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 /* Alfons Geser <a.geser@cox.net>
12 * updates from Job D. R. Borges <jobdrb@ig.com.br> */
14 static struct rc_map_table eztv
[] = {
16 { 0x01, KEY_TV
}, /* DVR */
17 { 0x15, KEY_DVD
}, /* DVD */
18 { 0x17, KEY_AUDIO
}, /* music */
19 /* DVR mode / DVD mode / music mode */
21 { 0x1b, KEY_MUTE
}, /* mute */
22 { 0x02, KEY_LANGUAGE
}, /* MTS/SAP / audio / autoseek */
23 { 0x1e, KEY_SUBTITLE
}, /* closed captioning / subtitle / seek */
24 { 0x16, KEY_ZOOM
}, /* full screen */
25 { 0x1c, KEY_VIDEO
}, /* video source / eject / delall */
26 { 0x1d, KEY_RESTART
}, /* playback / angle / del */
27 { 0x2f, KEY_SEARCH
}, /* scan / menu / playlist */
28 { 0x30, KEY_CHANNEL
}, /* CH surfing / bookmark / memo */
30 { 0x31, KEY_HELP
}, /* help */
31 { 0x32, KEY_MODE
}, /* num/memo */
32 { 0x33, KEY_ESC
}, /* cancel */
34 { 0x0c, KEY_UP
}, /* up */
35 { 0x10, KEY_DOWN
}, /* down */
36 { 0x08, KEY_LEFT
}, /* left */
37 { 0x04, KEY_RIGHT
}, /* right */
38 { 0x03, KEY_SELECT
}, /* select */
40 { 0x1f, KEY_REWIND
}, /* rewind */
41 { 0x20, KEY_PLAYPAUSE
},/* play/pause */
42 { 0x29, KEY_FORWARD
}, /* forward */
43 { 0x14, KEY_AGAIN
}, /* repeat */
44 { 0x2b, KEY_RECORD
}, /* recording */
45 { 0x2c, KEY_STOP
}, /* stop */
46 { 0x2d, KEY_PLAY
}, /* play */
47 { 0x2e, KEY_CAMERA
}, /* snapshot / shuffle */
60 { 0x2a, KEY_VOLUMEUP
},
61 { 0x11, KEY_VOLUMEDOWN
},
62 { 0x18, KEY_CHANNELUP
},/* CH.tracking up */
63 { 0x19, KEY_CHANNELDOWN
},/* CH.tracking down */
65 { 0x13, KEY_ENTER
}, /* enter */
66 { 0x21, KEY_DOT
}, /* . (decimal dot) */
69 static struct rc_map_list eztv_map
= {
72 .size
= ARRAY_SIZE(eztv
),
73 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
78 static int __init
init_rc_map_eztv(void)
80 return rc_map_register(&eztv_map
);
83 static void __exit
exit_rc_map_eztv(void)
85 rc_map_unregister(&eztv_map
);
88 module_init(init_rc_map_eztv
)
89 module_exit(exit_rc_map_eztv
)
91 MODULE_LICENSE("GPL");
92 MODULE_AUTHOR("Mauro Carvalho Chehab");