rc-twinhan-dtv-cab-ci.c 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. #include <media/rc-map.h>
  11. #include <linux/module.h>
  12. static struct rc_map_table twinhan_dtv_cab_ci[] = {
  13. { 0x29, KEY_POWER},
  14. { 0x28, KEY_FAVORITES},
  15. { 0x30, KEY_TEXT},
  16. { 0x17, KEY_INFO}, /* Preview */
  17. { 0x23, KEY_EPG},
  18. { 0x3b, KEY_F22}, /* Record List */
  19. { 0x3c, KEY_1},
  20. { 0x3e, KEY_2},
  21. { 0x39, KEY_3},
  22. { 0x36, KEY_4},
  23. { 0x22, KEY_5},
  24. { 0x20, KEY_6},
  25. { 0x32, KEY_7},
  26. { 0x26, KEY_8},
  27. { 0x24, KEY_9},
  28. { 0x2a, KEY_0},
  29. { 0x33, KEY_CANCEL},
  30. { 0x2c, KEY_BACK},
  31. { 0x15, KEY_CLEAR},
  32. { 0x3f, KEY_TAB},
  33. { 0x10, KEY_ENTER},
  34. { 0x14, KEY_UP},
  35. { 0x0d, KEY_RIGHT},
  36. { 0x0e, KEY_DOWN},
  37. { 0x11, KEY_LEFT},
  38. { 0x21, KEY_VOLUMEUP},
  39. { 0x35, KEY_VOLUMEDOWN},
  40. { 0x3d, KEY_CHANNELDOWN},
  41. { 0x3a, KEY_CHANNELUP},
  42. { 0x2e, KEY_RECORD},
  43. { 0x2b, KEY_PLAY},
  44. { 0x13, KEY_PAUSE},
  45. { 0x25, KEY_STOP},
  46. { 0x1f, KEY_REWIND},
  47. { 0x2d, KEY_FASTFORWARD},
  48. { 0x1e, KEY_PREVIOUS}, /* Replay |< */
  49. { 0x1d, KEY_NEXT}, /* Skip >| */
  50. { 0x0b, KEY_CAMERA}, /* Capture */
  51. { 0x0f, KEY_LANGUAGE}, /* SAP */
  52. { 0x18, KEY_MODE}, /* PIP */
  53. { 0x12, KEY_ZOOM}, /* Full screen */
  54. { 0x1c, KEY_SUBTITLE},
  55. { 0x2f, KEY_MUTE},
  56. { 0x16, KEY_F20}, /* L/R */
  57. { 0x38, KEY_F21}, /* Hibernate */
  58. { 0x37, KEY_SWITCHVIDEOMODE}, /* A/V */
  59. { 0x31, KEY_AGAIN}, /* Recall */
  60. { 0x1a, KEY_KPPLUS}, /* Zoom+ */
  61. { 0x19, KEY_KPMINUS}, /* Zoom- */
  62. { 0x27, KEY_RED},
  63. { 0x0C, KEY_GREEN},
  64. { 0x01, KEY_YELLOW},
  65. { 0x00, KEY_BLUE},
  66. };
  67. static struct rc_map_list twinhan_dtv_cab_ci_map = {
  68. .map = {
  69. .scan = twinhan_dtv_cab_ci,
  70. .size = ARRAY_SIZE(twinhan_dtv_cab_ci),
  71. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  72. .name = RC_MAP_TWINHAN_DTV_CAB_CI,
  73. }
  74. };
  75. static int __init init_rc_map_twinhan_dtv_cab_ci(void)
  76. {
  77. return rc_map_register(&twinhan_dtv_cab_ci_map);
  78. }
  79. static void __exit exit_rc_map_twinhan_dtv_cab_ci(void)
  80. {
  81. rc_map_unregister(&twinhan_dtv_cab_ci_map);
  82. }
  83. module_init(init_rc_map_twinhan_dtv_cab_ci);
  84. module_exit(exit_rc_map_twinhan_dtv_cab_ci);
  85. MODULE_LICENSE("GPL");