rc-pinnacle-grey.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* pinnacle-grey.h - Keytable for pinnacle_grey 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_grey[] = {
  15. { 0x3a, KEY_0 },
  16. { 0x31, KEY_1 },
  17. { 0x32, KEY_2 },
  18. { 0x33, KEY_3 },
  19. { 0x34, KEY_4 },
  20. { 0x35, KEY_5 },
  21. { 0x36, KEY_6 },
  22. { 0x37, KEY_7 },
  23. { 0x38, KEY_8 },
  24. { 0x39, KEY_9 },
  25. { 0x2f, KEY_POWER },
  26. { 0x2e, KEY_P },
  27. { 0x1f, KEY_L },
  28. { 0x2b, KEY_I },
  29. { 0x2d, KEY_SCREEN },
  30. { 0x1e, KEY_ZOOM },
  31. { 0x1b, KEY_VOLUMEUP },
  32. { 0x0f, KEY_VOLUMEDOWN },
  33. { 0x17, KEY_CHANNELUP },
  34. { 0x1c, KEY_CHANNELDOWN },
  35. { 0x25, KEY_INFO },
  36. { 0x3c, KEY_MUTE },
  37. { 0x3d, KEY_LEFT },
  38. { 0x3b, KEY_RIGHT },
  39. { 0x3f, KEY_UP },
  40. { 0x3e, KEY_DOWN },
  41. { 0x1a, KEY_ENTER },
  42. { 0x1d, KEY_MENU },
  43. { 0x19, KEY_AGAIN },
  44. { 0x16, KEY_PREVIOUSSONG },
  45. { 0x13, KEY_NEXTSONG },
  46. { 0x15, KEY_PAUSE },
  47. { 0x0e, KEY_REWIND },
  48. { 0x0d, KEY_PLAY },
  49. { 0x0b, KEY_STOP },
  50. { 0x07, KEY_FORWARD },
  51. { 0x27, KEY_RECORD },
  52. { 0x26, KEY_TUNER },
  53. { 0x29, KEY_TEXT },
  54. { 0x2a, KEY_MEDIA },
  55. { 0x18, KEY_EPG },
  56. };
  57. static struct rc_map_list pinnacle_grey_map = {
  58. .map = {
  59. .scan = pinnacle_grey,
  60. .size = ARRAY_SIZE(pinnacle_grey),
  61. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  62. .name = RC_MAP_PINNACLE_GREY,
  63. }
  64. };
  65. static int __init init_rc_map_pinnacle_grey(void)
  66. {
  67. return rc_map_register(&pinnacle_grey_map);
  68. }
  69. static void __exit exit_rc_map_pinnacle_grey(void)
  70. {
  71. rc_map_unregister(&pinnacle_grey_map);
  72. }
  73. module_init(init_rc_map_pinnacle_grey)
  74. module_exit(exit_rc_map_pinnacle_grey)
  75. MODULE_LICENSE("GPL");
  76. MODULE_AUTHOR("Mauro Carvalho Chehab");