rc-ati-tv-wonder-hd-600.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // SPDX-License-Identifier: GPL-2.0+
  2. // ati-tv-wonder-hd-600.h - Keytable for ati_tv_wonder_hd_600 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. /* ATI TV Wonder HD 600 USB
  10. Devin Heitmueller <devin.heitmueller@gmail.com>
  11. */
  12. static struct rc_map_table ati_tv_wonder_hd_600[] = {
  13. { 0x00, KEY_RECORD}, /* Row 1 */
  14. { 0x01, KEY_PLAYPAUSE},
  15. { 0x02, KEY_STOP},
  16. { 0x03, KEY_POWER},
  17. { 0x04, KEY_PREVIOUS}, /* Row 2 */
  18. { 0x05, KEY_REWIND},
  19. { 0x06, KEY_FORWARD},
  20. { 0x07, KEY_NEXT},
  21. { 0x08, KEY_EPG}, /* Row 3 */
  22. { 0x09, KEY_HOME},
  23. { 0x0a, KEY_MENU},
  24. { 0x0b, KEY_CHANNELUP},
  25. { 0x0c, KEY_BACK}, /* Row 4 */
  26. { 0x0d, KEY_UP},
  27. { 0x0e, KEY_INFO},
  28. { 0x0f, KEY_CHANNELDOWN},
  29. { 0x10, KEY_LEFT}, /* Row 5 */
  30. { 0x11, KEY_SELECT},
  31. { 0x12, KEY_RIGHT},
  32. { 0x13, KEY_VOLUMEUP},
  33. { 0x14, KEY_LAST}, /* Row 6 */
  34. { 0x15, KEY_DOWN},
  35. { 0x16, KEY_MUTE},
  36. { 0x17, KEY_VOLUMEDOWN},
  37. };
  38. static struct rc_map_list ati_tv_wonder_hd_600_map = {
  39. .map = {
  40. .scan = ati_tv_wonder_hd_600,
  41. .size = ARRAY_SIZE(ati_tv_wonder_hd_600),
  42. .rc_proto = RC_PROTO_UNKNOWN, /* Legacy IR type */
  43. .name = RC_MAP_ATI_TV_WONDER_HD_600,
  44. }
  45. };
  46. static int __init init_rc_map_ati_tv_wonder_hd_600(void)
  47. {
  48. return rc_map_register(&ati_tv_wonder_hd_600_map);
  49. }
  50. static void __exit exit_rc_map_ati_tv_wonder_hd_600(void)
  51. {
  52. rc_map_unregister(&ati_tv_wonder_hd_600_map);
  53. }
  54. module_init(init_rc_map_ati_tv_wonder_hd_600)
  55. module_exit(exit_rc_map_ati_tv_wonder_hd_600)
  56. MODULE_LICENSE("GPL");
  57. MODULE_AUTHOR("Mauro Carvalho Chehab");