Joystick.txt 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. Analog Joystick Support on ALSA Drivers
  2. =======================================
  3. Oct. 14, 2003
  4. Takashi Iwai <tiwai@suse.de>
  5. General
  6. -------
  7. First of all, you need to enable GAMEPORT support on Linux kernel for
  8. using a joystick with the ALSA driver. For the details of gameport
  9. support, refer to Documentation/input/joystick.txt.
  10. The joystick support of ALSA drivers is different between ISA and PCI
  11. cards. In the case of ISA (PnP) cards, it's usually handled by the
  12. independent module (ns558). Meanwhile, the ALSA PCI drivers have the
  13. built-in gameport support. Hence, when the ALSA PCI driver is built
  14. in the kernel, CONFIG_GAMEPORT must be 'y', too. Otherwise, the
  15. gameport support on that card will be (silently) disabled.
  16. Some adapter modules probe the physical connection of the device at
  17. the load time. It'd be safer to plug in the joystick device before
  18. loading the module.
  19. PCI Cards
  20. ---------
  21. For PCI cards, the joystick is enabled when the appropriate module
  22. option is specified. Some drivers don't need options, and the
  23. joystick support is always enabled. In the former ALSA version, there
  24. was a dynamic control API for the joystick activation. It was
  25. changed, however, to the static module options because of the system
  26. stability and the resource management.
  27. The following PCI drivers support the joystick natively.
  28. Driver Module Option Available Values
  29. ---------------------------------------------------------------------------
  30. als4000 joystick_port 0 = disable (default), 1 = auto-detect,
  31. manual: any address (e.g. 0x200)
  32. au88x0 N/A N/A
  33. azf3328 joystick 0 = disable, 1 = enable, -1 = auto (default)
  34. ens1370 joystick 0 = disable (default), 1 = enable
  35. ens1371 joystick_port 0 = disable (default), 1 = auto-detect,
  36. manual: 0x200, 0x208, 0x210, 0x218
  37. cmipci joystick_port 0 = disable (default), 1 = auto-detect,
  38. manual: any address (e.g. 0x200)
  39. cs4281 N/A N/A
  40. cs46xx N/A N/A
  41. es1938 N/A N/A
  42. es1968 joystick 0 = disable (default), 1 = enable
  43. sonicvibes N/A N/A
  44. trident N/A N/A
  45. via82xx(*1) joystick 0 = disable (default), 1 = enable
  46. ymfpci joystick_port 0 = disable (default), 1 = auto-detect,
  47. manual: 0x201, 0x202, 0x204, 0x205(*2)
  48. ---------------------------------------------------------------------------
  49. *1) VIA686A/B only
  50. *2) With YMF744/754 chips, the port address can be chosen arbitrarily
  51. The following drivers don't support gameport natively, but there are
  52. additional modules. Load the corresponding module to add the gameport
  53. support.
  54. Driver Additional Module
  55. -----------------------------
  56. emu10k1 emu10k1-gp
  57. fm801 fm801-gp
  58. -----------------------------
  59. Note: the "pcigame" and "cs461x" modules are for the OSS drivers only.
  60. These ALSA drivers (cs46xx, trident and au88x0) have the
  61. built-in gameport support.
  62. As mentioned above, ALSA PCI drivers have the built-in gameport
  63. support, so you don't have to load ns558 module. Just load "joydev"
  64. and the appropriate adapter module (e.g. "analog").
  65. ISA Cards
  66. ---------
  67. ALSA ISA drivers don't have the built-in gameport support.
  68. Instead, you need to load "ns558" module in addition to "joydev" and
  69. the adapter module (e.g. "analog").