[GH-ISSUE #251] alsa error using precompiled release #154

Closed
opened 2026-02-28 14:25:51 +03:00 by kerem · 6 comments
Owner

Originally created by @urknall on GitHub (Nov 7, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/251

when running precompiled release under picoreplayer:

ALSA lib .././../src/v1.2.14-db50f2eff4.clean/src/conf.c:4580:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib ../.././../src/v1.2.14-db50f2eff4.clean/src/pcm/pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM hw:1,0

running build from source all is fine:

DEBU[0006] dispatching initial mixer volume update: 126/207
DEBU[0006] alsa mixer initialized: hw:1, control: Digital, min volume: 0, max volume: 207
DEBU[0006] created new output device
DEBU[0006] alsa driver configured, rate = 44100 bps, period time = 100000 us, period size = 4410 frames, buffer time = 500000 us, buffer size = 22050 frames, periods per buffer = 5 frames, PCM format = S32_LE

config:

# --- Audio: ALSA to HiFiBerry DAC+ (your aplay -l shows card 1, device 0)
audio_backend: alsa
audio_device: "hw:1,0"            # try "plughw:1,0" if format/rate negotiation fails
bitrate: 320                      # 96|160|320 kbps stream choice

# --- (Optional) Volume sync using ALSA mixer
# The HiFiBerry DAC+ often exposes a 'Digital' mixer control.
# Verify with: amixer -c 1 scontrols
mixer_device: "hw:1"
mixer_control_name: "Digital"     # or "PCM" depending on your card
Originally created by @urknall on GitHub (Nov 7, 2025). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/251 when running precompiled release under picoreplayer: ``` ALSA lib .././../src/v1.2.14-db50f2eff4.clean/src/conf.c:4580:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf ALSA lib ../.././../src/v1.2.14-db50f2eff4.clean/src/pcm/pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM hw:1,0 ``` running build from source all is fine: ``` DEBU[0006] dispatching initial mixer volume update: 126/207 DEBU[0006] alsa mixer initialized: hw:1, control: Digital, min volume: 0, max volume: 207 DEBU[0006] created new output device DEBU[0006] alsa driver configured, rate = 44100 bps, period time = 100000 us, period size = 4410 frames, buffer time = 500000 us, buffer size = 22050 frames, periods per buffer = 5 frames, PCM format = S32_LE ``` config: ``` # --- Audio: ALSA to HiFiBerry DAC+ (your aplay -l shows card 1, device 0) audio_backend: alsa audio_device: "hw:1,0" # try "plughw:1,0" if format/rate negotiation fails bitrate: 320 # 96|160|320 kbps stream choice # --- (Optional) Volume sync using ALSA mixer # The HiFiBerry DAC+ often exposes a 'Digital' mixer control. # Verify with: amixer -c 1 scontrols mixer_device: "hw:1" mixer_control_name: "Digital" # or "PCM" depending on your card ```
kerem closed this issue 2026-02-28 14:25:51 +03:00
Author
Owner

@devgianlu commented on GitHub (Nov 7, 2025):

Which precompiled version are you running?

<!-- gh-comment-id:3504220583 --> @devgianlu commented on GitHub (Nov 7, 2025): Which precompiled version are you running?
Author
Owner

@urknall commented on GitHub (Nov 7, 2025):

0.5.2 go-librespot_linux_arm64.tar.gz

<!-- gh-comment-id:3504239755 --> @urknall commented on GitHub (Nov 7, 2025): 0.5.2 go-librespot_linux_arm64.tar.gz
Author
Owner

@urknall commented on GitHub (Nov 7, 2025):

if that might be helpful, the only alsa conf in pcp is located at:

/usr/local/share/alsa/alsa.conf

<!-- gh-comment-id:3504281886 --> @urknall commented on GitHub (Nov 7, 2025): if that might be helpful, the only alsa conf in pcp is located at: /usr/local/share/alsa/alsa.conf
Author
Owner

@urknall commented on GitHub (Nov 7, 2025):

/etc/asound.conf also there

<!-- gh-comment-id:3504301531 --> @urknall commented on GitHub (Nov 7, 2025): /etc/asound.conf also there
Author
Owner

@devgianlu commented on GitHub (Nov 9, 2025):

Release v0.5.3 should fix this issue.

<!-- gh-comment-id:3507928666 --> @devgianlu commented on GitHub (Nov 9, 2025): Release [v0.5.3](https://github.com/devgianlu/go-librespot/releases/tag/v0.5.3) should fix this issue.
Author
Owner

@urknall commented on GitHub (Nov 9, 2025):

thank you very much, its working!

<!-- gh-comment-id:3508009801 --> @urknall commented on GitHub (Nov 9, 2025): thank you very much, its working!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#154
No description provided.