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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 <mchehab@redhat.com>
  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. /* Terratec Cinergy Hybrid T USB XS FM
  14. Mauro Carvalho Chehab <mchehab@redhat.com>
  15. */
  16. static struct rc_map_table nec_terratec_cinergy_xs[] = {
  17. { 0x1441, KEY_HOME},
  18. { 0x1401, KEY_POWER2},
  19. { 0x1442, KEY_MENU}, /* DVD menu */
  20. { 0x1443, KEY_SUBTITLE},
  21. { 0x1444, KEY_TEXT}, /* Teletext */
  22. { 0x1445, KEY_DELETE},
  23. { 0x1402, KEY_1},
  24. { 0x1403, KEY_2},
  25. { 0x1404, KEY_3},
  26. { 0x1405, KEY_4},
  27. { 0x1406, KEY_5},
  28. { 0x1407, KEY_6},
  29. { 0x1408, KEY_7},
  30. { 0x1409, KEY_8},
  31. { 0x140a, KEY_9},
  32. { 0x140c, KEY_0},
  33. { 0x140b, KEY_TUNER}, /* AV */
  34. { 0x140d, KEY_MODE}, /* A.B */
  35. { 0x1446, KEY_TV},
  36. { 0x1447, KEY_DVD},
  37. { 0x1449, KEY_VIDEO},
  38. { 0x144a, KEY_RADIO}, /* Music */
  39. { 0x144b, KEY_CAMERA}, /* PIC */
  40. { 0x1410, KEY_UP},
  41. { 0x1411, KEY_LEFT},
  42. { 0x1412, KEY_OK},
  43. { 0x1413, KEY_RIGHT},
  44. { 0x1414, KEY_DOWN},
  45. { 0x140f, KEY_EPG},
  46. { 0x1416, KEY_INFO},
  47. { 0x144d, KEY_BACKSPACE},
  48. { 0x141c, KEY_VOLUMEUP},
  49. { 0x141e, KEY_VOLUMEDOWN},
  50. { 0x144c, KEY_PLAY},
  51. { 0x141d, KEY_MUTE},
  52. { 0x141b, KEY_CHANNELUP},
  53. { 0x141f, KEY_CHANNELDOWN},
  54. { 0x1417, KEY_RED},
  55. { 0x1418, KEY_GREEN},
  56. { 0x1419, KEY_YELLOW},
  57. { 0x141a, KEY_BLUE},
  58. { 0x1458, KEY_RECORD},
  59. { 0x1448, KEY_STOP},
  60. { 0x1440, KEY_PAUSE},
  61. { 0x1454, KEY_LAST},
  62. { 0x144e, KEY_REWIND},
  63. { 0x144f, KEY_FASTFORWARD},
  64. { 0x145c, KEY_NEXT},
  65. };
  66. static struct rc_map_list nec_terratec_cinergy_xs_map = {
  67. .map = {
  68. .scan = nec_terratec_cinergy_xs,
  69. .size = ARRAY_SIZE(nec_terratec_cinergy_xs),
  70. .rc_type = RC_TYPE_NEC,
  71. .name = RC_MAP_NEC_TERRATEC_CINERGY_XS,
  72. }
  73. };
  74. static int __init init_rc_map_nec_terratec_cinergy_xs(void)
  75. {
  76. return rc_map_register(&nec_terratec_cinergy_xs_map);
  77. }
  78. static void __exit exit_rc_map_nec_terratec_cinergy_xs(void)
  79. {
  80. rc_map_unregister(&nec_terratec_cinergy_xs_map);
  81. }
  82. module_init(init_rc_map_nec_terratec_cinergy_xs)
  83. module_exit(exit_rc_map_nec_terratec_cinergy_xs)
  84. MODULE_LICENSE("GPL");
  85. MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");