Hi,
I’m trying to run the respeaker on a raspberry pi zero 2 but after some minutes with an active microphone input the USB connection crashes.
On a fresh installed Raspberry OS Bookworm 64 Bit lite, without installing anything else and just running arecord -D plughw:CARD=Lite,DEV=0 -r 16000 -c 1 -f S16_LE -t wav /dev/null
, at some point, after pressing strg-c and re run the command I get:
pi@pi-1:~ $ arecord -D plughw:CARD=Lite,DEV=0 -r 16000 -c 1 -f S16_LE -t wav -v /dev/null
Recording WAVE '/dev/null' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
arecord: set_params:1416: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 16000
PERIOD_TIME: 125000
PERIOD_SIZE: 2000
PERIOD_BYTES: 4000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 8000
BUFFER_BYTES: 16000
TICK_TIME: 0
And the journalctl shows the following errors:
Sep 10 14:07:32 pi-1 kernel: usb 1-1: 2:0: usb_set_interface failed (-110)
Sep 10 14:07:39 pi-1 kernel: usb 1-1: 2:0: usb_set_interface failed (-71)
Sep 10 14:07:39 pi-1 kernel: usb 1-1: uac_clock_source_is_valid(): cannot get clock validity for id 1
Sep 10 14:07:39 pi-1 kernel: usb 1-1: clock source 1 is not valid, cannot use
Sep 10 14:07:39 pi-1 kernel: usb 1-1: 2:1: cannot get freq (v2/v3): err -71
Sep 10 14:07:39 pi-1 kernel: usb 1-1: uac_clock_source_is_valid(): cannot get clock validity for id 1
Sep 10 14:07:39 pi-1 kernel: usb 1-1: 2:0: usb_set_interface failed (-71)
At this moment a lsusb still shows the respeaker but after a reboot it does not show up anymore.
Only way to reset the respeaker is to shutdown and power cycle the Pi.
It does work for some time as excepted but then it fail. I’ve got the feeling I can trigger it with some load on the cpu for example after an apt update but it does not trigger the event every time.
I’ve the got same behavior when using pulseaudio.
I tried using different DC Plugs and currently I am using an official Pi Plug with 2.5A.