[GH-ISSUE #953] alsa-mixer-control parameter seems to be ignored #464

Closed
opened 2026-02-27 19:30:46 +03:00 by kerem · 3 comments
Owner

Originally created by @fpicot on GitHub (Jan 27, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/953

It seems that the parameter alsa-mixer-control is ignored under librespot 0.3.1
Configuration is passed via environment variables as follow :

LIBRESPOT_DEVICE="sysdefault:CARD=sndrpihifiberry"
LIBRESPOT_BACKEND="alsa"
LIBRESPOT_MIXER="alsa"
LIBRESPOT_ALSA_MIXER_CONTROL="Master"

The logs show :

Jan 26 16:53:10 spotipy librespot[4971]: [2022-01-26T15:53:10Z INFO  librespot_playback::mixer::alsamixer] Mixing with Alsa and volume control: Linear for device: hw:CARD=sndrpihifiberry with mixer control: Master,0
Jan 26 16:53:10 spotipy librespot[4971]: [2022-01-26T15:53:10Z DEBUG librespot_playback::mixer::alsamixer] Alsa mixer control is softvol: true

Test confirm that the alsa mixer is ignored using the equalizer plugin (change

This was working under librespot v0.1.3-37-g0adb851 with the parameter "--backend alsa --mixer alsa --mixer-name Master"

Originally created by @fpicot on GitHub (Jan 27, 2022). Original GitHub issue: https://github.com/librespot-org/librespot/issues/953 It seems that the parameter alsa-mixer-control is ignored under librespot 0.3.1 Configuration is passed via environment variables as follow : ``` LIBRESPOT_DEVICE="sysdefault:CARD=sndrpihifiberry" LIBRESPOT_BACKEND="alsa" LIBRESPOT_MIXER="alsa" LIBRESPOT_ALSA_MIXER_CONTROL="Master" ``` The logs show : ``` Jan 26 16:53:10 spotipy librespot[4971]: [2022-01-26T15:53:10Z INFO librespot_playback::mixer::alsamixer] Mixing with Alsa and volume control: Linear for device: hw:CARD=sndrpihifiberry with mixer control: Master,0 Jan 26 16:53:10 spotipy librespot[4971]: [2022-01-26T15:53:10Z DEBUG librespot_playback::mixer::alsamixer] Alsa mixer control is softvol: true ``` Test confirm that the alsa mixer is ignored using the equalizer plugin (change This was working under librespot v0.1.3-37-g0adb851 with the parameter "--backend alsa --mixer alsa --mixer-name Master"
kerem 2026-02-27 19:30:46 +03:00
Author
Owner

@roderickvd commented on GitHub (Jan 27, 2022):

I don’t know what the issue is? You specified to use the Master mixer of Alsa and that’s what it is doing.

<!-- gh-comment-id:1023136125 --> @roderickvd commented on GitHub (Jan 27, 2022): I don’t know what the issue is? You specified to use the `Master` mixer of Alsa and that’s what it is doing.
Author
Owner

@fpicot commented on GitHub (Jan 27, 2022):

I did not understand the meaning the log "Alsa mixer control is softvol: true" properly, but your comment on #948 made it clear, the mixer is Master and is doing software volume control.

What I don't get however is why with the same /etc/asound.conf, librespot 0.1.3 with parameters "--backend alsa --mixer alsa --mixer-name Master" is correctly going through the equalizer alsa plugin but librespot 0.3.1 with parameters "--device "sysdefault:CARD=sndrpihifiberry" --backend alsa --mixer alsa --alsa-mixer-control Master" is not.
I thought it was because the mixer parameter was ignored and librespot was doing its own volume control.

<!-- gh-comment-id:1023208492 --> @fpicot commented on GitHub (Jan 27, 2022): I did not understand the meaning the log "Alsa mixer control is softvol: true" properly, but your comment on #948 made it clear, the mixer is Master and is doing software volume control. What I don't get however is why with the same /etc/asound.conf, librespot 0.1.3 with parameters "--backend alsa --mixer alsa --mixer-name Master" is correctly going through the equalizer alsa plugin but librespot 0.3.1 with parameters "--device "sysdefault:CARD=sndrpihifiberry" --backend alsa --mixer alsa --alsa-mixer-control Master" is not. I thought it was because the mixer parameter was ignored and librespot was doing its own volume control.
Author
Owner

@roderickvd commented on GitHub (Jan 27, 2022):

I think that's here: https://github.com/dtcooper/raspotify/issues/475
I'm closing this, as this does not seem an issue with librespot.

<!-- gh-comment-id:1023471339 --> @roderickvd commented on GitHub (Jan 27, 2022): I think that's here: https://github.com/dtcooper/raspotify/issues/475 I'm closing this, as this does not seem an issue with `librespot`.
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/librespot#464
No description provided.