rc-pixelview-new.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // pixelview-new.h - Keytable for pixelview_new Remote Controller
  3. //
  4. // keymap imported from ir-keymaps.c
  5. //
  6. // Copyright (c) 2010 by Mauro Carvalho Chehab
  7. #include <media/rc-map.h>
  8. #include <linux/module.h>
  9. /*
  10. Mauro Carvalho Chehab <mchehab@kernel.org>
  11. present on PV MPEG 8000GT
  12. */
  13. static struct rc_map_table pixelview_new[] = {
  14. { 0x3c, KEY_TIME }, /* Timeshift */
  15. { 0x12, KEY_POWER },
  16. { 0x3d, KEY_1 },
  17. { 0x38, KEY_2 },
  18. { 0x18, KEY_3 },
  19. { 0x35, KEY_4 },
  20. { 0x39, KEY_5 },
  21. { 0x15, KEY_6 },
  22. { 0x36, KEY_7 },
  23. { 0x3a, KEY_8 },
  24. { 0x1e, KEY_9 },
  25. { 0x3e, KEY_0 },
  26. { 0x1c, KEY_AGAIN }, /* LOOP */
  27. { 0x3f, KEY_VIDEO }, /* Source */
  28. { 0x1f, KEY_LAST }, /* +100 */
  29. { 0x1b, KEY_MUTE },
  30. { 0x17, KEY_CHANNELDOWN },
  31. { 0x16, KEY_CHANNELUP },
  32. { 0x10, KEY_VOLUMEUP },
  33. { 0x14, KEY_VOLUMEDOWN },
  34. { 0x13, KEY_ZOOM },
  35. { 0x19, KEY_CAMERA }, /* SNAPSHOT */
  36. { 0x1a, KEY_SEARCH }, /* scan */
  37. { 0x37, KEY_REWIND }, /* << */
  38. { 0x32, KEY_RECORD }, /* o (red) */
  39. { 0x33, KEY_FORWARD }, /* >> */
  40. { 0x11, KEY_STOP }, /* square */
  41. { 0x3b, KEY_PLAY }, /* > */
  42. { 0x30, KEY_PLAYPAUSE }, /* || */
  43. { 0x31, KEY_TV },
  44. { 0x34, KEY_RADIO },
  45. };
  46. static struct rc_map_list pixelview_new_map = {
  47. .map = {
  48. .scan = pixelview_new,
  49. .size = ARRAY_SIZE(pixelview_new),
  50. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  51. .name = RC_MAP_PIXELVIEW_NEW,
  52. }
  53. };
  54. static int __init init_rc_map_pixelview_new(void)
  55. {
  56. return rc_map_register(&pixelview_new_map);
  57. }
  58. static void __exit exit_rc_map_pixelview_new(void)
  59. {
  60. rc_map_unregister(&pixelview_new_map);
  61. }
  62. module_init(init_rc_map_pixelview_new)
  63. module_exit(exit_rc_map_pixelview_new)
  64. MODULE_LICENSE("GPL");
  65. MODULE_AUTHOR("Mauro Carvalho Chehab");