rc-total-media-in-hand-02.c 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Total Media In Hand_02 remote controller keytable for Mygica X8507
  4. *
  5. * Copyright (C) 2012 Alfredo J. Delaiti <[email protected]>
  6. */
  7. #include <media/rc-map.h>
  8. #include <linux/module.h>
  9. static struct rc_map_table total_media_in_hand_02[] = {
  10. { 0x0000, KEY_NUMERIC_0 },
  11. { 0x0001, KEY_NUMERIC_1 },
  12. { 0x0002, KEY_NUMERIC_2 },
  13. { 0x0003, KEY_NUMERIC_3 },
  14. { 0x0004, KEY_NUMERIC_4 },
  15. { 0x0005, KEY_NUMERIC_5 },
  16. { 0x0006, KEY_NUMERIC_6 },
  17. { 0x0007, KEY_NUMERIC_7 },
  18. { 0x0008, KEY_NUMERIC_8 },
  19. { 0x0009, KEY_NUMERIC_9 },
  20. { 0x000a, KEY_MUTE },
  21. { 0x000b, KEY_STOP }, /* Stop */
  22. { 0x000c, KEY_POWER2 }, /* Turn on/off application */
  23. { 0x000d, KEY_OK }, /* OK */
  24. { 0x000e, KEY_CAMERA }, /* Snapshot */
  25. { 0x000f, KEY_ZOOM }, /* Full Screen/Restore */
  26. { 0x0010, KEY_RIGHT }, /* Right arrow */
  27. { 0x0011, KEY_LEFT }, /* Left arrow */
  28. { 0x0012, KEY_CHANNELUP },
  29. { 0x0013, KEY_CHANNELDOWN },
  30. { 0x0014, KEY_SHUFFLE },
  31. { 0x0016, KEY_PAUSE },
  32. { 0x0017, KEY_PLAY }, /* Play */
  33. { 0x001e, KEY_TIME }, /* Time Shift */
  34. { 0x001f, KEY_RECORD },
  35. { 0x0020, KEY_UP },
  36. { 0x0021, KEY_DOWN },
  37. { 0x0025, KEY_POWER }, /* Turn off computer */
  38. { 0x0026, KEY_REWIND }, /* FR << */
  39. { 0x0027, KEY_FASTFORWARD }, /* FF >> */
  40. { 0x0029, KEY_ESC },
  41. { 0x002b, KEY_VOLUMEUP },
  42. { 0x002c, KEY_VOLUMEDOWN },
  43. { 0x002d, KEY_CHANNEL }, /* CH Surfing */
  44. { 0x0038, KEY_VIDEO }, /* TV/AV/S-Video/YPbPr */
  45. };
  46. static struct rc_map_list total_media_in_hand_02_map = {
  47. .map = {
  48. .scan = total_media_in_hand_02,
  49. .size = ARRAY_SIZE(total_media_in_hand_02),
  50. .rc_proto = RC_PROTO_RC5,
  51. .name = RC_MAP_TOTAL_MEDIA_IN_HAND_02,
  52. }
  53. };
  54. static int __init init_rc_map_total_media_in_hand_02(void)
  55. {
  56. return rc_map_register(&total_media_in_hand_02_map);
  57. }
  58. static void __exit exit_rc_map_total_media_in_hand_02(void)
  59. {
  60. rc_map_unregister(&total_media_in_hand_02_map);
  61. }
  62. module_init(init_rc_map_total_media_in_hand_02)
  63. module_exit(exit_rc_map_total_media_in_hand_02)
  64. MODULE_LICENSE("GPL");
  65. MODULE_AUTHOR(" Alfredo J. Delaiti <[email protected]>");