rc-flyvideo.c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // flyvideo.h - Keytable for flyvideo 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 flyvideo[] = {
  10. { 0x0f, KEY_0 },
  11. { 0x03, KEY_1 },
  12. { 0x04, KEY_2 },
  13. { 0x05, KEY_3 },
  14. { 0x07, KEY_4 },
  15. { 0x08, KEY_5 },
  16. { 0x09, KEY_6 },
  17. { 0x0b, KEY_7 },
  18. { 0x0c, KEY_8 },
  19. { 0x0d, KEY_9 },
  20. { 0x0e, KEY_MODE }, /* Air/Cable */
  21. { 0x11, KEY_VIDEO }, /* Video */
  22. { 0x15, KEY_AUDIO }, /* Audio */
  23. { 0x00, KEY_POWER }, /* Power */
  24. { 0x18, KEY_TUNER }, /* AV Source */
  25. { 0x02, KEY_ZOOM }, /* Fullscreen */
  26. { 0x1a, KEY_LANGUAGE }, /* Stereo */
  27. { 0x1b, KEY_MUTE }, /* Mute */
  28. { 0x14, KEY_VOLUMEUP }, /* Volume + */
  29. { 0x17, KEY_VOLUMEDOWN },/* Volume - */
  30. { 0x12, KEY_CHANNELUP },/* Channel + */
  31. { 0x13, KEY_CHANNELDOWN },/* Channel - */
  32. { 0x06, KEY_AGAIN }, /* Recall */
  33. { 0x10, KEY_ENTER }, /* Enter */
  34. { 0x19, KEY_BACK }, /* Rewind ( <<< ) */
  35. { 0x1f, KEY_FORWARD }, /* Forward ( >>> ) */
  36. { 0x0a, KEY_ANGLE }, /* no label, may be used as the PAUSE button */
  37. };
  38. static struct rc_map_list flyvideo_map = {
  39. .map = {
  40. .scan = flyvideo,
  41. .size = ARRAY_SIZE(flyvideo),
  42. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  43. .name = RC_MAP_FLYVIDEO,
  44. }
  45. };
  46. static int __init init_rc_map_flyvideo(void)
  47. {
  48. return rc_map_register(&flyvideo_map);
  49. }
  50. static void __exit exit_rc_map_flyvideo(void)
  51. {
  52. rc_map_unregister(&flyvideo_map);
  53. }
  54. module_init(init_rc_map_flyvideo)
  55. module_exit(exit_rc_map_flyvideo)
  56. MODULE_LICENSE("GPL");
  57. MODULE_AUTHOR("Mauro Carvalho Chehab");