rc-dib0700-nec.c 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // rc-dvb0700-big.c - Keytable for devices in dvb0700
  3. //
  4. // Copyright (c) 2010 by Mauro Carvalho Chehab
  5. //
  6. // TODO: This table is a real mess, as it merges RC codes from several
  7. // devices into a big table. It also has both RC-5 and NEC codes inside.
  8. // It should be broken into small tables, and the protocols should properly
  9. // be identificated.
  10. //
  11. // The table were imported from dib0700_devices.c.
  12. #include <media/rc-map.h>
  13. #include <linux/module.h>
  14. static struct rc_map_table dib0700_nec_table[] = {
  15. /* Key codes for the Pixelview SBTVD remote */
  16. { 0x866b13, KEY_MUTE },
  17. { 0x866b12, KEY_POWER },
  18. { 0x866b01, KEY_1 },
  19. { 0x866b02, KEY_2 },
  20. { 0x866b03, KEY_3 },
  21. { 0x866b04, KEY_4 },
  22. { 0x866b05, KEY_5 },
  23. { 0x866b06, KEY_6 },
  24. { 0x866b07, KEY_7 },
  25. { 0x866b08, KEY_8 },
  26. { 0x866b09, KEY_9 },
  27. { 0x866b00, KEY_0 },
  28. { 0x866b0d, KEY_CHANNELUP },
  29. { 0x866b19, KEY_CHANNELDOWN },
  30. { 0x866b10, KEY_VOLUMEUP },
  31. { 0x866b0c, KEY_VOLUMEDOWN },
  32. { 0x866b0a, KEY_CAMERA },
  33. { 0x866b0b, KEY_ZOOM },
  34. { 0x866b1b, KEY_BACKSPACE },
  35. { 0x866b15, KEY_ENTER },
  36. { 0x866b1d, KEY_UP },
  37. { 0x866b1e, KEY_DOWN },
  38. { 0x866b0e, KEY_LEFT },
  39. { 0x866b0f, KEY_RIGHT },
  40. { 0x866b18, KEY_RECORD },
  41. { 0x866b1a, KEY_STOP },
  42. /* Key codes for the EvolutePC TVWay+ remote */
  43. { 0x7a00, KEY_MENU },
  44. { 0x7a01, KEY_RECORD },
  45. { 0x7a02, KEY_PLAY },
  46. { 0x7a03, KEY_STOP },
  47. { 0x7a10, KEY_CHANNELUP },
  48. { 0x7a11, KEY_CHANNELDOWN },
  49. { 0x7a12, KEY_VOLUMEUP },
  50. { 0x7a13, KEY_VOLUMEDOWN },
  51. { 0x7a40, KEY_POWER },
  52. { 0x7a41, KEY_MUTE },
  53. /* Key codes for the Elgato EyeTV Diversity silver remote */
  54. { 0x4501, KEY_POWER },
  55. { 0x4502, KEY_MUTE },
  56. { 0x4503, KEY_1 },
  57. { 0x4504, KEY_2 },
  58. { 0x4505, KEY_3 },
  59. { 0x4506, KEY_4 },
  60. { 0x4507, KEY_5 },
  61. { 0x4508, KEY_6 },
  62. { 0x4509, KEY_7 },
  63. { 0x450a, KEY_8 },
  64. { 0x450b, KEY_9 },
  65. { 0x450c, KEY_LAST },
  66. { 0x450d, KEY_0 },
  67. { 0x450e, KEY_ENTER },
  68. { 0x450f, KEY_RED },
  69. { 0x4510, KEY_CHANNELUP },
  70. { 0x4511, KEY_GREEN },
  71. { 0x4512, KEY_VOLUMEDOWN },
  72. { 0x4513, KEY_OK },
  73. { 0x4514, KEY_VOLUMEUP },
  74. { 0x4515, KEY_YELLOW },
  75. { 0x4516, KEY_CHANNELDOWN },
  76. { 0x4517, KEY_BLUE },
  77. { 0x4518, KEY_LEFT }, /* Skip backwards */
  78. { 0x4519, KEY_PLAYPAUSE },
  79. { 0x451a, KEY_RIGHT }, /* Skip forward */
  80. { 0x451b, KEY_REWIND },
  81. { 0x451c, KEY_L }, /* Live */
  82. { 0x451d, KEY_FASTFORWARD },
  83. { 0x451e, KEY_STOP }, /* 'Reveal' for Teletext */
  84. { 0x451f, KEY_MENU }, /* KEY_TEXT for Teletext */
  85. { 0x4540, KEY_RECORD }, /* Font 'Size' for Teletext */
  86. { 0x4541, KEY_SCREEN }, /* Full screen toggle, 'Hold' for Teletext */
  87. { 0x4542, KEY_SELECT }, /* Select video input, 'Select' for Teletext */
  88. };
  89. static struct rc_map_list dib0700_nec_map = {
  90. .map = {
  91. .scan = dib0700_nec_table,
  92. .size = ARRAY_SIZE(dib0700_nec_table),
  93. .rc_proto = RC_PROTO_NEC,
  94. .name = RC_MAP_DIB0700_NEC_TABLE,
  95. }
  96. };
  97. static int __init init_rc_map(void)
  98. {
  99. return rc_map_register(&dib0700_nec_map);
  100. }
  101. static void __exit exit_rc_map(void)
  102. {
  103. rc_map_unregister(&dib0700_nec_map);
  104. }
  105. module_init(init_rc_map)
  106. module_exit(exit_rc_map)
  107. MODULE_LICENSE("GPL");
  108. MODULE_AUTHOR("Mauro Carvalho Chehab");