rc-pinnacle-grey.c 1.7 KB

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