Jack audio connections for TASCAM US-2x2HR

Talk about your MIDI interfaces, microphones, keyboards...

Moderators: MattKingUSA, khz

Post Reply
DrDave
Established Member
Posts: 5
Joined: Fri Oct 08, 2021 4:33 pm

Jack audio connections for TASCAM US-2x2HR

Post by DrDave »

When I look at QJackCtl Graph, or Carla, I see MIDI connections for the TASCAM US-2x2HR, but none for audio. This is the case whether I'm running MX AV Linux or Ubuntu 20.04.3 LTS. What do I need to do to get Jack connections for audio? Thanks!
User avatar
LAM
Established Member
Posts: 992
Joined: Thu Oct 08, 2020 3:16 pm
Has thanked: 141 times
Been thanked: 348 times

Re: Jack audio connections for TASCAM US-2x2HR

Post by LAM »

Hi @DrDave,
I would double check you are starting JACK on the TASCAM US-2x2HR. If you are not starting JACK on it, or you prefer to start JACK with another soundcard, like the internal one, you could load the TASCAM using the audioadapter JACK module.

First start JACK normally
then in a terminal:

Code: Select all

jack_load -i "-d hw:1,0 -i 2 -o 4" TASCAM_US-2x2HR audioadapter
where -d hw:(your TASCAM interface index or name, you can check with "cat /proc/asound/cards")
-i(number of inputs)
-o(number of outputs)

in mix, nobody can hear your screen

DrDave
Established Member
Posts: 5
Joined: Fri Oct 08, 2021 4:33 pm

Re: Jack audio connections for TASCAM US-2x2HR

Post by DrDave »

Thanks for your reply!
On system with OS = Ubuntu 20.04.3 LTS Focal Fossa (aarch64)

My file ~/.jackdrc contains:
/usr/bin/jackd -dalsa -dhw:US2x2HR -r44100 -p64

In Qjackctl setup, the Interface is hw:US2x2HR

I tried to use your suggestion:
jack_load -i "-d hw:0,0 -i 2 -o 2" TASCAM_US-2X2HR audioadapter
but it fails:

