rc-d680-dmb.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * keymap imported from cxusb.c
  3. *
  4. * Copyright (C) 2016 Sean Young
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; version 2.
  9. */
  10. #include <media/rc-map.h>
  11. #include <linux/module.h>
  12. static struct rc_map_table rc_map_d680_dmb_table[] = {
  13. { 0x0038, KEY_SWITCHVIDEOMODE }, /* TV/AV */
  14. { 0x080c, KEY_ZOOM },
  15. { 0x0800, KEY_0 },
  16. { 0x0001, KEY_1 },
  17. { 0x0802, KEY_2 },
  18. { 0x0003, KEY_3 },
  19. { 0x0804, KEY_4 },
  20. { 0x0005, KEY_5 },
  21. { 0x0806, KEY_6 },
  22. { 0x0007, KEY_7 },
  23. { 0x0808, KEY_8 },
  24. { 0x0009, KEY_9 },
  25. { 0x000a, KEY_MUTE },
  26. { 0x0829, KEY_BACK },
  27. { 0x0012, KEY_CHANNELUP },
  28. { 0x0813, KEY_CHANNELDOWN },
  29. { 0x002b, KEY_VOLUMEUP },
  30. { 0x082c, KEY_VOLUMEDOWN },
  31. { 0x0020, KEY_UP },
  32. { 0x0821, KEY_DOWN },
  33. { 0x0011, KEY_LEFT },
  34. { 0x0810, KEY_RIGHT },
  35. { 0x000d, KEY_OK },
  36. { 0x081f, KEY_RECORD },
  37. { 0x0017, KEY_PLAYPAUSE },
  38. { 0x0816, KEY_PLAYPAUSE },
  39. { 0x000b, KEY_STOP },
  40. { 0x0827, KEY_FASTFORWARD },
  41. { 0x0026, KEY_REWIND },
  42. { 0x081e, KEY_UNKNOWN }, /* Time Shift */
  43. { 0x000e, KEY_UNKNOWN }, /* Snapshot */
  44. { 0x082d, KEY_UNKNOWN }, /* Mouse Cursor */
  45. { 0x000f, KEY_UNKNOWN }, /* Minimize/Maximize */
  46. { 0x0814, KEY_SHUFFLE }, /* Shuffle */
  47. { 0x0025, KEY_POWER },
  48. };
  49. static struct rc_map_list d680_dmb_map = {
  50. .map = {
  51. .scan = rc_map_d680_dmb_table,
  52. .size = ARRAY_SIZE(rc_map_d680_dmb_table),
  53. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  54. .name = RC_MAP_D680_DMB,
  55. }
  56. };
  57. static int __init init_rc_map_d680_dmb(void)
  58. {
  59. return rc_map_register(&d680_dmb_map);
  60. }
  61. static void __exit exit_rc_map_d680_dmb(void)
  62. {
  63. rc_map_unregister(&d680_dmb_map);
  64. }
  65. module_init(init_rc_map_d680_dmb)
  66. module_exit(exit_rc_map_d680_dmb)
  67. MODULE_LICENSE("GPL");
  68. MODULE_AUTHOR("Mauro Carvalho Chehab");