mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #433] Linear Volume not working with alsa mixer #277
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#277
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 @JPW21 on GitHub (Feb 13, 2020).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/433
Hi,
Im using a HifiBerry DAC on a raspberry pi with librespot's alsa mixer option.
I'm noticing logarithmic volume control even with --linear-volume enabled.
This means 0-80% volume is extremly quiet. The volume in alsamixer is inconsistent with the spotify connect volume (see screenshots).
If i omit --linear-volume the problem is even worse, meaning 0-95% is quiet...
Almost if its doing log compensation twice, what makes me think that this might be a bug.
Options:
--backend alsa --device hw:0,0 --mixer alsa --mixer-name Digital --linear-volume --enable-volume-normalisation --initial-volume=40
Note that 50% is only 13% in alsa.
To reach ~50% i need to almost max-out the spotify volume.
Is my understanding wrong? I thought enabling --linear-volume would mean 50% in spotify corresponds to 50% in alsa.
@ashthespy commented on GitHub (Feb 13, 2020):
Ah, I now see (https://github.com/librespot-org/librespot/pull/245#issuecomment-430247445) that I never got down to merging the stuff from vollibrespot in here. I'll get down to opening a PR soon(ish)
@JPW21 commented on GitHub (Feb 13, 2020):
Awesome, thanks for your work!
@ashthespy commented on GitHub (Feb 13, 2020):
PS - if you are in a hurry - I should have some pre-compiled stuff over at
ashthespy/Vollibrespotthat you can play with in the meantime..@JPW21 commented on GitHub (Feb 13, 2020):
Take your time, at the moment i checked out https://github.com/librespot-org/librespot/pull/430 to test gapless playback anyways.
@JPW21 commented on GitHub (Feb 14, 2020):
I have just found out that this problem isnt librespot exclusive:
If i use "amixer -q sset Digital 50%"
the volume gets set to 14%.
So it doesnt seem like this is a bug in librespot, sorry.
Edit: The -M option seems to behave like i want. 10% results in 10%, although there seems to be rounding going on since 50% gets turned to 49%.
How can i make librespot use this option?
@ashthespy commented on GitHub (Feb 15, 2020):
@JPW21 you should check out the
-Maka mapped volume.ah, just saw your edit - I have incorporated a similar mapped mode in my branch, will open up a PR shortly..
@JPW21 commented on GitHub (Feb 27, 2020):
@ashthespy Any news for that PR? :)
@ashthespy commented on GitHub (Feb 27, 2020):
@JPW21 haven't made/found the time yet - next week should be possible!