rc-dvico-portable.c 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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_dvico_portable_table[] = {
  13. { 0x0302, KEY_SETUP }, /* Profile */
  14. { 0x0343, KEY_POWER2 },
  15. { 0x0306, KEY_EPG },
  16. { 0x035a, KEY_BACK },
  17. { 0x0305, KEY_MENU },
  18. { 0x0347, KEY_INFO },
  19. { 0x0301, KEY_TAB },
  20. { 0x0342, KEY_PREVIOUSSONG },/* Replay */
  21. { 0x0349, KEY_VOLUMEUP },
  22. { 0x0309, KEY_VOLUMEDOWN },
  23. { 0x0354, KEY_CHANNELUP },
  24. { 0x030b, KEY_CHANNELDOWN },
  25. { 0x0316, KEY_CAMERA },
  26. { 0x0340, KEY_TUNER }, /* ATV/DTV */
  27. { 0x0345, KEY_OPEN },
  28. { 0x0319, KEY_1 },
  29. { 0x0318, KEY_2 },
  30. { 0x031b, KEY_3 },
  31. { 0x031a, KEY_4 },
  32. { 0x0358, KEY_5 },
  33. { 0x0359, KEY_6 },
  34. { 0x0315, KEY_7 },
  35. { 0x0314, KEY_8 },
  36. { 0x0317, KEY_9 },
  37. { 0x0344, KEY_ANGLE }, /* Aspect */
  38. { 0x0355, KEY_0 },
  39. { 0x0307, KEY_ZOOM },
  40. { 0x030a, KEY_REWIND },
  41. { 0x0308, KEY_PLAYPAUSE },
  42. { 0x034b, KEY_FASTFORWARD },
  43. { 0x035b, KEY_MUTE },
  44. { 0x0304, KEY_STOP },
  45. { 0x0356, KEY_RECORD },
  46. { 0x0357, KEY_POWER },
  47. { 0x0341, KEY_UNKNOWN }, /* INPUT */
  48. { 0x0300, KEY_UNKNOWN }, /* HD */
  49. };
  50. static struct rc_map_list dvico_portable_map = {
  51. .map = {
  52. .scan = rc_map_dvico_portable_table,
  53. .size = ARRAY_SIZE(rc_map_dvico_portable_table),
  54. .rc_proto = RC_PROTO_NEC,
  55. .name = RC_MAP_DVICO_PORTABLE,
  56. }
  57. };
  58. static int __init init_rc_map_dvico_portable(void)
  59. {
  60. return rc_map_register(&dvico_portable_map);
  61. }
  62. static void __exit exit_rc_map_dvico_portable(void)
  63. {
  64. rc_map_unregister(&dvico_portable_map);
  65. }
  66. module_init(init_rc_map_dvico_portable)
  67. module_exit(exit_rc_map_dvico_portable)
  68. MODULE_LICENSE("GPL");
  69. MODULE_AUTHOR("Mauro Carvalho Chehab");