How to setup and test

Moderator: flatmax

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

Re: How to setup and test

Post by flatmax » Mon Jan 15, 2018 8:29 pm

egmontr wrote:
Sun Dec 24, 2017 12:57 am
Hi Matt,

sorry to ask you, but where can I finad a manual/tutorial?

Best regards
Egmont
Hi there,

Unfortunately there isn't a manual/tutorial for operating sound under linux, however there are some nice sites with links ...
What sort of information are you after specifically ?

thanks
Matt
Checkout the next kickstarter campaign - the Ultra 2 : https://kck.st/2xwM3DL
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: 604
Joined: Sat Jul 23, 2016 11:39 pm

Re: How to setup and test

Post by flatmax » Mon Jan 15, 2018 8:30 pm

mario wrote:
Fri Dec 29, 2017 9:28 pm
Hello,

I'm not a linux expert but I had no problems installing the soundcard; anyway I had the "famous" problem of sound going only through HDMI.
After some search I've found an explanation for my problem and maybe this can be useful for other users.
This is the interesting article: https://www.raspberrypi.org/documentation/usage/audio/
and this was the very important concept (that I didn't know):
"Note that omxplayer doesn't use ALSA and so ignores the audio configuration set by raspi-config or amixer"
This was the reason why aplay was working but the omxplayer was always playing through HDMI.
It's possible to force output over the headphone jack with:
omxplayer -o local example.mp3

I don't know if this a solution for other people but it gave me an explanation to an apparent mistery

Mario
Awesome ! thanks for the info.

Matt
Checkout the next kickstarter campaign - the Ultra 2 : https://kck.st/2xwM3DL
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: 604
Joined: Sat Jul 23, 2016 11:39 pm

Re: How to setup and test

Post by flatmax » Mon Jan 15, 2018 8:31 pm

turboatti wrote:
Tue Jan 09, 2018 5:15 am
Hello!

I 've some problems to setup the stereo card.

I've the following software and hardware:
-raspberry pi 3 model b
-7" lcd touchscreen (connected via GPIO)
-AudioInjector AIH v1.5 (via GPIO)
-Raspian noobs 2.4.5 with the latest kernel update

I've done the install as you said as manually as automatically...

If I try to open the alsa mixer or command aplay -l

"alsactl: load state:1735 No sound cards found"

What way should I go forward to solve my problems?

Thanks in advance!
If you type dmesg, do you see this line ?

Code: Select all

 wm8731-hifi <-> 3f203000.i2s mapp ing ok
Checkout the next kickstarter campaign - the Ultra 2 : https://kck.st/2xwM3DL
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: 604
Joined: Sat Jul 23, 2016 11:39 pm

Re: How to setup and test

Post by flatmax » Mon Jan 15, 2018 8:31 pm

customcables067 wrote:
Fri Jan 12, 2018 8:32 am
Hoping for some help with setup. I've installed and configured according to the manual steps listed on page 1...

[ 3.662217] audioinjector-stereo soc:sound: ASoC: CPU DAI (null) not register ed - will retry
[ 3.662232] audioinjector-stereo soc:sound: snd_soc_register_card failed (-51 7)
[ 3.671883] audioinjector-stereo soc:sound: ASoC: CODEC DAI wm8731-hifi not r egistered - will retry
[ 3.671895] audioinjector-stereo soc:sound: snd_soc_register_card failed (-51 7)
[ 4.040499] audioinjector-stereo soc:sound: ASoC: CODEC DAI wm8731-hifi not r egistered - will retry
[ 4.040508] audioinjector-stereo soc:sound: snd_soc_register_card failed (-51 7)
[ 4.045739] audioinjector-stereo soc:sound: ASoC: CODEC DAI wm8731-hifi not r egistered - will retry
[ 4.045747] audioinjector-stereo soc:sound: snd_soc_register_card failed (-51 7)
[ 4.871507] audioinjector-stereo soc:sound: wm8731-hifi <-> 3f203000.i2s mapp ing ok

but...

arecord: device_list:268: no soundcards found...


Help?

Strange, your card has been found.
Hmmm ...
What does alsamixer do ?
What does aplay -l report ?
What does arecord -l report ?

thanks
Matt
Checkout the next kickstarter campaign - the Ultra 2 : https://kck.st/2xwM3DL
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: 604
Joined: Sat Jul 23, 2016 11:39 pm

Re: How to setup and test

Post by flatmax » Mon Jan 15, 2018 8:32 pm

pzaremba wrote:
Sun Jan 14, 2018 9:07 pm
Hi,

Just checking in. Got a flatmax stereo for Pi for Christmas and just got it up and running with my RPi 3B with a fresh load of Raspbian Stretch.


audio_injector_test.jpg


Looking at a nice spectrogram of the 10 kHz pulsing test loopback tone. No sweat, super easy.

Granted, I am a fairly advanced Linux and RPi user...so...someone who is coming in fresh expecting plug and play might have a litter tougher time with it.

I even convinced my buddy to pick one up.

Tt's up and running, and now it's time to play with it! We are working on audio processing tools and this is going to be an excellent addition to our kit.

Thanks.

-p
Awesome ! Thanks for the good news.

Matt
Checkout the next kickstarter campaign - the Ultra 2 : https://kck.st/2xwM3DL
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

AB1VL
Posts: 7
Joined: Sun Jan 21, 2018 12:41 am
Contact:

Re: How to setup and test

Post by AB1VL » Sun Jan 21, 2018 1:33 am

Hello, I h ave a new Pi3B with Stretch. Did auto-install deb scripts. Now running audioInjector-test.sh but see big vertical yellow bars. Cmic1 is not populated so no surprise there, right? ( I ordered the non-mic version on purpose FYI)

I plugged small amplified speakers into 3.5 mm jack and I hear audio in and out alternately from my main app, digital radio wsjt-x, which reads (captures) and writes coded audio from a real HF radio, alternately. That app is set to plughwCARD=audioinjector.DEV0 for input and output, Mono input and Both output. Seems to be working OK so far using RCA phono jack connectors i and out, monitor using speakers as above is a helpful feature. wsjt-x p calls for 16 bit, 48000 sample audio, more resolution is not recommended as it adds overheard. Do I need to set some alsa or other command to assure this? BTW, on native Linux like Lubuntu on AMD64 mobo the app wants Pulseaudio, which I have installed on pi as well.

In Pi audio prefs/Audio Dev settings the only device to choose from is audioinjector-pi-soundcard. Is that always correct? Should I want to, would I have to change dev tree to HDMI or the native pi bcm to get youtube vid audio to play? It doesn't play now. That is, how do I get audioinjector stereo to capture and play youtube vid audio, or any other app audio? I suspect this has something to do with the current ALSA/pulseaudio config but I'm a noob with Linux audio. With my digital radio app off and unloaded, I can't get other apps to play. I did set raspi-config audio to auto before running install scripts.

some specifics: 1) Do all references to Mic refer to on-board mic? Also is RCA Input always line level or can it be set to mic? Or is the mic/preamp connector the 3.5mm jack the way in for external mic?

