rc-nec-terratec-cinergy-xs.c 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /* nec-terratec-cinergy-xs.h - Keytable for nec_terratec_cinergy_xs Remote Controller
  2. *
  3. * keymap imported from ir-keymaps.c
  4. *
  5. * Copyright (c) 2010 by Mauro Carvalho Chehab
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. */
  12. #include <media/rc-map.h>
  13. #include <linux/module.h>
  14. /* Terratec Cinergy Hybrid T USB XS FM
  15. Mauro Carvalho Chehab
  16. */
  17. static struct rc_map_table nec_terratec_cinergy_xs[] = {
  18. /* Terratec Grey IR, with most keys in orange */
  19. { 0x1441, KEY_HOME},
  20. { 0x1401, KEY_POWER2},
  21. { 0x1442, KEY_MENU}, /* DVD menu */
  22. { 0x1443, KEY_SUBTITLE},
  23. { 0x1444, KEY_TEXT}, /* Teletext */
  24. { 0x1445, KEY_DELETE},
  25. { 0x1402, KEY_1},
  26. { 0x1403, KEY_2},
  27. { 0x1404, KEY_3},
  28. { 0x1405, KEY_4},
  29. { 0x1406, KEY_5},
  30. { 0x1407, KEY_6},
  31. { 0x1408, KEY_7},
  32. { 0x1409, KEY_8},
  33. { 0x140a, KEY_9},
  34. { 0x140c, KEY_0},
  35. { 0x140b, KEY_TUNER}, /* AV */
  36. { 0x140d, KEY_MODE}, /* A.B */
  37. { 0x1446, KEY_TV},
  38. { 0x1447, KEY_DVD},
  39. { 0x1449, KEY_VIDEO},
  40. { 0x144a, KEY_RADIO}, /* Music */
  41. { 0x144b, KEY_CAMERA}, /* PIC */
  42. { 0x1410, KEY_UP},
  43. { 0x1411, KEY_LEFT},
  44. { 0x1412, KEY_OK},
  45. { 0x1413, KEY_RIGHT},
  46. { 0x1414, KEY_DOWN},
  47. { 0x140f, KEY_EPG},
  48. { 0x1416, KEY_INFO},
  49. { 0x144d, KEY_BACKSPACE},
  50. { 0x141c, KEY_VOLUMEUP},
  51. { 0x141e, KEY_VOLUMEDOWN},
  52. { 0x144c, KEY_PLAY},
  53. { 0x141d, KEY_MUTE},
  54. { 0x141b, KEY_CHANNELUP},
  55. { 0x141f, KEY_CHANNELDOWN},
  56. { 0x1417, KEY_RED},
  57. { 0x1418, KEY_GREEN},
  58. { 0x1419, KEY_YELLOW},
  59. { 0x141a, KEY_BLUE},
  60. { 0x1458, KEY_RECORD},
  61. { 0x1448, KEY_STOP},
  62. { 0x1440, KEY_PAUSE},
  63. { 0x1454, KEY_LAST},
  64. { 0x144e, KEY_REWIND},
  65. { 0x144f, KEY_FASTFORWARD},
  66. { 0x145c, KEY_NEXT},
  67. /* Terratec Black IR, with most keys in black */
  68. { 0x04eb01, KEY_POWER2},
  69. { 0x04eb02, KEY_1},
  70. { 0x04eb03, KEY_2},
  71. { 0x04eb04, KEY_3},
  72. { 0x04eb05, KEY_4},
  73. { 0x04eb06, KEY_5},
  74. { 0x04eb07, KEY_6},
  75. { 0x04eb08, KEY_7},
  76. { 0x04eb09, KEY_8},
  77. { 0x04eb0a, KEY_9},
  78. { 0x04eb0c, KEY_0},
  79. { 0x04eb0b, KEY_TEXT}, /* TXT */
  80. { 0x04eb0d, KEY_REFRESH}, /* Refresh */
  81. { 0x04eb0e, KEY_HOME},
  82. { 0x04eb0f, KEY_EPG},
  83. { 0x04eb10, KEY_UP},
  84. { 0x04eb11, KEY_LEFT},
  85. { 0x04eb12, KEY_OK},
  86. { 0x04eb13, KEY_RIGHT},
  87. { 0x04eb14, KEY_DOWN},
  88. { 0x04eb15, KEY_BACKSPACE},
  89. { 0x04eb16, KEY_INFO},
  90. { 0x04eb17, KEY_RED},
  91. { 0x04eb18, KEY_GREEN},
  92. { 0x04eb19, KEY_YELLOW},
  93. { 0x04eb1a, KEY_BLUE},
  94. { 0x04eb1c, KEY_VOLUMEUP},
  95. { 0x04eb1e, KEY_VOLUMEDOWN},
  96. { 0x04eb1d, KEY_MUTE},
  97. { 0x04eb1b, KEY_CHANNELUP},
  98. { 0x04eb1f, KEY_CHANNELDOWN},
  99. { 0x04eb40, KEY_RECORD},
  100. { 0x04eb4c, KEY_PLAY},
  101. { 0x04eb58, KEY_PAUSE},
  102. { 0x04eb54, KEY_REWIND},
  103. { 0x04eb48, KEY_STOP},
  104. { 0x04eb5c, KEY_NEXT},
  105. };
  106. static struct rc_map_list nec_terratec_cinergy_xs_map = {
  107. .map = {
  108. .scan = nec_terratec_cinergy_xs,
  109. .size = ARRAY_SIZE(nec_terratec_cinergy_xs),
  110. .rc_type = RC_TYPE_NEC,
  111. .name = RC_MAP_NEC_TERRATEC_CINERGY_XS,
  112. }
  113. };
  114. static int __init init_rc_map_nec_terratec_cinergy_xs(void)
  115. {
  116. return rc_map_register(&nec_terratec_cinergy_xs_map);
  117. }
  118. static void __exit exit_rc_map_nec_terratec_cinergy_xs(void)
  119. {
  120. rc_map_unregister(&nec_terratec_cinergy_xs_map);
  121. }
  122. module_init(init_rc_map_nec_terratec_cinergy_xs)
  123. module_exit(exit_rc_map_nec_terratec_cinergy_xs)
  124. MODULE_LICENSE("GPL");
  125. MODULE_AUTHOR("Mauro Carvalho Chehab");