rc-em-terratec.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // em-terratec.h - Keytable for em_terratec 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 em_terratec[] = {
  10. { 0x01, KEY_CHANNEL },
  11. { 0x02, KEY_SELECT },
  12. { 0x03, KEY_MUTE },
  13. { 0x04, KEY_POWER },
  14. { 0x05, KEY_1 },
  15. { 0x06, KEY_2 },
  16. { 0x07, KEY_3 },
  17. { 0x08, KEY_CHANNELUP },
  18. { 0x09, KEY_4 },
  19. { 0x0a, KEY_5 },
  20. { 0x0b, KEY_6 },
  21. { 0x0c, KEY_CHANNELDOWN },
  22. { 0x0d, KEY_7 },
  23. { 0x0e, KEY_8 },
  24. { 0x0f, KEY_9 },
  25. { 0x10, KEY_VOLUMEUP },
  26. { 0x11, KEY_0 },
  27. { 0x12, KEY_MENU },
  28. { 0x13, KEY_PRINT },
  29. { 0x14, KEY_VOLUMEDOWN },
  30. { 0x16, KEY_PAUSE },
  31. { 0x18, KEY_RECORD },
  32. { 0x19, KEY_REWIND },
  33. { 0x1a, KEY_PLAY },
  34. { 0x1b, KEY_FORWARD },
  35. { 0x1c, KEY_BACKSPACE },
  36. { 0x1e, KEY_STOP },
  37. { 0x40, KEY_ZOOM },
  38. };
  39. static struct rc_map_list em_terratec_map = {
  40. .map = {
  41. .scan = em_terratec,
  42. .size = ARRAY_SIZE(em_terratec),
  43. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  44. .name = RC_MAP_EM_TERRATEC,
  45. }
  46. };
  47. static int __init init_rc_map_em_terratec(void)
  48. {
  49. return rc_map_register(&em_terratec_map);
  50. }
  51. static void __exit exit_rc_map_em_terratec(void)
  52. {
  53. rc_map_unregister(&em_terratec_map);
  54. }
  55. module_init(init_rc_map_em_terratec)
  56. module_exit(exit_rc_map_em_terratec)
  57. MODULE_LICENSE("GPL");
  58. MODULE_AUTHOR("Mauro Carvalho Chehab");