rc-terratec-cinergy-xs.c 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // terratec-cinergy-xs.h - Keytable for terratec_cinergy_xs Remote Controller
  3. //
  4. // keymap imported from ir-keymaps.c
  5. //
  6. // Copyright (c) 2010 by Mauro Carvalho Chehab
  7. #include <media/rc-map.h>
  8. #include <linux/module.h>
  9. /* Terratec Cinergy Hybrid T USB XS
  10. Devin Heitmueller <dheitmueller@linuxtv.org>
  11. */
  12. static struct rc_map_table terratec_cinergy_xs[] = {
  13. { 0x41, KEY_HOME},
  14. { 0x01, KEY_POWER},
  15. { 0x42, KEY_MENU},
  16. { 0x02, KEY_1},
  17. { 0x03, KEY_2},
  18. { 0x04, KEY_3},
  19. { 0x43, KEY_SUBTITLE},
  20. { 0x05, KEY_4},
  21. { 0x06, KEY_5},
  22. { 0x07, KEY_6},
  23. { 0x44, KEY_TEXT},
  24. { 0x08, KEY_7},
  25. { 0x09, KEY_8},
  26. { 0x0a, KEY_9},
  27. { 0x45, KEY_DELETE},
  28. { 0x0b, KEY_TUNER},
  29. { 0x0c, KEY_0},
  30. { 0x0d, KEY_MODE},
  31. { 0x46, KEY_TV},
  32. { 0x47, KEY_DVD},
  33. { 0x49, KEY_VIDEO},
  34. { 0x4b, KEY_AUX},
  35. { 0x10, KEY_UP},
  36. { 0x11, KEY_LEFT},
  37. { 0x12, KEY_OK},
  38. { 0x13, KEY_RIGHT},
  39. { 0x14, KEY_DOWN},
  40. { 0x0f, KEY_EPG},
  41. { 0x16, KEY_INFO},
  42. { 0x4d, KEY_BACKSPACE},
  43. { 0x1c, KEY_VOLUMEUP},
  44. { 0x4c, KEY_PLAY},
  45. { 0x1b, KEY_CHANNELUP},
  46. { 0x1e, KEY_VOLUMEDOWN},
  47. { 0x1d, KEY_MUTE},
  48. { 0x1f, KEY_CHANNELDOWN},
  49. { 0x17, KEY_RED},
  50. { 0x18, KEY_GREEN},
  51. { 0x19, KEY_YELLOW},
  52. { 0x1a, KEY_BLUE},
  53. { 0x58, KEY_RECORD},
  54. { 0x48, KEY_STOP},
  55. { 0x40, KEY_PAUSE},
  56. { 0x54, KEY_LAST},
  57. { 0x4e, KEY_REWIND},
  58. { 0x4f, KEY_FASTFORWARD},
  59. { 0x5c, KEY_NEXT},
  60. };
  61. static struct rc_map_list terratec_cinergy_xs_map = {
  62. .map = {
  63. .scan = terratec_cinergy_xs,
  64. .size = ARRAY_SIZE(terratec_cinergy_xs),
  65. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  66. .name = RC_MAP_TERRATEC_CINERGY_XS,
  67. }
  68. };
  69. static int __init init_rc_map_terratec_cinergy_xs(void)
  70. {
  71. return rc_map_register(&terratec_cinergy_xs_map);
  72. }
  73. static void __exit exit_rc_map_terratec_cinergy_xs(void)
  74. {
  75. rc_map_unregister(&terratec_cinergy_xs_map);
  76. }
  77. module_init(init_rc_map_terratec_cinergy_xs)
  78. module_exit(exit_rc_map_terratec_cinergy_xs)
  79. MODULE_LICENSE("GPL");
  80. MODULE_AUTHOR("Mauro Carvalho Chehab");