12874c5fdSThomas Gleixner // SPDX-License-Identifier: GPL-2.0-or-later
21c35cf9cSJan Klötzke /* keytable for Twinhan DTV CAB CI Remote Controller
31c35cf9cSJan Klötzke *
41c35cf9cSJan Klötzke * Copyright (c) 2010 by Igor M. Liplianin <liplianin@me.by>
51c35cf9cSJan Klötzke */
61c35cf9cSJan Klötzke
71c35cf9cSJan Klötzke #include <media/rc-map.h>
81c35cf9cSJan Klötzke #include <linux/module.h>
91c35cf9cSJan Klötzke
101c35cf9cSJan Klötzke static struct rc_map_table twinhan_dtv_cab_ci[] = {
111c35cf9cSJan Klötzke { 0x29, KEY_POWER},
121c35cf9cSJan Klötzke { 0x28, KEY_FAVORITES},
131c35cf9cSJan Klötzke { 0x30, KEY_TEXT},
141c35cf9cSJan Klötzke { 0x17, KEY_INFO}, /* Preview */
151c35cf9cSJan Klötzke { 0x23, KEY_EPG},
161c35cf9cSJan Klötzke { 0x3b, KEY_F22}, /* Record List */
171c35cf9cSJan Klötzke
18*1910ea42SBastien Nocera { 0x3c, KEY_NUMERIC_1},
19*1910ea42SBastien Nocera { 0x3e, KEY_NUMERIC_2},
20*1910ea42SBastien Nocera { 0x39, KEY_NUMERIC_3},
21*1910ea42SBastien Nocera { 0x36, KEY_NUMERIC_4},
22*1910ea42SBastien Nocera { 0x22, KEY_NUMERIC_5},
23*1910ea42SBastien Nocera { 0x20, KEY_NUMERIC_6},
24*1910ea42SBastien Nocera { 0x32, KEY_NUMERIC_7},
25*1910ea42SBastien Nocera { 0x26, KEY_NUMERIC_8},
26*1910ea42SBastien Nocera { 0x24, KEY_NUMERIC_9},
27*1910ea42SBastien Nocera { 0x2a, KEY_NUMERIC_0},
281c35cf9cSJan Klötzke
291c35cf9cSJan Klötzke { 0x33, KEY_CANCEL},
301c35cf9cSJan Klötzke { 0x2c, KEY_BACK},
311c35cf9cSJan Klötzke { 0x15, KEY_CLEAR},
321c35cf9cSJan Klötzke { 0x3f, KEY_TAB},
331c35cf9cSJan Klötzke { 0x10, KEY_ENTER},
341c35cf9cSJan Klötzke { 0x14, KEY_UP},
351c35cf9cSJan Klötzke { 0x0d, KEY_RIGHT},
361c35cf9cSJan Klötzke { 0x0e, KEY_DOWN},
371c35cf9cSJan Klötzke { 0x11, KEY_LEFT},
381c35cf9cSJan Klötzke
391c35cf9cSJan Klötzke { 0x21, KEY_VOLUMEUP},
401c35cf9cSJan Klötzke { 0x35, KEY_VOLUMEDOWN},
411c35cf9cSJan Klötzke { 0x3d, KEY_CHANNELDOWN},
421c35cf9cSJan Klötzke { 0x3a, KEY_CHANNELUP},
431c35cf9cSJan Klötzke { 0x2e, KEY_RECORD},
441c35cf9cSJan Klötzke { 0x2b, KEY_PLAY},
451c35cf9cSJan Klötzke { 0x13, KEY_PAUSE},
461c35cf9cSJan Klötzke { 0x25, KEY_STOP},
471c35cf9cSJan Klötzke
481c35cf9cSJan Klötzke { 0x1f, KEY_REWIND},
491c35cf9cSJan Klötzke { 0x2d, KEY_FASTFORWARD},
501c35cf9cSJan Klötzke { 0x1e, KEY_PREVIOUS}, /* Replay |< */
511c35cf9cSJan Klötzke { 0x1d, KEY_NEXT}, /* Skip >| */
521c35cf9cSJan Klötzke
531c35cf9cSJan Klötzke { 0x0b, KEY_CAMERA}, /* Capture */
541c35cf9cSJan Klötzke { 0x0f, KEY_LANGUAGE}, /* SAP */
551c35cf9cSJan Klötzke { 0x18, KEY_MODE}, /* PIP */
561c35cf9cSJan Klötzke { 0x12, KEY_ZOOM}, /* Full screen */
571c35cf9cSJan Klötzke { 0x1c, KEY_SUBTITLE},
581c35cf9cSJan Klötzke { 0x2f, KEY_MUTE},
591c35cf9cSJan Klötzke { 0x16, KEY_F20}, /* L/R */
601c35cf9cSJan Klötzke { 0x38, KEY_F21}, /* Hibernate */
611c35cf9cSJan Klötzke
621c35cf9cSJan Klötzke { 0x37, KEY_SWITCHVIDEOMODE}, /* A/V */
631c35cf9cSJan Klötzke { 0x31, KEY_AGAIN}, /* Recall */
641c35cf9cSJan Klötzke { 0x1a, KEY_KPPLUS}, /* Zoom+ */
651c35cf9cSJan Klötzke { 0x19, KEY_KPMINUS}, /* Zoom- */
661c35cf9cSJan Klötzke { 0x27, KEY_RED},
671c35cf9cSJan Klötzke { 0x0C, KEY_GREEN},
681c35cf9cSJan Klötzke { 0x01, KEY_YELLOW},
691c35cf9cSJan Klötzke { 0x00, KEY_BLUE},
701c35cf9cSJan Klötzke };
711c35cf9cSJan Klötzke
721c35cf9cSJan Klötzke static struct rc_map_list twinhan_dtv_cab_ci_map = {
731c35cf9cSJan Klötzke .map = {
741c35cf9cSJan Klötzke .scan = twinhan_dtv_cab_ci,
751c35cf9cSJan Klötzke .size = ARRAY_SIZE(twinhan_dtv_cab_ci),
766d741bfeSSean Young .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
771c35cf9cSJan Klötzke .name = RC_MAP_TWINHAN_DTV_CAB_CI,
781c35cf9cSJan Klötzke }
791c35cf9cSJan Klötzke };
801c35cf9cSJan Klötzke
init_rc_map_twinhan_dtv_cab_ci(void)811c35cf9cSJan Klötzke static int __init init_rc_map_twinhan_dtv_cab_ci(void)
821c35cf9cSJan Klötzke {
831c35cf9cSJan Klötzke return rc_map_register(&twinhan_dtv_cab_ci_map);
841c35cf9cSJan Klötzke }
851c35cf9cSJan Klötzke
exit_rc_map_twinhan_dtv_cab_ci(void)861c35cf9cSJan Klötzke static void __exit exit_rc_map_twinhan_dtv_cab_ci(void)
871c35cf9cSJan Klötzke {
881c35cf9cSJan Klötzke rc_map_unregister(&twinhan_dtv_cab_ci_map);
891c35cf9cSJan Klötzke }
901c35cf9cSJan Klötzke
911c35cf9cSJan Klötzke module_init(init_rc_map_twinhan_dtv_cab_ci);
921c35cf9cSJan Klötzke module_exit(exit_rc_map_twinhan_dtv_cab_ci);
931c35cf9cSJan Klötzke
941c35cf9cSJan Klötzke MODULE_LICENSE("GPL");
95