I have a RPI5 and Codec Zero that don't seem to be working together. I have cruise many other posts about this and none of the solutions have helped me. My Codec Zero is from PiShop and is a black one which I understand to be the original IQAudio units if that matters. I ran through the official tutorial (https://www.raspberrypi.com/documentati ... audio.html) to try get this to work with no success.
When changing the /boot/firmware/config.txt file, I have tried both and and neither worked.
I have tried uncommenting dtparam=i2c_arm=on, dtparam=i2s=on, and dtparam=spi=on in my config.txt file, as I thought that possibly there was a communication issue. That didn't help.
When I put the hat on the RPI, the green LED is on. What is odd thing is that when I run $ grep -a . /proc/device-tree/hat/* I getThis tells me the RPI can at least talk to the Codec Zero. However, when I try running $ aplay -l all I get is This suggests that the RPI doesn't recognize the Codec Zero as an audio device. I've also tried adding the -D IQaudIO-Codec when issuing (mentioned here: viewtopic.php?p=2126205&hilit=codec+zero#p2126205)
I don't know if it matters but when I create the file .asoundrc in my home folder, it doesn't exist after a reboot.
I'm hoping this can be resolved. Please help if you can. I am at a complete loss.
When changing the /boot/firmware/config.txt file, I have tried both
Code:
dtoverlay=iqaudio-codec
Code:
dtoverlay=rpi-codeczero
I have tried uncommenting dtparam=i2c_arm=on, dtparam=i2s=on, and dtparam=spi=on in my config.txt file, as I thought that possibly there was a communication issue. That didn't help.
When I put the hat on the RPI, the green LED is on. What is odd thing is that when I run $ grep -a . /proc/device-tree/hat/* I get
Code:
/proc/device-tree/hat/name:hat/proc/device-tree/hat/product:Pi-CodecZero/proc/device-tree/hat/product_id:0x0013/proc/device-tree/hat/product_ver:0x0001/proc/device-tree/hat/uuid:e15c739c-877d-4e29-ab36-4dc73c21127c/proc/device-tree/hat/vendor:IQaudIO Limited www.iqaudio.com
Code:
**** List of PLAYBACK Hardware Devices ****card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi [MAIPCM i2s-hifi-0] Subdevices: 1/1 Subdevice #0: subdevice #0card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi [MAIPCM i2s-hifi-0] Subdevices: 1/1 Subdevice #0: subdevice #0
Code:
$ sudo alsactl restore -f /home/pi/Pi-Codec/Codec_Zero_OnboardMIC_record_and_SPK_playback.state
I don't know if it matters but when I create the file .asoundrc in my home folder, it doesn't exist after a reboot.
I'm hoping this can be resolved. Please help if you can. I am at a complete loss.
Statistics: Posted by mwshafer — Wed Feb 07, 2024 11:48 pm