mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[GH-ISSUE #29] Raspberry Pi Zero W (DietPi) support? #24
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @moranbw on GitHub (Apr 4, 2024).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/29
Does this support Raspberry Pi Zero W? It is
armv6l. I am running DietPiv9.2. I tried building, but got the following errors:I tried the prebuild binary:
go-librespot_linux_armv6_rpi.tar.gzbut got the following:@devgianlu commented on GitHub (Apr 4, 2024):
Building from source for the Raspberry Pi Zero W is quite complicated because of missing support for Thumb instructions, you can have a look at how the binary is built with a custom toolchain here.
Regarding the errors you see, I think that the ALSA issue might be related to limited software support and/or network problems. I have go-librespot running on a Raspberry Pi Zero W v1.1 with the Volumio OS.
@moranbw commented on GitHub (Apr 4, 2024):
Thanks for the response, @devgianlu.
I actually was able to figure out what was going on. I was perusing the
spotifydconfig options and saw this, which correlated with mysnd_pcm_hw_params_set_formaterror.It seems like there is not a similar config option in
go-librespot. So I figured out a way to force the PCM format toS16_LEby adding this to/etc/asound.conf:Then updated my
go-librespotconfig.yml:And we have music! Perhaps Volumio OS is doing some of this by default? It is just based on Raspbian (like DietPi), so nothing too special should be going on.
@devgianlu commented on GitHub (Apr 8, 2024):
I am glad you figured it out! I am not sure whether an option to tweak the output format from
go-librespotis really necessary considering that ALSA can do the heavy lifting.