ITADN

alsa: xrun on RPi Zero since v0.17

#1157OpenDanielHabenicht 创建于 2026-04-12
questionhost - alsa
D
DanielHabenichtcommented
While trying to update to the 0.17.0 version in my project [UbiHome](https://github.com/UbiHome/UbiHome/pull/104) (because of a [sendspin](https://github.com/Sendspin/sendspin-rs) update) I am getting the following errors in (roughly) this order on a Raspberry Pi Zero W Rev 1.1 using `alsa:plughw:CARD=sndrpihifiberry,DEV=0` (with `SupportedStreamConfig { channels: 2, sample_rate: 44100, buffer_size: Range { min: 1, max: 1 }, sample_format: F32 }` ``` Audio stream error: A backend-specific error has occurred: get_htstamp `10943.138735000` was earlier than get_trigger_htstamp `0.0` Audio stream error: Buffer underrun/overrun occurred. Audio stream error: A backend-specific error has occurred: `alsa::poll()` returned POLLERR ``` Each error probably occurs when adding an audio chunk to the playback buffer? See the [full log](https://github.com/user-attachments/files/26660943/example.log) to get a feeling for what I mean. Is this a cpal problem or should the sendspin library handle this version differently? I initially updated from version 0.15.2, but while tracking down the behavior also tried 0.16.0 (which still works). I also saw https://github.com/RustAudio/cpal/issues/1134 already but I think because I am compiling musl I never hit that bug.
8 条评论