emu10k1-jack.rst 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. =================================================================
  2. Low latency, multichannel audio with JACK and the emu10k1/emu10k2
  3. =================================================================
  4. This document is a guide to using the emu10k1 based devices with JACK for low
  5. latency, multichannel recording functionality. All of my recent work to allow
  6. Linux users to use the full capabilities of their hardware has been inspired
  7. by the kX Project. Without their work I never would have discovered the true
  8. power of this hardware.
  9. http://www.kxproject.com
  10. - Lee Revell, 2005.03.30
  11. Until recently, emu10k1 users on Linux did not have access to the same low
  12. latency, multichannel features offered by the "kX ASIO" feature of their
  13. Windows driver. As of ALSA 1.0.9 this is no more!
  14. For those unfamiliar with kX ASIO, this consists of 16 capture and 16 playback
  15. channels. With a post 2.6.9 Linux kernel, latencies down to 64 (1.33 ms) or
  16. even 32 (0.66ms) frames should work well.
  17. The configuration is slightly more involved than on Windows, as you have to
  18. select the correct device for JACK to use. Actually, for qjackctl users it's
  19. fairly self explanatory - select Duplex, then for capture and playback select
  20. the multichannel devices, set the in and out channels to 16, and the sample
  21. rate to 48000Hz. The command line looks like this:
  22. ::
  23. /usr/local/bin/jackd -R -dalsa -r48000 -p64 -n2 -D -Chw:0,2 -Phw:0,3 -S
  24. This will give you 16 input ports and 16 output ports.
  25. The 16 output ports map onto the 16 FX buses (or the first 16 of 64, for the
  26. Audigy). The mapping from FX bus to physical output is described in
  27. sb-live-mixer.rst (or audigy-mixer.rst).
  28. The 16 input ports are connected to the 16 physical inputs. Contrary to
  29. popular belief, all emu10k1 cards are multichannel cards. Which of these
  30. input channels have physical inputs connected to them depends on the card
  31. model. Trial and error is highly recommended; the pinout diagrams
  32. for the card have been reverse engineered by some enterprising kX users and are
  33. available on the internet. Meterbridge is helpful here, and the kX forums are
  34. packed with useful information.
  35. Each input port will either correspond to a digital (SPDIF) input, an analog
  36. input, or nothing. The one exception is the SBLive! 5.1. On these devices,
  37. the second and third input ports are wired to the center/LFE output. You will
  38. still see 16 capture channels, but only 14 are available for recording inputs.
  39. This chart, borrowed from kxfxlib/da_asio51.cpp, describes the mapping of JACK
  40. ports to FXBUS2 (multitrack recording input) and EXTOUT (physical output)
  41. channels.
  42. JACK (& ASIO) mappings on 10k1 5.1 SBLive cards:
  43. ============== ======== ============
  44. JACK Epilog FXBUS2(nr)
  45. ============== ======== ============
  46. capture_1 asio14 FXBUS2(0xe)
  47. capture_2 asio15 FXBUS2(0xf)
  48. capture_3 asio0 FXBUS2(0x0)
  49. ~capture_4 Center EXTOUT(0x11) // mapped to by Center
  50. ~capture_5 LFE EXTOUT(0x12) // mapped to by LFE
  51. capture_6 asio3 FXBUS2(0x3)
  52. capture_7 asio4 FXBUS2(0x4)
  53. capture_8 asio5 FXBUS2(0x5)
  54. capture_9 asio6 FXBUS2(0x6)
  55. capture_10 asio7 FXBUS2(0x7)
  56. capture_11 asio8 FXBUS2(0x8)
  57. capture_12 asio9 FXBUS2(0x9)
  58. capture_13 asio10 FXBUS2(0xa)
  59. capture_14 asio11 FXBUS2(0xb)
  60. capture_15 asio12 FXBUS2(0xc)
  61. capture_16 asio13 FXBUS2(0xd)
  62. ============== ======== ============
  63. TODO: describe use of ld10k1/qlo10k1 in conjunction with JACK