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 ASoC: CODEC DAI wm8731-hifi not registered - will retry
[ 5.196893] audioinjector-stereo soc 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 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
Problems with AudioInjector & latest 4.9 kernel
Moderator: flatmax
-
- Posts: 2
- Joined: Wed Apr 05, 2017 7:20 am
Re: Problems with AudioInjector & latest 4.9 kernel
Hi there,
Good news is that this says the card has been loaded successfully :
audioinjector-stereo soc 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 ?
Good news is that this says the card has been loaded successfully :
audioinjector-stereo soc 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
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
-
- Posts: 2
- Joined: Wed Apr 05, 2017 7:20 am
Re: Problems with AudioInjector & latest 4.9 kernel
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
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
Re: Problems with AudioInjector & latest 4.9 kernel
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
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
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
Who is online
Users browsing this forum: No registered users and 5 guests