Stereo Soundcard extra header is for.....?

Moderator: flatmax

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

Stereo Soundcard extra header is for.....?

Post by AB1VL » Tue Jan 23, 2018 1:36 am

I got an extra F-F header socket with the Stereo Soundcard. Should I use that to make up the small difference between the 2 nylon screw spacers, so that the injector will be parallel with the Pi board? I see in your picture on homepage it is NOT installed but the female socket header on the Stereo card is not pushed all the way down, exposing a mm or two of the Pi's io pins.

At first I thought it was to protect the injector io pins but now I don't know if I should use that or save it for another hat.

How long does it take before my previous post shows up? Apparently it is still unapproved as my profile shows zero posts.

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

Re: Stereo Soundcard extra header is for.....?

Post by AB1VL » Tue Jan 23, 2018 6:05 am

tnx for approving, flatmax.

FYI: I was able to get Audacious (with Pulseaudio Out) running and my digital radio decoder app running, sometimes simultaneously, lost app audio out on reboot. Somehow starting Audacious to play, then shutting it down, then starting my digital app got output from the digital app - most of the time. I inspected alsamixer and HIFI Mixer Out was not muted. However, alsamixer did not show all ports until I did an F6 and selected audioinjectorpi instead of default. All this was using plughw.CARD=audioinjectorpi.DEV=0 for both input and output of the digital radio app.

So I looked at /boot/config.txt and saw I2S was commented out of action! Everything else looked OK. Fixed that and rebooted. Now I can use same input plughw<etc> but with alsa_output-platform-soc_sound.analog-stereo for my digital app OUTPUT and it survives reboot. Also can play Audacious and the app audio through the same external amped speakers fed by the mic jack. That is not a requirement but kinda proves that Audacious and my app were contending for Pulseaudio out, tho it seemed that my app needed another app to wake up pulseaudio first. That's probably not a correct deduction but it fit the symptoms. At any rate, the current config seems stable. Tnx for your attention. I have enough info to ask the app developer reasonable audio questions now. best regards, chuck - in Maine, USA

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

Re: Stereo Soundcard extra header is for.....?

Post by flatmax » Thu Jan 25, 2018 7:48 pm

Great - I am glad it is working now.
FYI I think I2S is part of the device tree, so once the AI overlay is loaded, it should all work as expected.

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:

Broadcomm contention after auto setup scripts?

Post by AB1VL » Fri Jan 26, 2018 3:24 am

Well, I can get to work, but regardless of which output type I select, after fresh reboot I have to fiddle with output system in Audacious to "wake up" the sound system to actually hear the tune, changing between ALSA, Pulseaudio, etc. at random until I can hear the tune play to the monitor speakers. The monitor speakers are plugged into the 3.5 mm mic jack BTW.

Once I can hear the audio, I can quit Audacious and start my digital radio app, and get output from the app, through the output phono jacks to the radio, generating a correct signal.

I looked at my current dmesg output and saw this:

22.019794] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[ 22.095122] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[ 23.723032] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[ 33.086980] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[ 33.585726] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[ 34.275525] bcm2835-i2s 3f203000.i2s: ASoC: can't set 3f203000.i2s hw params: -22
[ 180.500298] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[ 311.971875] bcm2835-i2s 3f203000.i2s: ASoC: can't set 3f203000.i2s hw params: -22
[ 770.106129] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[ 770.592279] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[ 771.125465] bcm2835-i2s 3f203000.i2s: ASoC: can't set 3f203000.i2s hw params: -22


Earlier in dmesg:

13.236695] usbcore: registered new interface driver brcmfmac
[ 13.237667] audioinjector-stereo soc:sound: ASoC: CODEC DAI wm8731-hifi not registered - will retry
[ 13.237703] audioinjector-stereo soc:sound: snd_soc_register_card failed (-51

later on:
[ 13.320633] audioinjector-stereo soc:sound: ASoC: CODEC DAI wm8731-hifi not registered - will retry
[ 13.320649] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 13.321361] audioinjector-stereo soc:sound: ASoC: CODEC DAI wm8731-hifi not registered - will retry
[ 13.321374] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)

After fiddling until I get audio out:


4.352740] wm8731 1-001a: Assuming static MCLK
[ 4.352768] 1-001a supply AVDD not found, using dummy regulator
[ 4.352840] 1-001a supply HPVDD not found, using dummy regulator
[ 4.352890] 1-001a supply DCVDD not found, using dummy regulator
[ 4.352936] 1-001a supply DBVDD not found, using dummy regulator
[ 4.366141] audioinjector-stereo soc:sound: wm8731-hifi <-> 3f203000.i2s mapping ok <<<<<<<<<<<<<<<<<<<<<<<<<<<<
[ 4.373113] brcmfmac: Firmware version = wl0: Aug 7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378
[ 4.374048] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.41 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-08-07 00:37:4

Does all this maybe mean that although I ran the auto setup scripts in the very beginning that some type of I2S contention is till happening intermittently?

I'm guessing but it seems either the broadcom tree is still in the act and/or the software environment is still not correct. What else to examine?

tnx

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest