rc-cinergy-1400.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // cinergy-1400.h - Keytable for cinergy_1400 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. /* Cinergy 1400 DVB-T */
  10. static struct rc_map_table cinergy_1400[] = {
  11. { 0x01, KEY_POWER },
  12. { 0x02, KEY_1 },
  13. { 0x03, KEY_2 },
  14. { 0x04, KEY_3 },
  15. { 0x05, KEY_4 },
  16. { 0x06, KEY_5 },
  17. { 0x07, KEY_6 },
  18. { 0x08, KEY_7 },
  19. { 0x09, KEY_8 },
  20. { 0x0a, KEY_9 },
  21. { 0x0c, KEY_0 },
  22. { 0x0b, KEY_VIDEO },
  23. { 0x0d, KEY_REFRESH },
  24. { 0x0e, KEY_SELECT },
  25. { 0x0f, KEY_EPG },
  26. { 0x10, KEY_UP },
  27. { 0x11, KEY_LEFT },
  28. { 0x12, KEY_OK },
  29. { 0x13, KEY_RIGHT },
  30. { 0x14, KEY_DOWN },
  31. { 0x15, KEY_TEXT },
  32. { 0x16, KEY_INFO },
  33. { 0x17, KEY_RED },
  34. { 0x18, KEY_GREEN },
  35. { 0x19, KEY_YELLOW },
  36. { 0x1a, KEY_BLUE },
  37. { 0x1b, KEY_CHANNELUP },
  38. { 0x1c, KEY_VOLUMEUP },
  39. { 0x1d, KEY_MUTE },
  40. { 0x1e, KEY_VOLUMEDOWN },
  41. { 0x1f, KEY_CHANNELDOWN },
  42. { 0x40, KEY_PAUSE },
  43. { 0x4c, KEY_PLAY },
  44. { 0x58, KEY_RECORD },
  45. { 0x54, KEY_PREVIOUS },
  46. { 0x48, KEY_STOP },
  47. { 0x5c, KEY_NEXT },
  48. };
  49. static struct rc_map_list cinergy_1400_map = {
  50. .map = {
  51. .scan = cinergy_1400,
  52. .size = ARRAY_SIZE(cinergy_1400),
  53. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  54. .name = RC_MAP_CINERGY_1400,
  55. }
  56. };
  57. static int __init init_rc_map_cinergy_1400(void)
  58. {
  59. return rc_map_register(&cinergy_1400_map);
  60. }
  61. static void __exit exit_rc_map_cinergy_1400(void)
  62. {
  63. rc_map_unregister(&cinergy_1400_map);
  64. }
  65. module_init(init_rc_map_cinergy_1400)
  66. module_exit(exit_rc_map_cinergy_1400)
  67. MODULE_LICENSE("GPL");
  68. MODULE_AUTHOR("Mauro Carvalho Chehab");