1 /* keytable for Twinhan DTV CAB CI Remote Controller
3 * Copyright (c) 2010 by Igor M. Liplianin <liplianin@me.by>
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.
11 #include <media/rc-map.h>
12 #include <linux/module.h>
14 static struct rc_map_table twinhan_dtv_cab_ci[] = {
16 { 0x28, KEY_FAVORITES},
18 { 0x17, KEY_INFO}, /* Preview */
20 { 0x3b, KEY_F22}, /* Record List */
43 { 0x21, KEY_VOLUMEUP},
44 { 0x35, KEY_VOLUMEDOWN},
45 { 0x3d, KEY_CHANNELDOWN},
46 { 0x3a, KEY_CHANNELUP},
53 { 0x2d, KEY_FASTFORWARD},
54 { 0x1e, KEY_PREVIOUS}, /* Replay |< */
55 { 0x1d, KEY_NEXT}, /* Skip >| */
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},
63 { 0x16, KEY_F20}, /* L/R */
64 { 0x38, KEY_F21}, /* Hibernate */
66 { 0x37, KEY_SWITCHVIDEOMODE}, /* A/V */
67 { 0x31, KEY_AGAIN}, /* Recall */
68 { 0x1a, KEY_KPPLUS}, /* Zoom+ */
69 { 0x19, KEY_KPMINUS}, /* Zoom- */
76 static struct rc_map_list twinhan_dtv_cab_ci_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,
85 static int __init init_rc_map_twinhan_dtv_cab_ci(void)
87 return rc_map_register(&twinhan_dtv_cab_ci_map);
90 static void __exit exit_rc_map_twinhan_dtv_cab_ci(void)
92 rc_map_unregister(&twinhan_dtv_cab_ci_map);
95 module_init(init_rc_map_twinhan_dtv_cab_ci);
96 module_exit(exit_rc_map_twinhan_dtv_cab_ci);
98 MODULE_LICENSE("GPL");