-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
I've the follow setting
Raspberry Pi 4
RPi Imager 1.7.5
Debian Bookworm 10/10/2023
debian version 12.1
IQaudIO Codec Zero (Black edition, pre-rebranding)
Copyright IQaudIO Limited 2019 (PCB 020/v1)
grep -a . /proc/device-tree/hat/*
/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
lsmod | egrep 'da7213|iqaudio'
snd_soc_da7213 65536 1
regmap_i2c 16384 1 snd_soc_da7213
snd_soc_iqaudio_codec 20480 0
snd_soc_core 274432 3 snd_soc_iqaudio_codec,snd_soc_bcm2835_i2s,snd_soc_da7213
snd_pcm 139264 6 snd_soc_bcm2835_i2s,snd_bcm2835,snd_compress,snd_soc_da7213,snd_soc_core,snd_pcm_dmaengine
I slavishly followed the official guide:
https://www.raspberrypi.com/documentation/accessories/audio.html
who states that when I meet "IQaudIO Limited www.iqaudio.com" you have to modify the file /boot/config.txt as:
#dtparam=audio=on
dtoverlay=
dtoverlay=rpi-codeczero
I did it.
I created the file .asoundrc ...
pcm.!default {
type hw
card Zero
}
I restarted Raspberry for the first time, placed it in shutdown again, applied the "IQaudio Codec Zero" (black edition) HAT while Rasp was in shutdown and restarted it again. I have downloaded the "state" ...
git clone https://github.com/raspberrypi/Pi-Codec.git
and runned the command ...
sudo alsactl restore -f /home/pi/Pi-Codec/Codec_Zero_OnboardMIC_record_and_SPK_playback.state
alsa-lib main.c:1541:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2
alsactl: set_control:1475: Cannot write control '2:0:0:Mic 1 Volume:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:Mic 2 Volume:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:Aux Volume:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:Mixin PGA Volume:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:ADC Volume:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:DAC Volume:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:Headphone Volume:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:DAC EQ Switch:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:DAC EQ1 Volume:0' : Remote I/O error
.
.
.
.
.
.
alsactl: set_control:1475: Cannot write control '2:0:0:ALC Max Threshold Volume:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:ALC Max Attenuation Volume:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:ALC Max Gain Volume:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:ALC Min Analog Gain Volume:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:ALC Max Analog Gain Volume:0' : Remote I/O error
alsactl: set_control:1475: Cannot write control '2:0:0:ALC Anticlip Mode Switch:0' : Remote I/O error
I started to look for info and it seems that the lsmod output shown above indicates that the sound card drivers have been correctly installed, so I thought that the IQaudIO Codec Zero firmware needed to be updated, so I performed this sequence as the guide indicates:
sudo apt update
sudo apt install rpi-audio-utils
sudo rpi-audio-flash
the last of these three commands, on the second screen, returned this message:
"Detected a programmed Raspeberry Pi Codec Zero pHAT"
Does this mean that the EEPROM is already updated?
However it did not allow me to reprogram the EEPROM!
Furthermore in my case it seems that there was nothing to be joined to eliminate the write protection of the EEPROM as I am in the following condition:
"In some cases the two pads may already have a 0 ohm resistor fitted to bridge the write-protect link, as illustrated in the picture of the Codec Zero board above"
Then I restarted my Rasp and ran again the command:
sudo alsactl restore -f /home/pi/Pi-Codec/Codec_Zero_OnboardMIC_record_and_SPK_playback.state
Nothing to do. Nothing has changed.
I followed issues #2891, #2894, #2961 to look for useful information for me, but without success
Can anyone help me? What is wrong?