rc-dvico-mce.c 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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_mce_table[] = {
  13. { 0x0102, KEY_TV },
  14. { 0x010e, KEY_MP3 },
  15. { 0x011a, KEY_DVD },
  16. { 0x011e, KEY_FAVORITES },
  17. { 0x0116, KEY_SETUP },
  18. { 0x0146, KEY_POWER2 },
  19. { 0x010a, KEY_EPG },
  20. { 0x0149, KEY_BACK },
  21. { 0x014d, KEY_MENU },
  22. { 0x0151, KEY_UP },
  23. { 0x015b, KEY_LEFT },
  24. { 0x015f, KEY_RIGHT },
  25. { 0x0153, KEY_DOWN },
  26. { 0x015e, KEY_OK },
  27. { 0x0159, KEY_INFO },
  28. { 0x0155, KEY_TAB },
  29. { 0x010f, KEY_PREVIOUSSONG },/* Replay */
  30. { 0x0112, KEY_NEXTSONG }, /* Skip */
  31. { 0x0142, KEY_ENTER }, /* Windows/Start */
  32. { 0x0115, KEY_VOLUMEUP },
  33. { 0x0105, KEY_VOLUMEDOWN },
  34. { 0x0111, KEY_CHANNELUP },
  35. { 0x0109, KEY_CHANNELDOWN },
  36. { 0x0152, KEY_CAMERA },
  37. { 0x015a, KEY_TUNER }, /* Live */
  38. { 0x0119, KEY_OPEN },
  39. { 0x010b, KEY_1 },
  40. { 0x0117, KEY_2 },
  41. { 0x011b, KEY_3 },
  42. { 0x0107, KEY_4 },
  43. { 0x0150, KEY_5 },
  44. { 0x0154, KEY_6 },
  45. { 0x0148, KEY_7 },
  46. { 0x014c, KEY_8 },
  47. { 0x0158, KEY_9 },
  48. { 0x0113, KEY_ANGLE }, /* Aspect */
  49. { 0x0103, KEY_0 },
  50. { 0x011f, KEY_ZOOM },
  51. { 0x0143, KEY_REWIND },
  52. { 0x0147, KEY_PLAYPAUSE },
  53. { 0x014f, KEY_FASTFORWARD },
  54. { 0x0157, KEY_MUTE },
  55. { 0x010d, KEY_STOP },
  56. { 0x0101, KEY_RECORD },
  57. { 0x014e, KEY_POWER },
  58. };
  59. static struct rc_map_list dvico_mce_map = {
  60. .map = {
  61. .scan = rc_map_dvico_mce_table,
  62. .size = ARRAY_SIZE(rc_map_dvico_mce_table),
  63. .rc_proto = RC_PROTO_NEC,
  64. .name = RC_MAP_DVICO_MCE,
  65. }
  66. };
  67. static int __init init_rc_map_dvico_mce(void)
  68. {
  69. return rc_map_register(&dvico_mce_map);
  70. }
  71. static void __exit exit_rc_map_dvico_mce(void)
  72. {
  73. rc_map_unregister(&dvico_mce_map);
  74. }
  75. module_init(init_rc_map_dvico_mce)
  76. module_exit(exit_rc_map_dvico_mce)
  77. MODULE_LICENSE("GPL");
  78. MODULE_AUTHOR("Mauro Carvalho Chehab");