Problems with AudioInjector & latest 4.9 kernel

Moderator: flatmax

Post Reply
schnitzeltony
Posts: 2
Joined: Wed Apr 05, 2017 7:20 am

Problems with AudioInjector & latest 4.9 kernel

Post by schnitzeltony » Mon Apr 10, 2017 5:19 am

Hi

I am building latest standard kernel (3f53e7886737a975e3fe76bc8ae6cc78f33c8cf8) with yocto and cannot get AudioInjector to work:

During boot dmesg says:
[ 5.187527] audioinjector-stereo soc:sound: ASoC: CODEC DAI wm8731-hifi not registered - will retry
[ 5.196893] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 5.226469] wm8731 1-001a: Assuming static MCLK
[ 5.231157] 1-001a supply AVDD not found, using dummy regulator
[ 5.237299] 1-001a supply HPVDD not found, using dummy regulator
[ 5.243536] 1-001a supply DCVDD not found, using dummy regulator
[ 5.249797] 1-001a supply DBVDD not found, using dummy regulator
[ 5.260651] audioinjector-stereo soc:sound: wm8731-hifi <-> 3f203000.i2s mapping ok

As soon as I try playback (in this case qmmp) dmesg says:
[22728.389250] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[22728.530837] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[22728.579448] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[22728.616752] bcm2835-i2s 3f203000.i2s: I2S SYNC error!
[22733.689088] bcm2835-dma 3f007000.dma: DMA transfer could not be terminated

and qmmp freezes completely

Help appreciated

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

Re: Problems with AudioInjector & latest 4.9 kernel

Post by flatmax » Tue Apr 11, 2017 10:16 pm

Hi there,

Good news is that this says the card has been loaded successfully :
audioinjector-stereo soc:sound: wm8731-hifi <-> 3f203000.i2s mapping ok
Other good news is that I just ran sudo rpi-update and am at kernel version 4.9.20 and just tested the sound card and it is working ! Woo hoo !

The dmesg errors you report and spurious and common for GPIO sound cards, they are printed out from the bcm2835-i2s.c file which is the audio driver for the ARM chip. I don't think they carry any useful information.

Not sure why qmmp is freezing. Can you check a wav file with aplay ? Also make sure in alsamixer "Output Mixer HiFi" is enabled and that you have volme on master.

If aplay works well, then it is likely nothing to do with the audio drivers nor ALSA. aplay tests the kernel audio drivers by playing audio through them.

If aplay is working, then perhaps I can help point you in the right direction ?

thanks
Matt
p.s. out of interest, where are the yocto/openembedded configs and repo for building Linux for the pi ?
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

schnitzeltony
Posts: 2
Joined: Wed Apr 05, 2017 7:20 am

Re: Problems with AudioInjector & latest 4.9 kernel

Post by schnitzeltony » Wed Apr 12, 2017 12:56 am

Hi again,

Good news - I have sound too on all applications tested so far.

* alsamixer showed me the culprit: pulseaudio (again). After disabling pulseaudio from session autostart, qmmp does not freeze any more
* enabling 'Output Mixer HiFi' made me listen

Thanks for helping hints.

You asked for Yocto RaspberryPi:
The official layer is at https://github.com/agherzan/meta-raspberrypi but for some reasons I use my vc4-only fork at https://github.com/schnitzeltony/meta-raspi-light.

Using audio output created some new questions :)

* What can be done to enable 'Output Mixer HiFi' by default - some kernel patch / some default asound.state shipped?
* Changing 'Master' Volume does nothing - what can I check to get this work?

Thanks again

Andreas

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

Re: Problems with AudioInjector & latest 4.9 kernel

Post by flatmax » Thu Apr 13, 2017 9:46 am

Great to hear !

Regarding output volume control. The headphone jack has a master volume control. To control the RCA volume, you should use the softvolume :
viewtopic.php?f=5&t=572

To enable to "Output mixer hifi" by default, have you tried using "sudo alsactl store" ?
thanks
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 5 guests