rc-npgtech.c 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* npgtech.h - Keytable for npgtech 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 npgtech[] = {
  15. { 0x1d, KEY_SWITCHVIDEOMODE }, /* switch inputs */
  16. { 0x2a, KEY_FRONT },
  17. { 0x3e, KEY_1 },
  18. { 0x02, KEY_2 },
  19. { 0x06, KEY_3 },
  20. { 0x0a, KEY_4 },
  21. { 0x0e, KEY_5 },
  22. { 0x12, KEY_6 },
  23. { 0x16, KEY_7 },
  24. { 0x1a, KEY_8 },
  25. { 0x1e, KEY_9 },
  26. { 0x3a, KEY_0 },
  27. { 0x22, KEY_NUMLOCK }, /* -/-- */
  28. { 0x20, KEY_REFRESH },
  29. { 0x03, KEY_BRIGHTNESSDOWN },
  30. { 0x28, KEY_AUDIO },
  31. { 0x3c, KEY_CHANNELUP },
  32. { 0x3f, KEY_VOLUMEDOWN },
  33. { 0x2e, KEY_MUTE },
  34. { 0x3b, KEY_VOLUMEUP },
  35. { 0x00, KEY_CHANNELDOWN },
  36. { 0x07, KEY_BRIGHTNESSUP },
  37. { 0x2c, KEY_TEXT },
  38. { 0x37, KEY_RECORD },
  39. { 0x17, KEY_PLAY },
  40. { 0x13, KEY_PAUSE },
  41. { 0x26, KEY_STOP },
  42. { 0x18, KEY_FASTFORWARD },
  43. { 0x14, KEY_REWIND },
  44. { 0x33, KEY_ZOOM },
  45. { 0x32, KEY_KEYBOARD },
  46. { 0x30, KEY_GOTO }, /* Pointing arrow */
  47. { 0x36, KEY_MACRO }, /* Maximize/Minimize (yellow) */
  48. { 0x0b, KEY_RADIO },
  49. { 0x10, KEY_POWER },
  50. };
  51. static struct rc_map_list npgtech_map = {
  52. .map = {
  53. .scan = npgtech,
  54. .size = ARRAY_SIZE(npgtech),
  55. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  56. .name = RC_MAP_NPGTECH,
  57. }
  58. };
  59. static int __init init_rc_map_npgtech(void)
  60. {
  61. return rc_map_register(&npgtech_map);
  62. }
  63. static void __exit exit_rc_map_npgtech(void)
  64. {
  65. rc_map_unregister(&npgtech_map);
  66. }
  67. module_init(init_rc_map_npgtech)
  68. module_exit(exit_rc_map_npgtech)
  69. MODULE_LICENSE("GPL");
  70. MODULE_AUTHOR("Mauro Carvalho Chehab");