connect(2) call to /dev/shm/jack-1000/default/jack_0 failed (err=No such file or directory)
jackd 0.125.0rc1
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with System V SHM support.
loading driver ..
apparent rate = 44100
creating alsa driver ... hw:US2x2HR|hw:US2x2HR|64|2|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 64 frames (1.5 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
/usr/lib/aarch64-linux-gnu/jack/audioadapter.so: cannot open shared object file: No such file or directory
cannot dynamically load client from "audioadapter"
could not load jack_load, status = 0x81
jack main caught signal 12

--Hopefully you'll have additional suggestions...
Thank you,
Dave
User avatar
LAM
Established Member
Posts: 992
Joined: Thu Oct 08, 2020 3:16 pm
Has thanked: 141 times
Been thanked: 348 times

Re: Jack audio connections for TASCAM US-2x2HR

Post by LAM »

The first thing to do is to make sure you can start JACK normally before adding manually a device.
I don't know how much knowledge you have about Linux or JACK (you have 2 posts here), so I hope you have at least a basic understanding of these subject before going further.

Anyway, I would suggest to start JACK with the device you are going to use first, in this case I guess it's the TASCAM, so if you have selected it, and JACK starts, you should be good and you don't need to launch any additional command.

Judging from the output everything should already work fine and you should be able to see your TASCAM audio ports.

in mix, nobody can hear your screen

DrDave
Established Member
Posts: 5
Joined: Fri Oct 08, 2021 4:33 pm

Re: Jack audio connections for TASCAM US-2x2HR

Post by DrDave »

I'm not a novice Linux user, but certainly no expert! For Linux audio I'm definitely a novice...
I tried to start jack from the command line. It seems to have started, but timed out after 2 seconds.
My command was:
/usr/bin/jackd -dalsa -dhw:US2x2HR -i2 -o2 -r44100 -p64 &

and the result was:
jackd 0.125.0rc1
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with System V SHM support.
loading driver ..
apparent rate = 44100
creating alsa driver ... hw:US2x2HR|hw:US2x2HR|64|2|44100|2|2|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 64 frames (1.5 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
ALSA: poll time out, polled for 2176050 usecs
DRIVER NT: could not run driver cycle
jack main caught signal 12

Might you have further suggestions?
Thanks again!
User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

Re: Jack audio connections for TASCAM US-2x2HR

Post by khz »

DrDave wrote: Fri Oct 08, 2021 10:51 pm jackd 0.125.0rc1
This is jackd1, the audioadapter only works with jackd2.

From the https://github.com/jackaudio/jackaudio.github.com/wiki:
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
User avatar
LAM
Established Member
Posts: 992
Joined: Thu Oct 08, 2020 3:16 pm
Has thanked: 141 times
Been thanked: 348 times

Re: Jack audio connections for TASCAM US-2x2HR

Post by LAM »

Are you on a RaspberryPi or something like that?

Please check if your user is in the audio group and your config looks like: https://jackaudio.org/faq/linux_rt_config.html

in mix, nobody can hear your screen

User avatar
LAM
Established Member
Posts: 992
Joined: Thu Oct 08, 2020 3:16 pm
Has thanked: 141 times
Been thanked: 348 times

Re: Jack audio connections for TASCAM US-2x2HR

Post by LAM »

I would also try to raise the period from 64 to at least 512 or 1024 (or even 2048).

in mix, nobody can hear your screen

DrDave
Established Member
Posts: 5
Joined: Fri Oct 08, 2021 4:33 pm

Re: Jack audio connections for TASCAM US-2x2HR

Post by DrDave »

The previous results were on an Odroid N2+. Yes,my user name was in the audio group, and /etc/security/limits.d/audio.conf contains:
@audio - rtprio 95
@audio - memlock unlimited

Now I'll try on a Dell Lattitude E6540. My username is again in the audio group.
cat /etc/issue*
Welcome to MX Linux! Powered by Debian.

cat /proc/version
Linux version 5.9.1-rt20avl1 (trulan@avlinux) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1 SMP PREEMPT_RT Sat Oct 31 12:21:58 EDT 2020

**** This machine does not have a /etc/security/limits.d/audio.conf file

/usr/bin/jackd -dalsa -dhw:US2x2HR -i2 -o2 -r44100 -p64 & seems to work:
jackdmp 1.9.12
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2017 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
audio_reservation_init
Acquire audio card Audio2
creating alsa driver ... hw:US2x2HR|hw:US2x2HR|64|2|44100|2|2|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 64 frames (1.5 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback

--however the QjackCtl Graph contains only midi ports for 24:US-2x2HR
--looks like this is jackd2
User avatar
LAM
Established Member
Posts: 992
Joined: Thu Oct 08, 2020 3:16 pm
Has thanked: 141 times
Been thanked: 348 times

Re: Jack audio connections for TASCAM US-2x2HR

Post by LAM »

Ok, on your Dell JACK started it seems.
Regarding the audio ports you are already settings them, 2 in and 2 out.
If they are not appearing I would try to not set the number of ports and set Qjackctl I/O ports to "auto".
Beside that I've no more ideas at the moment, could be some compatibility issue with the kernel or ALSA.

Not related to your issue, but setting the period that low when you are still testing it it's not a good idea. ;)

in mix, nobody can hear your screen

DrDave
Established Member
Posts: 5
Joined: Fri Oct 08, 2021 4:33 pm

Re: Jack audio connections for TASCAM US-2x2HR

Post by DrDave »

On the Dell,
jack_lsp -A
system:capture_1
alsa_pcm:hw:US2x2HR:out1
system:capture_2
alsa_pcm:hw:US2x2HR:out2
system:playback_1
alsa_pcm:hw:US2x2HR:in1
system:playback_2
alsa_pcm:hw:US2x2HR:in2

--It seems that since the TASCAM US-2x2HR was specified when starting jack, it *becomes* the system.
system:capture_1 *IS* US2x2HR:out1 etc

Thanks for all your help! When I run ardour it shows up in the QjackCtl Graph, and I can re-wire if need be.
~Dave
User avatar
LAM
Established Member
Posts: 992
Joined: Thu Oct 08, 2020 3:16 pm
Has thanked: 141 times
Been thanked: 348 times

Re: Jack audio connections for TASCAM US-2x2HR

Post by LAM »

Glad you made it! :wink:

in mix, nobody can hear your screen

User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

Re: Jack audio connections for TASCAM US-2x2HR

Post by khz »

DrDave wrote: Sat Oct 09, 2021 12:26 am jackdmp 1.9.12
[...]
--looks like this is jackd2
Yes you have now installed jackd2. Great that everything is working now. :D
In my signature you might find some useful information about Linux and audio.

If you, with your distribution, are able to install the latest version of jackd2 it would be even better since some crucial things have been developed further. Especially the version "JACK2 v1.9.19" - for example with the "tick_double" https://jackaudio.org/news/2021/07/16/j ... lease.html.
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
Post Reply