rc-flydvb.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // flydvb.h - Keytable for flydvb 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 flydvb[] = {
  10. { 0x01, KEY_ZOOM }, /* Full Screen */
  11. { 0x00, KEY_POWER }, /* Power */
  12. { 0x03, KEY_1 },
  13. { 0x04, KEY_2 },
  14. { 0x05, KEY_3 },
  15. { 0x07, KEY_4 },
  16. { 0x08, KEY_5 },
  17. { 0x09, KEY_6 },
  18. { 0x0b, KEY_7 },
  19. { 0x0c, KEY_8 },
  20. { 0x0d, KEY_9 },
  21. { 0x06, KEY_AGAIN }, /* Recall */
  22. { 0x0f, KEY_0 },
  23. { 0x10, KEY_MUTE }, /* Mute */
  24. { 0x02, KEY_RADIO }, /* TV/Radio */
  25. { 0x1b, KEY_LANGUAGE }, /* SAP (Second Audio Program) */
  26. { 0x14, KEY_VOLUMEUP }, /* VOL+ */
  27. { 0x17, KEY_VOLUMEDOWN }, /* VOL- */
  28. { 0x12, KEY_CHANNELUP }, /* CH+ */
  29. { 0x13, KEY_CHANNELDOWN }, /* CH- */
  30. { 0x1d, KEY_ENTER }, /* Enter */
  31. { 0x1a, KEY_TV2 }, /* PIP */
  32. { 0x18, KEY_VIDEO }, /* Source */
  33. { 0x1e, KEY_RECORD }, /* Record/Pause */
  34. { 0x15, KEY_ANGLE }, /* Swap (no label on key) */
  35. { 0x1c, KEY_PAUSE }, /* Timeshift/Pause */
  36. { 0x19, KEY_BACK }, /* Rewind << */
  37. { 0x0a, KEY_PLAYPAUSE }, /* Play/Pause */
  38. { 0x1f, KEY_FORWARD }, /* Forward >> */
  39. { 0x16, KEY_PREVIOUS }, /* Back |<< */
  40. { 0x11, KEY_STOP }, /* Stop */
  41. { 0x0e, KEY_NEXT }, /* End >>| */
  42. };
  43. static struct rc_map_list flydvb_map = {
  44. .map = {
  45. .scan = flydvb,
  46. .size = ARRAY_SIZE(flydvb),
  47. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  48. .name = RC_MAP_FLYDVB,
  49. }
  50. };
  51. static int __init init_rc_map_flydvb(void)
  52. {
  53. return rc_map_register(&flydvb_map);
  54. }
  55. static void __exit exit_rc_map_flydvb(void)
  56. {
  57. rc_map_unregister(&flydvb_map);
  58. }
  59. module_init(init_rc_map_flydvb)
  60. module_exit(exit_rc_map_flydvb)
  61. MODULE_LICENSE("GPL");
  62. MODULE_AUTHOR("Mauro Carvalho Chehab");