-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
I have a Codec Zero on a Pi Zero 2 W running the latest PiOS Lite 64bit Bookworm in headless configuration
/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
I've been following the standard documentation on how to configure this HAT via https://www.raspberrypi.com/documentation/accessories/audio.html
Steps taken:
edited /boot/firmware/config.txt:
#dtparam=audio=on
dtoverlay=
dtoverlay=rpi-codeczero
Added
pcm.!default {
type hw
card Zero
}
to .asoundrc
However these alsactl restore commands always fail:
alsactl restore -f ~/Pi-Codec/Codec_Zero_StereoMIC_record_and_HP_playback.state
alsactl restore -D Zero -f ~/Pi-Codec/Codec_Zero_StereoMIC_record_and_HP_playback.state
alsa-lib main.c:1541:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2
The device seems like it's loaded:
arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Zero [RPi Codec Zero], device 0: Raspberry Pi Codec Zero HiFi da7213-hifi-0 [Raspberry Pi Codec Zero HiFi da7213-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
and alsamixer shows the device and I can play around with input levels but I don't see how I can turn on/off inputs/outputs with spacebar or any other key
And when I try using the device with arecord -D hw:0,0 -f cd test.wav
, I get this error
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo arecord: pcm_read:2221: read error: Input/output error
I've tried many permutations of configurations including disabling HDMI via #dtoverlay=vc4-kms-v3d
This may be related to the following other issues:
#3593
#3292 (comment)
Also this may be specific to a recent update and/or Bookworm because I was using this HAT w/ this very Pi on 64 bit Lite Bullseye perfectly fine a few months ago