rc-evga-indtube.c 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* evga-indtube.h - Keytable for evga_indtube 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. /* EVGA inDtube
  15. Devin Heitmueller <devin.heitmueller@gmail.com>
  16. */
  17. static struct rc_map_table evga_indtube[] = {
  18. { 0x12, KEY_POWER},
  19. { 0x02, KEY_MODE}, /* TV */
  20. { 0x14, KEY_MUTE},
  21. { 0x1a, KEY_CHANNELUP},
  22. { 0x16, KEY_TV2}, /* PIP */
  23. { 0x1d, KEY_VOLUMEUP},
  24. { 0x05, KEY_CHANNELDOWN},
  25. { 0x0f, KEY_PLAYPAUSE},
  26. { 0x19, KEY_VOLUMEDOWN},
  27. { 0x1c, KEY_REWIND},
  28. { 0x0d, KEY_RECORD},
  29. { 0x18, KEY_FORWARD},
  30. { 0x1e, KEY_PREVIOUS},
  31. { 0x1b, KEY_STOP},
  32. { 0x1f, KEY_NEXT},
  33. { 0x13, KEY_CAMERA},
  34. };
  35. static struct rc_map_list evga_indtube_map = {
  36. .map = {
  37. .scan = evga_indtube,
  38. .size = ARRAY_SIZE(evga_indtube),
  39. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  40. .name = RC_MAP_EVGA_INDTUBE,
  41. }
  42. };
  43. static int __init init_rc_map_evga_indtube(void)
  44. {
  45. return rc_map_register(&evga_indtube_map);
  46. }
  47. static void __exit exit_rc_map_evga_indtube(void)
  48. {
  49. rc_map_unregister(&evga_indtube_map);
  50. }
  51. module_init(init_rc_map_evga_indtube)
  52. module_exit(exit_rc_map_evga_indtube)
  53. MODULE_LICENSE("GPL");
  54. MODULE_AUTHOR("Mauro Carvalho Chehab");