rc-pinnacle-color.c 2.0 KB

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