rc-pixelview-new.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* pixelview-new.h - Keytable for pixelview_new 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. /*
  15. Mauro Carvalho Chehab <mchehab@infradead.org>
  16. present on PV MPEG 8000GT
  17. */
  18. static struct rc_map_table pixelview_new[] = {
  19. { 0x3c, KEY_TIME }, /* Timeshift */
  20. { 0x12, KEY_POWER },
  21. { 0x3d, KEY_1 },
  22. { 0x38, KEY_2 },
  23. { 0x18, KEY_3 },
  24. { 0x35, KEY_4 },
  25. { 0x39, KEY_5 },
  26. { 0x15, KEY_6 },
  27. { 0x36, KEY_7 },
  28. { 0x3a, KEY_8 },
  29. { 0x1e, KEY_9 },
  30. { 0x3e, KEY_0 },
  31. { 0x1c, KEY_AGAIN }, /* LOOP */
  32. { 0x3f, KEY_VIDEO }, /* Source */
  33. { 0x1f, KEY_LAST }, /* +100 */
  34. { 0x1b, KEY_MUTE },
  35. { 0x17, KEY_CHANNELDOWN },
  36. { 0x16, KEY_CHANNELUP },
  37. { 0x10, KEY_VOLUMEUP },
  38. { 0x14, KEY_VOLUMEDOWN },
  39. { 0x13, KEY_ZOOM },
  40. { 0x19, KEY_CAMERA }, /* SNAPSHOT */
  41. { 0x1a, KEY_SEARCH }, /* scan */
  42. { 0x37, KEY_REWIND }, /* << */
  43. { 0x32, KEY_RECORD }, /* o (red) */
  44. { 0x33, KEY_FORWARD }, /* >> */
  45. { 0x11, KEY_STOP }, /* square */
  46. { 0x3b, KEY_PLAY }, /* > */
  47. { 0x30, KEY_PLAYPAUSE }, /* || */
  48. { 0x31, KEY_TV },
  49. { 0x34, KEY_RADIO },
  50. };
  51. static struct rc_map_list pixelview_new_map = {
  52. .map = {
  53. .scan = pixelview_new,
  54. .size = ARRAY_SIZE(pixelview_new),
  55. .rc_type = RC_TYPE_UNKNOWN, /* Legacy IR type */
  56. .name = RC_MAP_PIXELVIEW_NEW,
  57. }
  58. };
  59. static int __init init_rc_map_pixelview_new(void)
  60. {
  61. return rc_map_register(&pixelview_new_map);
  62. }
  63. static void __exit exit_rc_map_pixelview_new(void)
  64. {
  65. rc_map_unregister(&pixelview_new_map);
  66. }
  67. module_init(init_rc_map_pixelview_new)
  68. module_exit(exit_rc_map_pixelview_new)
  69. MODULE_LICENSE("GPL");
  70. MODULE_AUTHOR("Mauro Carvalho Chehab");