[Jackaudio] Querying input ports for 1 input channel card fails (ALSA/USB)

Christopher Arndt chris at chrisarndt.de
Thu May 7 22:15:34 CEST 2020


You should get the output of 'jack_lsp' from the user. Who knows what
qjackctl is doing between calling 'jack_get_ports' and the patchbay display.

Another thing to examine, 'jack_connect' may also return EEXIST, if the
connection is already made, but your code doesn't distinguish between
this and other errors. Maybe there's a race condition where some other
program (qjackctl) has already connected the ports before your code gets
there?

Am 07.05.20 um 10:06 schrieb Kjetil Matheussen:
> Here's the code:
> https://github.com/kmatheussen/radium/blob/master/audio/KillJackd.cpp#L128

BTW, while not relevant to your problem

    const char *portname2 = portname1==NULL ? NULL : portnames[1];

portname1 will never be NULL in this block, because it is checked to be
!= NULL in line 135, won't it?


Chris


More information about the JackAudio mailing list