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