rc-gadmei-rm008z.c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* gadmei-rm008z.h - Keytable for gadmei_rm008z Remote Controller
  2. *
  3. * keymap imported from ir-keymaps.c
  4. *
  5. * Copyright (c) 2010 by Mauro Carvalho Chehab
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. */
  12. #include <media/rc-map.h>
  13. #include <linux/module.h>
  14. /* GADMEI UTV330+ RM008Z remote
  15. Shine Liu <shinel@foxmail.com>
  16. */
  17. static struct rc_map_table gadmei_rm008z[] = {
  18. { 0x14, KEY_POWER2}, /* POWER OFF */
  19. { 0x0c, KEY_MUTE}, /* MUTE */
  20. { 0x18, KEY_TV}, /* TV */
  21. { 0x0e, KEY_VIDEO}, /* AV */
  22. { 0x0b, KEY_AUDIO}, /* SV */
  23. { 0x0f, KEY_RADIO}, /* FM */
  24. { 0x00, KEY_1},
  25. { 0x01, KEY_2},
  26. { 0x02, KEY_3},
  27. { 0x03, KEY_4},
  28. { 0x04, KEY_5},
  29. { 0x05, KEY_6},
  30. { 0x06, KEY_7},
  31. { 0x07, KEY_8},
  32. { 0x08, KEY_9},
  33. { 0x09, KEY_0},
  34. { 0x0a, KEY_INFO}, /* OSD */
  35. { 0x1c, KEY_BACKSPACE}, /* LAST */
  36. { 0x0d, KEY_PLAY}, /* PLAY */
  37. { 0x1e, KEY_CAMERA}, /* SNAPSHOT */
  38. { 0x1a, KEY_RECORD}, /* RECORD */
  39. { 0x17, KEY_STOP}, /* STOP */
  40. { 0x1f, KEY_UP}, /* UP */
  41. { 0x44, KEY_DOWN}, /* DOWN */
  42. { 0x46, KEY_TAB}, /* BACK */
  43. { 0x4a, KEY_ZOOM}, /* FULLSECREEN */
  44. { 0x10, KEY_VOLUMEUP}, /* VOLUMEUP */
  45. { 0x11, KEY_VOLUMEDOWN}, /* VOLUMEDOWN */
  46. { 0x12, KEY_CHANNELUP}, /* CHANNELUP */
  47. { 0x13, KEY_CHANNELDOWN}, /* CHANNELDOWN */
  48. { 0x15, KEY_ENTER}, /* OK */
  49. };
  50. static struct rc_map_list gadmei_rm008z_map = {
  51. .map = {
  52. .scan = gadmei_rm008z,
  53. .size = ARRAY_SIZE(gadmei_rm008z),
  54. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  55. .name = RC_MAP_GADMEI_RM008Z,
  56. }
  57. };
  58. static int __init init_rc_map_gadmei_rm008z(void)
  59. {
  60. return rc_map_register(&gadmei_rm008z_map);
  61. }
  62. static void __exit exit_rc_map_gadmei_rm008z(void)
  63. {
  64. rc_map_unregister(&gadmei_rm008z_map);
  65. }
  66. module_init(init_rc_map_gadmei_rm008z)
  67. module_exit(exit_rc_map_gadmei_rm008z)
  68. MODULE_LICENSE("GPL");
  69. MODULE_AUTHOR("Mauro Carvalho Chehab");