rc-kworld-315u.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // kworld-315u.h - Keytable for kworld_315u 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. /* Kworld 315U
  10. */
  11. static struct rc_map_table kworld_315u[] = {
  12. { 0x6143, KEY_POWER },
  13. { 0x6101, KEY_VIDEO }, /* source */
  14. { 0x610b, KEY_ZOOM },
  15. { 0x6103, KEY_POWER2 }, /* shutdown */
  16. { 0x6104, KEY_1 },
  17. { 0x6108, KEY_2 },
  18. { 0x6102, KEY_3 },
  19. { 0x6109, KEY_CHANNELUP },
  20. { 0x610f, KEY_4 },
  21. { 0x6105, KEY_5 },
  22. { 0x6106, KEY_6 },
  23. { 0x6107, KEY_CHANNELDOWN },
  24. { 0x610c, KEY_7 },
  25. { 0x610d, KEY_8 },
  26. { 0x610a, KEY_9 },
  27. { 0x610e, KEY_VOLUMEUP },
  28. { 0x6110, KEY_LAST },
  29. { 0x6111, KEY_0 },
  30. { 0x6112, KEY_ENTER },
  31. { 0x6113, KEY_VOLUMEDOWN },
  32. { 0x6114, KEY_RECORD },
  33. { 0x6115, KEY_STOP },
  34. { 0x6116, KEY_PLAY },
  35. { 0x6117, KEY_MUTE },
  36. { 0x6118, KEY_UP },
  37. { 0x6119, KEY_DOWN },
  38. { 0x611a, KEY_LEFT },
  39. { 0x611b, KEY_RIGHT },
  40. { 0x611c, KEY_RED },
  41. { 0x611d, KEY_GREEN },
  42. { 0x611e, KEY_YELLOW },
  43. { 0x611f, KEY_BLUE },
  44. };
  45. static struct rc_map_list kworld_315u_map = {
  46. .map = {
  47. .scan = kworld_315u,
  48. .size = ARRAY_SIZE(kworld_315u),
  49. .rc_proto = RC_PROTO_NEC,
  50. .name = RC_MAP_KWORLD_315U,
  51. }
  52. };
  53. static int __init init_rc_map_kworld_315u(void)
  54. {
  55. return rc_map_register(&kworld_315u_map);
  56. }
  57. static void __exit exit_rc_map_kworld_315u(void)
  58. {
  59. rc_map_unregister(&kworld_315u_map);
  60. }
  61. module_init(init_rc_map_kworld_315u)
  62. module_exit(exit_rc_map_kworld_315u)
  63. MODULE_LICENSE("GPL");
  64. MODULE_AUTHOR("Mauro Carvalho Chehab");