This HOWTO describes all that is necessary to achieve this goal.
In our setup we use the ALSA library and driver modules, as this is (or should be) the standard way of doing serious audio and MIDI on Linux.