These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / media / rc / keymaps / rc-twinhan-dtv-cab-ci.c
1 /* keytable for Twinhan DTV CAB CI Remote Controller
2  *
3  * Copyright (c) 2010 by Igor M. Liplianin <liplianin@me.by>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  */
10
11 #include <media/rc-map.h>
12 #include <linux/module.h>
13
14 static struct rc_map_table twinhan_dtv_cab_ci[] = {
15         { 0x29, KEY_POWER},
16         { 0x28, KEY_FAVORITES},
17         { 0x30, KEY_TEXT},
18         { 0x17, KEY_INFO},              /* Preview */
19         { 0x23, KEY_EPG},
20         { 0x3b, KEY_F22},               /* Record List */
21
22         { 0x3c, KEY_1},
23         { 0x3e, KEY_2},
24         { 0x39, KEY_3},
25         { 0x36, KEY_4},
26         { 0x22, KEY_5},
27         { 0x20, KEY_6},
28         { 0x32, KEY_7},
29         { 0x26, KEY_8},
30         { 0x24, KEY_9},
31         { 0x2a, KEY_0},
32
33         { 0x33, KEY_CANCEL},
34         { 0x2c, KEY_BACK},
35         { 0x15, KEY_CLEAR},
36         { 0x3f, KEY_TAB},
37         { 0x10, KEY_ENTER},
38         { 0x14, KEY_UP},
39         { 0x0d, KEY_RIGHT},
40         { 0x0e, KEY_DOWN},
41         { 0x11, KEY_LEFT},
42
43         { 0x21, KEY_VOLUMEUP},
44         { 0x35, KEY_VOLUMEDOWN},
45         { 0x3d, KEY_CHANNELDOWN},
46         { 0x3a, KEY_CHANNELUP},
47         { 0x2e, KEY_RECORD},
48         { 0x2b, KEY_PLAY},
49         { 0x13, KEY_PAUSE},
50         { 0x25, KEY_STOP},
51
52         { 0x1f, KEY_REWIND},
53         { 0x2d, KEY_FASTFORWARD},
54         { 0x1e, KEY_PREVIOUS},          /* Replay |< */
55         { 0x1d, KEY_NEXT},              /* Skip   >| */
56
57         { 0x0b, KEY_CAMERA},            /* Capture */
58         { 0x0f, KEY_LANGUAGE},          /* SAP */
59         { 0x18, KEY_MODE},              /* PIP */
60         { 0x12, KEY_ZOOM},              /* Full screen */
61         { 0x1c, KEY_SUBTITLE},
62         { 0x2f, KEY_MUTE},
63         { 0x16, KEY_F20},               /* L/R */
64         { 0x38, KEY_F21},               /* Hibernate */
65
66         { 0x37, KEY_SWITCHVIDEOMODE},   /* A/V */
67         { 0x31, KEY_AGAIN},             /* Recall */
68         { 0x1a, KEY_KPPLUS},            /* Zoom+ */
69         { 0x19, KEY_KPMINUS},           /* Zoom- */
70         { 0x27, KEY_RED},
71         { 0x0C, KEY_GREEN},
72         { 0x01, KEY_YELLOW},
73         { 0x00, KEY_BLUE},
74 };
75
76 static struct rc_map_list twinhan_dtv_cab_ci_map = {
77         .map = {
78                 .scan    = twinhan_dtv_cab_ci,
79                 .size    = ARRAY_SIZE(twinhan_dtv_cab_ci),
80                 .rc_type = RC_TYPE_UNKNOWN,     /* Legacy IR type */
81                 .name    = RC_MAP_TWINHAN_DTV_CAB_CI,
82         }
83 };
84
85 static int __init init_rc_map_twinhan_dtv_cab_ci(void)
86 {
87         return rc_map_register(&twinhan_dtv_cab_ci_map);
88 }
89
90 static void __exit exit_rc_map_twinhan_dtv_cab_ci(void)
91 {
92         rc_map_unregister(&twinhan_dtv_cab_ci_map);
93 }
94
95 module_init(init_rc_map_twinhan_dtv_cab_ci);
96 module_exit(exit_rc_map_twinhan_dtv_cab_ci);
97
98 MODULE_LICENSE("GPL");