Improve documentation of jack_on_shutdown and jack_on_info_shutdown.
Netjack2 code fixes.
Port naming fix in CoreMidiDriver.
Fix xrun_recovery in ALSA clients.

According to the ALSA documentation, snd_pcm_readi() returns -ESTRPIPE
when a suspend event occured. But xrun_recovery() checks for -EAGAIN
instead.

If the ALSA client is connected to the ALSA loopback device, it leads to
an infinite loop in the client when the computer is resumed from sleep.
The client takes up to 99% of the CPU resources.

The problem is fixed by a proper error checking of snd_pcm_readi().

A word of caution however: on kernels prior to 3.8, it will trigger a
bug in the snd-aloop driver, and may lead to a kernel oops.
The kernel fix can be found there:
http://www.spinics.net/lists/stable-commits/msg23379.html

Signed-off-by: elboulangero <elboulangero@gmail.com>
Use port type information in JackDriver::SaveConnections and JackDriver::RestoreConnections.
Merge remote-tracking branch 'upstream/master'
Correct JackServer::AddSlave.
Correctly pass code parameter in InfoShutdown callback.
Use JACK_DEFAULT_SERVER_NAME constant.
Cleanup Netjack2 code.
Correct JackNetInterface::AudioBufferFactory.
Correct JackDriver::SaveConnections.