rc-eztv.c 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // eztv.h - Keytable for eztv 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. /* Alfons Geser <a.geser@cox.net>
  10. * updates from Job D. R. Borges <jobdrb@ig.com.br> */
  11. static struct rc_map_table eztv[] = {
  12. { 0x12, KEY_POWER },
  13. { 0x01, KEY_TV }, /* DVR */
  14. { 0x15, KEY_DVD }, /* DVD */
  15. { 0x17, KEY_AUDIO }, /* music */
  16. /* DVR mode / DVD mode / music mode */
  17. { 0x1b, KEY_MUTE }, /* mute */
  18. { 0x02, KEY_LANGUAGE }, /* MTS/SAP / audio / autoseek */
  19. { 0x1e, KEY_SUBTITLE }, /* closed captioning / subtitle / seek */
  20. { 0x16, KEY_ZOOM }, /* full screen */
  21. { 0x1c, KEY_VIDEO }, /* video source / eject / delall */
  22. { 0x1d, KEY_RESTART }, /* playback / angle / del */
  23. { 0x2f, KEY_SEARCH }, /* scan / menu / playlist */
  24. { 0x30, KEY_CHANNEL }, /* CH surfing / bookmark / memo */
  25. { 0x31, KEY_HELP }, /* help */
  26. { 0x32, KEY_MODE }, /* num/memo */
  27. { 0x33, KEY_ESC }, /* cancel */
  28. { 0x0c, KEY_UP }, /* up */
  29. { 0x10, KEY_DOWN }, /* down */
  30. { 0x08, KEY_LEFT }, /* left */
  31. { 0x04, KEY_RIGHT }, /* right */
  32. { 0x03, KEY_SELECT }, /* select */
  33. { 0x1f, KEY_REWIND }, /* rewind */
  34. { 0x20, KEY_PLAYPAUSE },/* play/pause */
  35. { 0x29, KEY_FORWARD }, /* forward */
  36. { 0x14, KEY_AGAIN }, /* repeat */
  37. { 0x2b, KEY_RECORD }, /* recording */
  38. { 0x2c, KEY_STOP }, /* stop */
  39. { 0x2d, KEY_PLAY }, /* play */
  40. { 0x2e, KEY_CAMERA }, /* snapshot / shuffle */
  41. { 0x00, KEY_0 },
  42. { 0x05, KEY_1 },
  43. { 0x06, KEY_2 },
  44. { 0x07, KEY_3 },
  45. { 0x09, KEY_4 },
  46. { 0x0a, KEY_5 },
  47. { 0x0b, KEY_6 },
  48. { 0x0d, KEY_7 },
  49. { 0x0e, KEY_8 },
  50. { 0x0f, KEY_9 },
  51. { 0x2a, KEY_VOLUMEUP },
  52. { 0x11, KEY_VOLUMEDOWN },
  53. { 0x18, KEY_CHANNELUP },/* CH.tracking up */
  54. { 0x19, KEY_CHANNELDOWN },/* CH.tracking down */
  55. { 0x13, KEY_ENTER }, /* enter */
  56. { 0x21, KEY_DOT }, /* . (decimal dot) */
  57. };
  58. static struct rc_map_list eztv_map = {
  59. .map = {
  60. .scan = eztv,
  61. .size = ARRAY_SIZE(eztv),
  62. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  63. .name = RC_MAP_EZTV,
  64. }
  65. };
  66. static int __init init_rc_map_eztv(void)
  67. {
  68. return rc_map_register(&eztv_map);
  69. }
  70. static void __exit exit_rc_map_eztv(void)
  71. {
  72. rc_map_unregister(&eztv_map);
  73. }
  74. module_init(init_rc_map_eztv)
  75. module_exit(exit_rc_map_eztv)
  76. MODULE_LICENSE("GPL");
  77. MODULE_AUTHOR("Mauro Carvalho Chehab");