2) The board capabilities as listed on Amazon are insufficient to work out the possibilities. Do you have a logical diagram or pdf that shows examples of typical use?

3) can I safely assume if ALSA supports it, so does the the injector?

4) can you point me to a good ALSA primer, e.g "Three Stooges meet ALSA" <g>

5) Can stereo channels be split to process two different mono streams, and routed to RCA out or 3.5 mm in or out?

tnx in advance, chuck

Franshej
Posts: 9
Joined: Mon Jan 22, 2018 4:13 am

Re: How to setup and test

Post by Franshej » Mon Jan 22, 2018 4:19 am

Hi
I got the error when i try to record or play:
Recording WAVE '/tmp/test.wav' : Signed 32 bit Little Endian, Rate 96000 Hz, Stereo
ALSA lib pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable
arecord: set_params:1270: Broken configuration for this PCM: no configurations available

I've got an raspberry 2B, Jessie and run the automatic tutorial. I can see the Audio injector in the ALSA mixer.

regards Frans

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

Re: How to setup and test

Post by flatmax » Tue Jan 23, 2018 5:27 am

AB1VL wrote:
Sun Jan 21, 2018 1:33 am
Hello, I h ave a new Pi3B with Stretch. Did auto-install deb scripts. Now running audioInjector-test.sh but see big vertical yellow bars. Cmic1 is not populated so no surprise there, right? ( I ordered the non-mic version on purpose FYI)

