How to setup and test

Moderator: flatmax

Post Reply
trondis23
Posts: 4
Joined: Thu Aug 03, 2017 4:23 pm
Location: Norway

Re: How to setup and test

Post by trondis23 » Fri Aug 04, 2017 8:38 pm

Can anyone guide me on how to make Jack work? I am trying to use the card for different synth apps that require Jack. But it doesn't work for me. I have tried different settings and googled to find solutions, but I haven't found one. Jack works OK with a cheap Chinese USB card, but stops working as soon as I switch back to Audio Injector. I get error messages like "cannot allocate memory", and the Jack server won't start.

I suppose that I have set up the card correctly. I used the setup script. I get sound when using ALSA, and also when playing from for example streaming web-sites. But there is a noise, a loud hum. I have tried to set it up on fresh installs of both Raspbian and Ubuntu Mate. I use a Raspberry Pi 3.

trondis23
Posts: 4
Joined: Thu Aug 03, 2017 4:23 pm
Location: Norway

Re: How to setup and test

Post by trondis23 » Sat Aug 05, 2017 5:20 pm

Can anyone guide me on how to make this work with Jack? I am trying to use it with synthesizer applications. Everything I have tried fails, and I get error messages like "cannot allocate memory", and the server won't start. If I change the hardware to a cheap Chinese USB sound card, it works fine. I think the card is installed correctly, as I get sound from ALSA. I used the setup script, and I have tried it on fresh installs of both Raspbian and Ubuntu Mate.

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: How to setup and test

Post by flatmax » Tue Aug 08, 2017 8:39 pm

Can you please post in your command to start jackd ?

Here is my example which works :
First check to see the audioinjector is there :

Code: Select all

pi@raspberrypi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: audioinjectorpi [audioinjector-pi-soundcard], device 0: AudioInjector audio wm8731-hifi-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
Looks like it is !

I run jackd like so :

Code: Select all

pi@raspberrypi:~ $ jackd -d alsa
jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
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 Audio0
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 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
I can see it provides two ports :

Code: Select all

pi@raspberrypi:~ $ jack_lsp
system:capture_1
system:capture_2
system:playback_1
system:playback_2
I do a test with audacity setting it to use the jackd system, the audacity preferences are shown in the following image :
audacity.jackd.prefs.jpg
Audacity jackd preferences
audacity.jackd.prefs.jpg (142.97 KiB) Viewed 4026 times
I generate a tone and playback, all sounds good!
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

trondis23
Posts: 4
Joined: Thu Aug 03, 2017 4:23 pm
Location: Norway

Re: How to setup and test

Post by trondis23 » Tue Aug 08, 2017 11:26 pm

I start Jack from Qjackctl. I have tried different settings, but I want as low latency as possible. A latency of 21,3 ms as in your example is a bit too much. I have therefore tried lower settings for frames per period. But after after trying different settings for frames and sample rate a few times it won't start at all. I plugged in my cheap USB card again, and that works fine. But I will try again with your settings.

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: How to setup and test

Post by flatmax » Wed Aug 09, 2017 1:49 pm

You should be able to get around sub 1ms latencies using ALSA directly - with jackd it may be a little higher ... but aim for low latency.
With USB you probably will not be able to get much below 3 ms latencies.

Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: How to setup and test

Post by flatmax » Wed Aug 09, 2017 2:41 pm

Hi there,

I can run with period sizes of 50 samples (around 1ms latency per period).

Code: Select all

jackd -d alsa -i 2 -o 2 -p 50
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

fastloudmusic
Posts: 2
Joined: Sun Aug 13, 2017 7:29 am

Re: How to setup and test

Post by fastloudmusic » Tue Aug 15, 2017 2:03 am

I bought the mic version of this board from your Amazon store last week, and then followed your instructions for the setup script using the .deb file. Currently, I can configure the board to use Mic input and the board's 3.5 mm output without a hitch. However, when I configure my alsamixer as has been previously shown to enable RCA Line In, I get nothing via arecord or audacity. In addition, my RCA Out seems to only be working out of one channel. This is on a fresh install of Rasbian on a new Pi 3. The audio injector board appears just fine in aplay -l and arecord -l, and I double checked the config.txtand everything appears as it should. I'm at a loss as to what to do next to troubleshoot these two problems.

Once I am able to resolve this, I am hoping that I can configure this board for a vinyl/cassette ripping and streaming project using metadata from Discogs.

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: How to setup and test

Post by flatmax » Tue Aug 15, 2017 8:31 pm

If your RCA is only working out of one channel, and alsa mixer shows both channels of input correctly, then it is possible that you have a defective product.

I will contact you to sort this out.

Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

injectmirror
Posts: 1
Joined: Sun Aug 27, 2017 11:22 am

Re: How to setup and test

Post by injectmirror » Sun Aug 27, 2017 11:30 am

I was having major fails but now I am getting the card to load on bootup :D . I still cannot get the card to work properly though. Here is my setup:
2017-09-03-225537_1223x270_scrot.png
Hardware set-up
2017-09-03-225537_1223x270_scrot.png (60.17 KiB) Viewed 3855 times
2017-09-03-225322_1895x990_scrot.png
Mixer
2017-09-03-225322_1895x990_scrot.png (76.86 KiB) Viewed 3855 times
I am using the headphone jack as the output and I want to use the mic as the input. When I arecord it seems to record but the playback is empty. There is no input or output to the browser either. It looks like it should be working but I am getting neither input nor output. At times, I haven't pinned down when, it will play a wav file for me through my headphones.

There is another problem that may be related. When I use `arecord` or `aplay` the command works, but on a second try of these commands I get an error message:

Code: Select all

aplay: main:722: audio open error: Device or resource busy
Also, when I execute the test script

Code: Select all

audioInjector-test.sh
I get this strange output,
2017-09-04-014443_1223x735_scrot.png
From test script.
2017-09-04-014443_1223x735_scrot.png (125.09 KiB) Viewed 3855 times
I think there may be a problem with the sound card. When I unmute the "Output Mixer Line" and put my finger on the capacitors behind the pot, I get massive interference and all of a sudden it is capturing sound. I don't know anything about electronics so maybe this is nothing?

I'm so close! Please help :cry:

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: How to setup and test

Post by flatmax » Wed Sep 06, 2017 8:25 am

Hi,

It is a little hard to work out what is going on. The fact that you can record and play back once, but it doesn't work a second time - strange. From private comms with you I am aware that you have setup many times trying to fix this. hmmm... lets talk about this more on email.

Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests