rc-pinnacle-color.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // pinnacle-color.h - Keytable for pinnacle_color 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. static struct rc_map_table pinnacle_color[] = {
  10. { 0x59, KEY_MUTE },
  11. { 0x4a, KEY_POWER },
  12. { 0x18, KEY_TEXT },
  13. { 0x26, KEY_TV },
  14. { 0x3d, KEY_PRINT },
  15. { 0x48, KEY_RED },
  16. { 0x04, KEY_GREEN },
  17. { 0x11, KEY_YELLOW },
  18. { 0x00, KEY_BLUE },
  19. { 0x2d, KEY_VOLUMEUP },
  20. { 0x1e, KEY_VOLUMEDOWN },
  21. { 0x49, KEY_MENU },
  22. { 0x16, KEY_CHANNELUP },
  23. { 0x17, KEY_CHANNELDOWN },
  24. { 0x20, KEY_UP },
  25. { 0x21, KEY_DOWN },
  26. { 0x22, KEY_LEFT },
  27. { 0x23, KEY_RIGHT },
  28. { 0x0d, KEY_SELECT },
  29. { 0x08, KEY_BACK },
  30. { 0x07, KEY_REFRESH },
  31. { 0x2f, KEY_ZOOM },
  32. { 0x29, KEY_RECORD },
  33. { 0x4b, KEY_PAUSE },
  34. { 0x4d, KEY_REWIND },
  35. { 0x2e, KEY_PLAY },
  36. { 0x4e, KEY_FORWARD },
  37. { 0x53, KEY_PREVIOUS },
  38. { 0x4c, KEY_STOP },
  39. { 0x54, KEY_NEXT },
  40. { 0x69, KEY_0 },
  41. { 0x6a, KEY_1 },
  42. { 0x6b, KEY_2 },
  43. { 0x6c, KEY_3 },
  44. { 0x6d, KEY_4 },
  45. { 0x6e, KEY_5 },
  46. { 0x6f, KEY_6 },
  47. { 0x70, KEY_7 },
  48. { 0x71, KEY_8 },
  49. { 0x72, KEY_9 },
  50. { 0x74, KEY_CHANNEL },
  51. { 0x0a, KEY_BACKSPACE },
  52. };
  53. static struct rc_map_list pinnacle_color_map = {
  54. .map = {
  55. .scan = pinnacle_color,
  56. .size = ARRAY_SIZE(pinnacle_color),
  57. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  58. .name = RC_MAP_PINNACLE_COLOR,
  59. }
  60. };
  61. static int __init init_rc_map_pinnacle_color(void)
  62. {
  63. return rc_map_register(&pinnacle_color_map);
  64. }
  65. static void __exit exit_rc_map_pinnacle_color(void)
  66. {
  67. rc_map_unregister(&pinnacle_color_map);
  68. }
  69. module_init(init_rc_map_pinnacle_color)
  70. module_exit(exit_rc_map_pinnacle_color)
  71. MODULE_LICENSE("GPL");
  72. MODULE_AUTHOR("Mauro Carvalho Chehab");