I plugged small amplified speakers into 3.5 mm jack and I hear audio in and out alternately from my main app, digital radio wsjt-x, which reads (captures) and writes coded audio from a real HF radio, alternately. That app is set to plughwCARD=audioinjector.DEV0 for input and output, Mono input and Both output. Seems to be working OK so far using RCA phono jack connectors i and out, monitor using speakers as above is a helpful feature. wsjt-x p calls for 16 bit, 48000 sample audio, more resolution is not recommended as it adds overheard. Do I need to set some alsa or other command to assure this? BTW, on native Linux like Lubuntu on AMD64 mobo the app wants Pulseaudio, which I have installed on pi as well.

In Pi audio prefs/Audio Dev settings the only device to choose from is audioinjector-pi-soundcard. Is that always correct? Should I want to, would I have to change dev tree to HDMI or the native pi bcm to get youtube vid audio to play? It doesn't play now. That is, how do I get audioinjector stereo to capture and play youtube vid audio, or any other app audio? I suspect this has something to do with the current ALSA/pulseaudio config but I'm a noob with Linux audio. With my digital radio app off and unloaded, I can't get other apps to play. I did set raspi-config audio to auto before running install scripts.

some specifics: 1) Do all references to Mic refer to on-board mic? Also is RCA Input always line level or can it be set to mic? Or is the mic/preamp connector the 3.5mm jack the way in for external mic?

2) The board capabilities as listed on Amazon are insufficient to work out the possibilities. Do you have a logical diagram or pdf that shows examples of typical use?

3) can I safely assume if ALSA supports it, so does the the injector?

4) can you point me to a good ALSA primer, e.g "Three Stooges meet ALSA" <g>

5) Can stereo channels be split to process two different mono streams, and routed to RCA out or 3.5 mm in or out?

tnx in advance, chuck
Great to hear from you, thanks for purchasing.

1) Yes the mic footprint refers to the on-board mic. The only mic connector is the mic footprint, you can enable and disable it with alsamixer. If you didn't purchase the version with a built in microphone, then you can populate one yourself.
2) This card is only limited by the ALSA subsystem - in hardware, there is a mixer on the chip, please refer to the pdf data sheet from the manufacturer here : https://www.cirrus.com/products/wm8731/
3) ALSA supports all of the Audio Injector sound cards.
4) Not sure where to send you, does this help : http://tuxradar.com/content/how-it-work ... -explained, http://www.volkerschatz.com/noise/alsa.html
5) Yes each channel is independent and can be used to process one channel at a time in any combination.

Matt
Checkout the next kickstarter campaign - the Ultra 2 : https://kck.st/2xwM3DL
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: 604
Joined: Sat Jul 23, 2016 11:39 pm

Re: How to setup and test

Post by flatmax » Tue Jan 23, 2018 5:28 am

Franshej wrote:
Mon Jan 22, 2018 4:19 am
Hi
I got the error when i try to record or play:
Recording WAVE '/tmp/test.wav' : Signed 32 bit Little Endian, Rate 96000 Hz, Stereo
ALSA lib pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable
arecord: set_params:1270: Broken configuration for this PCM: no configurations available

I've got an raspberry 2B, Jessie and run the automatic tutorial. I can see the Audio injector in the ALSA mixer.

regards Frans
OK - it should work ... what is the output of aplay -l and arecord -l ?

thanks
Matt
Checkout the next kickstarter campaign - the Ultra 2 : https://kck.st/2xwM3DL
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

Franshej
Posts: 9
Joined: Mon Jan 22, 2018 4:13 am

Re: How to setup and test

Post by Franshej » Tue Jan 23, 2018 6:31 am

Hi Matt!
I did a fresh install of raspian and followed your installation again. Now its working!
Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests