rc-apac-viewcomp.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // apac-viewcomp.h - Keytable for apac_viewcomp 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. /* Attila Kondoros <attila.kondoros@chello.hu> */
  10. static struct rc_map_table apac_viewcomp[] = {
  11. { 0x01, KEY_1 },
  12. { 0x02, KEY_2 },
  13. { 0x03, KEY_3 },
  14. { 0x04, KEY_4 },
  15. { 0x05, KEY_5 },
  16. { 0x06, KEY_6 },
  17. { 0x07, KEY_7 },
  18. { 0x08, KEY_8 },
  19. { 0x09, KEY_9 },
  20. { 0x00, KEY_0 },
  21. { 0x17, KEY_LAST }, /* +100 */
  22. { 0x0a, KEY_LIST }, /* recall */
  23. { 0x1c, KEY_TUNER }, /* TV/FM */
  24. { 0x15, KEY_SEARCH }, /* scan */
  25. { 0x12, KEY_POWER }, /* power */
  26. { 0x1f, KEY_VOLUMEDOWN }, /* vol up */
  27. { 0x1b, KEY_VOLUMEUP }, /* vol down */
  28. { 0x1e, KEY_CHANNELDOWN }, /* chn up */
  29. { 0x1a, KEY_CHANNELUP }, /* chn down */
  30. { 0x11, KEY_VIDEO }, /* video */
  31. { 0x0f, KEY_ZOOM }, /* full screen */
  32. { 0x13, KEY_MUTE }, /* mute/unmute */
  33. { 0x10, KEY_TEXT }, /* min */
  34. { 0x0d, KEY_STOP }, /* freeze */
  35. { 0x0e, KEY_RECORD }, /* record */
  36. { 0x1d, KEY_PLAYPAUSE }, /* stop */
  37. { 0x19, KEY_PLAY }, /* play */
  38. { 0x16, KEY_GOTO }, /* osd */
  39. { 0x14, KEY_REFRESH }, /* default */
  40. { 0x0c, KEY_KPPLUS }, /* fine tune >>>> */
  41. { 0x18, KEY_KPMINUS }, /* fine tune <<<< */
  42. };
  43. static struct rc_map_list apac_viewcomp_map = {
  44. .map = {
  45. .scan = apac_viewcomp,
  46. .size = ARRAY_SIZE(apac_viewcomp),
  47. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  48. .name = RC_MAP_APAC_VIEWCOMP,
  49. }
  50. };
  51. static int __init init_rc_map_apac_viewcomp(void)
  52. {
  53. return rc_map_register(&apac_viewcomp_map);
  54. }
  55. static void __exit exit_rc_map_apac_viewcomp(void)
  56. {
  57. rc_map_unregister(&apac_viewcomp_map);
  58. }
  59. module_init(init_rc_map_apac_viewcomp)
  60. module_exit(exit_rc_map_apac_viewcomp)
  61. MODULE_LICENSE("GPL");
  62. MODULE_AUTHOR("Mauro Carvalho Chehab");