rc-adstech-dvb-t-pci.c 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // adstech-dvb-t-pci.h - Keytable for adstech_dvb_t_pci 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. /* ADS Tech Instant TV DVB-T PCI Remote */
  10. static struct rc_map_table adstech_dvb_t_pci[] = {
  11. /* Keys 0 to 9 */
  12. { 0x4d, KEY_0 },
  13. { 0x57, KEY_1 },
  14. { 0x4f, KEY_2 },
  15. { 0x53, KEY_3 },
  16. { 0x56, KEY_4 },
  17. { 0x4e, KEY_5 },
  18. { 0x5e, KEY_6 },
  19. { 0x54, KEY_7 },
  20. { 0x4c, KEY_8 },
  21. { 0x5c, KEY_9 },
  22. { 0x5b, KEY_POWER },
  23. { 0x5f, KEY_MUTE },
  24. { 0x55, KEY_GOTO },
  25. { 0x5d, KEY_SEARCH },
  26. { 0x17, KEY_EPG }, /* Guide */
  27. { 0x1f, KEY_MENU },
  28. { 0x0f, KEY_UP },
  29. { 0x46, KEY_DOWN },
  30. { 0x16, KEY_LEFT },
  31. { 0x1e, KEY_RIGHT },
  32. { 0x0e, KEY_SELECT }, /* Enter */
  33. { 0x5a, KEY_INFO },
  34. { 0x52, KEY_EXIT },
  35. { 0x59, KEY_PREVIOUS },
  36. { 0x51, KEY_NEXT },
  37. { 0x58, KEY_REWIND },
  38. { 0x50, KEY_FORWARD },
  39. { 0x44, KEY_PLAYPAUSE },
  40. { 0x07, KEY_STOP },
  41. { 0x1b, KEY_RECORD },
  42. { 0x13, KEY_TUNER }, /* Live */
  43. { 0x0a, KEY_A },
  44. { 0x12, KEY_B },
  45. { 0x03, KEY_RED }, /* 1 */
  46. { 0x01, KEY_GREEN }, /* 2 */
  47. { 0x00, KEY_YELLOW }, /* 3 */
  48. { 0x06, KEY_DVD },
  49. { 0x48, KEY_AUX }, /* Photo */
  50. { 0x40, KEY_VIDEO },
  51. { 0x19, KEY_AUDIO }, /* Music */
  52. { 0x0b, KEY_CHANNELUP },
  53. { 0x08, KEY_CHANNELDOWN },
  54. { 0x15, KEY_VOLUMEUP },
  55. { 0x1c, KEY_VOLUMEDOWN },
  56. };
  57. static struct rc_map_list adstech_dvb_t_pci_map = {
  58. .map = {
  59. .scan = adstech_dvb_t_pci,
  60. .size = ARRAY_SIZE(adstech_dvb_t_pci),
  61. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  62. .name = RC_MAP_ADSTECH_DVB_T_PCI,
  63. }
  64. };
  65. static int __init init_rc_map_adstech_dvb_t_pci(void)
  66. {
  67. return rc_map_register(&adstech_dvb_t_pci_map);
  68. }
  69. static void __exit exit_rc_map_adstech_dvb_t_pci(void)
  70. {
  71. rc_map_unregister(&adstech_dvb_t_pci_map);
  72. }
  73. module_init(init_rc_map_adstech_dvb_t_pci)
  74. module_exit(exit_rc_map_adstech_dvb_t_pci)
  75. MODULE_LICENSE("GPL");
  76. MODULE_AUTHOR("Mauro Carvalho Chehab");