In r1051 jack_engine_munge_backend_port_names() is being called during
startup. ALSA raw midi backend does port discovery in dynamic way and
thus midi ports appear after call to
jack_engine_munge_backend_port_names() and thus are not munged.
This patch contains:
* munge during port registration not during startup. It is done only
for internal clients. MIDI ports are midi_capture_N and
midi_playback_N in order to not interfere with audio port names.
* ALSA backend name is changed from "alsa_pcm" to "ALSA"
* engine->driver is initialized before call to driver attach() method
to make munge during port registration work during startup.
Adapted and applied jack_lsp filter patch by Ken Restivo.
jack_lsp -c is great for showing all connections, but I needed a way to
to filter out just those that were connected to a particular
"grep -v" isn't sufficient when using "jack_lsp -c", because the
connected devices aren't on the same line as what tey are connected
to. So, rather than make the shell script really complicated, or the
output of jack_lsp really ugly, I patched jack_lsp to add a
I needed this so that I could write a shell script that does "jack_lsp
-c alsa_pcm:playback_2" to get a list of everything that is
connected to that port, and then it can jack_disconnect those (or some
of those) and then jack_connect them to another device.
I doubt that anyone else would need this feature, but, just in case,
here it is.