[AudioI] AudioInjector Zero Pi HAT not working with raspbian bullseye?

Matt Flax matt at audioinjector.net
Wed Dec 15 11:32:54 UTC 2021


I can see from the dmsg dump that the wm8731 codec was probed, this is good. It can see the I2C line to the soundcard and the chip dangling on the end of it.

 

>From this we know that the problem is not at the codec level or hardware, but most likely a higher level misconfiguration OR a driver misconfiguration.
 

 

For some reason the sound card's machine driver seems that it is having trouble in the ASLA subsystem, possibly with the i2s driver.

 

Have you tried to disable the vc4hdmi driver, just to double check there are no conflicts ?

 

Matt
 

 
On 15/12/21 4:53 pm, Guy Delamarter via People wrote:
 
 

Hi,

I am unable to get my audioInjector zero HAT running on my pi zero w
with raspbian bullseye (lite) - I'm trying to use it for RCA line
input, and it doesn't even appear as an audio device to the likes of
aplay (not initialized properly, it appears from dmesg). Pulseaudio
doesn't seem to be a factor (not running or even installed). What
additional diagnostics might I gather to figure out why it is not
working? What does the evidence below suggest is the fix?

Thanks,
Guy

I started out following the github site directions that said to run:

# wget https://github.com/Audio-Injector/stereo-and-zero/raw/master/audio.injector.scripts_0.1-1_all.deb
# apt install audio.injector.scripts_0.1-1_all.deb
# audioInjector-setup.sh

Then followed a few suggestions from posts about getting the audioinjector zero to work that showed minor augments to configuration files.

-------------------------------------------

Specific boot/config.txt entries to the audio injector (full config.txt attached):

dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on

# Enable audio (loads snd_bcm2835) #dtparam=audio=on # enable the AudioInjector.net sound card dtoverlay=audioinjector-wm8731-audio


-------------------------------------------

# cat /etc/os-release 
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

--------------------------------------------

The audio related dmesg entries (full dmesg attached):

[ 29.122601] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 30.773101] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 30.947243] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 31.004470] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 31.007073] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 31.073747] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 31.144955] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 31.146393] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 31.165268] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 31.191268] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 31.317539] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 31.557447] vc4_hdmi 20902000.hdmi: Could not register sound card: -517

[ 31.637773] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 31.668845] vc4_hdmi 20902000.hdmi: Could not register sound card: -517

[ 42.150707] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 42.174947] vc4_hdmi 20902000.hdmi: Could not register sound card: -517

[ 42.186817] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 42.213292] vc4_hdmi 20902000.hdmi: Could not register sound card: -517

[ 42.706624] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 42.940592] wm8731 1-001a: Assuming static MCLK
[ 42.940651] wm8731 1-001a: supply AVDD not found, using dummy regulator

[ 42.941003] wm8731 1-001a: supply HPVDD not found, using dummy regulator
[ 42.941131] wm8731 1-001a: supply DCVDD not found, using dummy regulator
[ 42.941248] wm8731 1-001a: supply DBVDD not found, using dummy regulator
[ 42.942162] audioinjector-stereo soc:sound: snd_soc_register_card failed (-517)
[ 43.018492] wm8731 1-001a: Failed to issue reset: -121
[ 43.028411] wm8731: probe of 1-001a failed with error -121

------------------------------------------------

# lsmod

Module Size Used by
binfmt_misc 20480 1
cmac 16384 3
algif_hash 16384 1
aes_arm 16384 3
aes_generic 40960 1 aes_arm
ecb 16384 1
algif_skcipher 16384 1
af_alg 28672 6 algif_hash,algif_skcipher
bnep 20480 2
hci_uart 40960 1
btbcm 16384 1 hci_uart
bluetooth 417792 26 hci_uart,bnep,btbcm
ecdh_generic 16384 2 bluetooth
ecc 40960 1 ecdh_generic
libaes 20480 3 bluetooth,aes_arm,aes_generic
snd_soc_wm8731 20480 0
regmap_spi 16384 1 snd_soc_wm8731
regmap_i2c 16384 1 snd_soc_wm8731
snd_soc_hdmi_codec 16384 1
spidev 20480 0
8021q 32768 0
garp 16384 1 8021q
stp 16384 1 garp
llc 16384 2 garp,stp
brcmfmac 303104 0
brcmutil 20480 1 brcmfmac
vc4 266240 2
sha256_generic 16384 0
libsha256 20480 1 sha256_generic
cec 49152 1 vc4
snd_soc_audioinjector_pi_soundcard 16384 0
drm_kms_helper 233472 3 vc4
cfg80211 770048 1 brcmfmac
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
raspberrypi_hwmon 16384 0
rfkill 32768 6 bluetooth,cfg80211
snd_soc_bcm2835_i2s 16384 0
regmap_mmio 16384 1 snd_soc_bcm2835_i2s
snd_soc_core 225280 5 snd_soc_wm8731,vc4,snd_soc_hdmi_codec,snd_soc_bcm2835_i2s,snd_soc_audioinjector_pi_soundcard
i2c_bcm2835 16384 0
snd_compress 20480 1 snd_soc_core
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_pcm 110592 7 snd_soc_wm8731,snd_compress,snd_pcm_dmaengine,snd_soc_hdmi_codec,snd_soc_bcm2835_i2s,snd_soc_core,snd_soc_audioinjector_pi_soundcard
snd_timer 32768 1 snd_pcm
bcm2835_codec 40960 0
snd 77824 6 snd_soc_wm8731,snd_compress,snd_soc_hdmi_codec,snd_timer,snd_soc_core,snd_pcm
v4l2_mem2mem 36864 1 bcm2835_codec
bcm2835_isp 28672 0
bcm2835_v4l2 40960 0
spi_bcm2835 20480 0
bcm2835_mmal_vchiq 32768 3 bcm2835_isp,bcm2835_codec,bcm2835_v4l2
videobuf2_vmalloc 16384 1 bcm2835_v4l2
videobuf2_dma_contig 20480 2 bcm2835_isp,bcm2835_codec
videobuf2_memops 16384 2 videobuf2_dma_contig,videobuf2_vmalloc
videobuf2_v4l2 32768 4 bcm2835_isp,bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem
videobuf2_common 61440 5 bcm2835_isp,bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
videodev 241664 6 bcm2835_isp,bcm2835_codec,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
vc_sm_cma 32768 2 bcm2835_isp,bcm2835_mmal_vchiq
mc 45056 6 bcm2835_isp,bcm2835_codec,videobuf2_common,videodev,v4l2_mem2mem,videobuf2_v4l2
fixed 16384 0
uio_pdrv_genirq 16384 0
uio 20480 1 uio_pdrv_genirq
fuse 118784 1
drm 507904 3 vc4,drm_kms_helper
drm_panel_orientation_quirks 16384 1 drm
backlight 20480 1 drm
ip_tables 28672 0
x_tables 32768 1 ip_tables
ipv6 475136 20

It seems odd to me that bcm2835 modules are loaded when the config.txt says this only happens when the given line is uncommented, but aplay has indications that this is not fully initialized/functional either; although partially visible as a device.

----------------------------------------------------

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: vc4hdmi [vc4-hdmi], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
 Subdevices: 1/1
 Subdevice #0: subdevice #0




 
 




 

-- 
Checkout the community email list :
https://lists.audioinjector.net/mailman/listinfo/people

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.audioinjector.net/pipermail/people/attachments/20211215/4c11f44c/attachment.htm>


More information about the People mailing list