-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codec Zero HAT cannot load alsamixer state & also gives read error #3755
Comments
Thanks for reporting this. I don't know how to fix this personally, but I'll try raising it internally and report back if we get anywhere. I strongly suspect that Bookworm broke something here, but I'm not sure what. |
Hi @nathan-contino Since our online docs mention creating Most (all?) modern Linux distros use pulseaudio or pipewire for audio control - for example it properly mixes audio from multiple sources, makes changing source more reliable, provides a high level API for audio apps to use, etc. Out of the box, a lot of audio apps talk to pulse or pipe by default, and pulse/pipe talk to ALSA. While it is absolutely okay for a user to create IMHO if someone wants to use raw ALSA, the best thing to do is just to uninstall the pulse controller applet from the taskbar (right-click the taskbar, choose Add/Remove Plugins, and remove it). If they create Which leads on to some of our online doc info, eg setting up a Codec Zero, and some niggles I think we should try and address, including:
If using the UI and we do still need to 'bootstrap' a sound card configuration, I suggest we consider using pactl instead of Maybe we can chat about this 1:1 and get some input from other folks at Pi to perhaps decide on the best way to tweak the documentation. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi
This is probably a harmless error. See #3855
This likely means there is a low level hardware issue. Examining dmesg may show other kernel errors. I would examine the output of |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
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 errorRecording 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
The text was updated successfully, but these errors were encountered: